0d6531551b
* fhandler.h (fhandler_socket::accept4): Rename from accept. Take additional flag parameter. * fhandler_socket.cc (fhandler_socket::accept4): Ditto. Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags. * net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags in type. Check for invalid flag values. (socketpair): Ditto. (cygwin_accept): Accommodate renaming of fhandler_socket::accept function to accept4. (accept4): New function. * posix.sgml: Mention accept4 as GNU extensions. * include/cygwin/socket.h (SOCK_NONBLOCK): Define. (SOCK_CLOEXEC): Define. (_SOCK_FLAG_MASK): Define when building Cygwin. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/socket.h (accept4): Declare. |
||
---|---|---|
.. | ||
acl.h | ||
copying.dj | ||
cygwin.h | ||
dirent.h | ||
elf32.h | ||
elf64.h | ||
elf_common.h | ||
elf_generic.h | ||
file.h | ||
ioctl.h | ||
ipc.h | ||
kd.h | ||
lock.h | ||
mman.h | ||
mount.h | ||
msg.h | ||
mtio.h | ||
param.h | ||
poll.h | ||
procfs.h | ||
queue.h | ||
resource.h | ||
sched.h | ||
select.h | ||
sem.h | ||
shm.h | ||
smallprint.h | ||
socket.h | ||
soundcard.h | ||
statfs.h | ||
statvfs.h | ||
stdio.h | ||
strace.h | ||
sysinfo.h | ||
syslimits.h | ||
syslog.h | ||
sysmacros.h | ||
sysproto.h | ||
termio.h | ||
termios.h | ||
ttychars.h | ||
uio.h | ||
un.h | ||
utime.h | ||
utmp.h | ||
utsname.h | ||
vfs.h | ||
wait.h |