freebsd-dev/sys/compat/freebsd32
Jilles Tjoelker da7d2afb6d Add accept4() system call.
The accept4() function, compared to accept(), allows setting the new file
descriptor atomically close-on-exec and explicitly controlling the
non-blocking status on the new socket. (Note that the latter point means
that accept() is not equivalent to any form of accept4().)

The linuxulator's accept4 implementation leaves a race window where the new
file descriptor is not close-on-exec because it calls sys_accept(). This
implementation leaves no such race window (by using falloc() flags). The
linuxulator could be fixed and simplified by using the new code.

Like accept(), accept4() is async-signal-safe, a cancellation point and
permitted in capability mode.
2013-05-01 20:10:21 +00:00
..
freebsd32_ioctl.c In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
freebsd32_ioctl.h Provide the structures and ioctl number definition for handling 2011-04-02 15:47:23 +00:00
freebsd32_ipc.h Move SysV IPC freebsd32 compat shims helpers from freebsd32_misc.c to 2010-03-19 11:01:51 +00:00
freebsd32_misc.c Style fixes for r242958. 2012-11-16 06:22:14 +00:00
freebsd32_proto.h Regen. 2013-04-02 05:30:52 +00:00
freebsd32_signal.h Add 32-bit compat code for AIO kevent flags introduced in revision 230857. 2012-02-05 04:49:31 +00:00
freebsd32_syscall.h Regen. 2013-04-02 05:30:52 +00:00
freebsd32_syscalls.c Regen. 2013-04-02 05:30:52 +00:00
freebsd32_sysent.c Regen. 2013-04-02 05:30:52 +00:00
freebsd32_systrace_args.c Regen. 2013-04-02 05:30:52 +00:00
freebsd32_util.h In order to maximize the re-usability of kernel code in user space this 2011-09-16 13:58:51 +00:00
freebsd32.h Add the wait6(2) system call. It takes POSIX waitid()-like process 2012-11-13 12:52:31 +00:00
Makefile add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.conf add DTrace systrace support for linux32 and freebsd32 on amd64 syscalls 2011-03-12 08:51:43 +00:00
syscalls.master Add accept4() system call. 2013-05-01 20:10:21 +00:00