open(2) returns EOPNOTSUPP when trying to open a socket.

This commit is contained in:
Pawel Jakub Dawidek 2010-08-06 19:22:42 +00:00
parent ce2decb660
commit 6c4a79e1b1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210956

View File

@ -0,0 +1,17 @@
#!/bin/sh
# $FreeBSD$
desc="open returns EOPNOTSUPP when trying to open UNIX domain socket"
dir=`dirname $0`
. ${dir}/../misc.sh
echo "1..5"
n0=`namegen`
expect 0 bind ${n0}
expect "EOPNOTSUPP" open ${n0} O_RDONLY
expect "EOPNOTSUPP" open ${n0} O_WRONLY
expect "EOPNOTSUPP" open ${n0} O_RDWR
expect 0 unlink ${n0}