passthrough: fix unix-domain sockets on FreeBSD (#413)
authorAlan Somers <asomers@gmail.com>
Wed, 15 May 2019 20:35:57 +0000 (14:35 -0600)
committerNikolaus Rath <Nikolaus@rath.org>
Wed, 15 May 2019 20:35:57 +0000 (21:35 +0100)
commit1f842c996e46788115d6b5ca142fad949712c8e9
tree2a070544cd76fad641913c2b9a489712fc99e012
parent7a5e1a9a9a61416c759ce02a48e600814fd13711
passthrough: fix unix-domain sockets on FreeBSD (#413)

FreeBSD doesn't allow creating sockets using mknod(2). Instead, one has to use socket(2)
and bind(2).  Add appropriate logic to the examples and add a test case.
example/passthrough.c
example/passthrough_helpers.h [new file with mode: 0644]
example/passthrough_ll.c
test/test_examples.py
test/test_syscalls.c