• R
    in fcntl, avoid passing pointer arguments to syscalls as longs · 131871a3
    Rich Felker 提交于
    really, fcntl should be changed to use the correct type corresponding
    to cmd when calling va_arg, and to carry the correct type through
    until making the syscall. however, this greatly increases binary size
    and does not seem to offer any benefits except formal correctness, so
    I'm holding off on that change for now.
    
    the minimal changes made in this patch are in preparation for addition
    of the x32 port, where the syscall macros need to know whether their
    arguments are pointers or integers in order to properly pass them to
    the 64-bit kernel.
    131871a3
fcntl.c 1.3 KB