Provide and use fallbacks for POSIX functions extended by linux/BSD.
authorDavin McCall <davmac@davmac.org>
Wed, 26 Apr 2017 09:35:29 +0000 (10:35 +0100)
committerDavin McCall <davmac@davmac.org>
Wed, 26 Apr 2017 09:35:29 +0000 (10:35 +0100)
commit4118a92ca4937f5e42f1a113c79e0df3a74f46d8
treec52fbd5c7266ca01d7140f6b4793cbededa1ede3
parente3d041ac31a14efe0e9589bf7d20d32a7aabf0e1
Provide and use fallbacks for POSIX functions extended by linux/BSD.

accept4 isn't standard; Linux and OpenBSD have extensions to socket and
socketpair which allow opening in nonblocking/close-on-exec modes.
Implement adaptor functions which also work when these extensions aren't
present.
src/dinit-socket.h [new file with mode: 0644]
src/dinit.cc
src/service.cc