[Bug 216568] SNDCTL_DSP_GETERROR always fails with -m32 on 64bit system

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 29 07:32:26 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216568

            Bug ID: 216568
           Summary: SNDCTL_DSP_GETERROR always fails with -m32 on 64bit
                    system
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Keywords: needs-patch
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: jbeich at FreeBSD.org

$ cat >a.c
#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <err.h>

int main()
{
    int fd = open("/dev/dsp", O_RDWR, 0);
    audio_errinfo ei;

    if (ioctl(fd, SNDCTL_DSP_GETERROR, &ei) < 0)
        err(1, "SNDCTL_DSP_GETERROR");

    return 0;
}

$ cc -o foo a.c
$ cc -m32 -o bar a.c
$ ./foo
$ ./bar
bar: SNDCTL_DSP_GETERROR: Invalid argument

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list