/freebsd-10-stable/contrib/pjdfstest/tests/open/ |
H A D | 18.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/18.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EWOULDBLOCK when O_NONBLOCK and one of O_SHLOCK or O_EXLOCK is specified and the file is locked" 16 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK 17 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open [all...] |
H A D | 21.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/21.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EFAULT if the path argument points outside the process's allocated address space" 11 expect EFAULT open NULL O_RDONLY 12 expect EFAULT open DEADCODE O_RDONLY
|
H A D | 24.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/24.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EOPNOTSUPP when trying to open UNIX domain socket" 14 expect "EOPNOTSUPP" open ${n0} O_RDONLY 15 expect "EOPNOTSUPP" open ${n0} O_WRONLY 16 expect "EOPNOTSUPP" open ${n0} O_RDWR
|
H A D | 11.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/11.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EPERM when the named file has its append-only flag set, the file is to be modified, and O_TRUNC is specified or O_APPEND is not specified" 26 expect 0 open ${n0} O_WRONLY,O_APPEND 27 expect 0 open ${n0} O_RDWR,O_APPEND 28 expect EPERM open ${n0} O_WRONLY 29 expect EPERM open ${n0} O_RDWR 30 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 31 expect EPERM open ${n0} O_RDONLY,O_TRUNC 32 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 33 expect EPERM open [all...] |
H A D | 13.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/13.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EISDIR when trying to open a directory for writing" 17 expect 0 open ${n0} O_RDONLY 18 expect EISDIR open ${n0} O_WRONLY 19 expect EISDIR open ${n0} O_RDWR 20 expect EISDIR open ${n0} O_RDONLY,O_TRUNC 21 expect EISDIR open ${n0} O_WRONLY,O_TRUNC 22 expect EISDIR open ${n0} O_RDWR,O_TRUNC
|
H A D | 06.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/06.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EACCES when the required permissions (for reading and/or writing) are denied for the given flags" 24 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY, 25 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY, 26 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR, 28 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY, 29 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY, 30 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR, 32 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY, 33 expect 0 -u 65533 -g 65533 open [all...] |
H A D | 10.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/10.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns EPERM when the named file has its immutable flag set and the file is to be modified" 26 expect EPERM open ${n0} O_WRONLY 27 expect EPERM open ${n0} O_RDWR 28 expect EPERM open ${n0} O_RDONLY,O_TRUNC 34 expect 0 open ${n0} O_WRONLY 35 expect 0 open ${n0} O_RDWR 36 expect 0 open ${n0} O_RDONLY,O_TRUNC 44 expect EPERM open ${n0} O_WRONLY 45 expect EPERM open [all...] |
H A D | 23.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/23.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open may return EINVAL when an attempt was made to open a descriptor with an illegal combination of O_RDONLY, O_WRONLY, and O_RDWR" 14 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR 15 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR 16 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
|
H A D | 20.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/20.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns ETXTBSY when the file is a pure procedure (shared text) file that is being executed and the open() system call requests write access" 19 expect ETXTBSY open ${n0} O_WRONLY 20 expect ETXTBSY open ${n0} O_RDWR 21 expect ETXTBSY open ${n0} O_RDONLY,O_TRUNC
|
H A D | 02.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/02.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" 14 expect 0 open ${nx} O_CREAT 0620 17 expect ENAMETOOLONG open ${nxx} O_CREAT 0620
|
H A D | 04.t | 2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/04.t 211352 2010-08-15 21:24:17Z pjd $ 4 desc="open returns ENOENT if a component of the path name that must exist does not exist or O_CREAT is not set and the named file does not exist" 15 expect ENOENT open ${n0}/${n1}/test O_CREAT 0644 16 expect ENOENT open ${n0}/${n1} O_RDONLY
|
/freebsd-10-stable/tools/regression/pjdfstest/tests/open/ |
H A D | 18.t | 4 desc="open returns EWOULDBLOCK when O_NONBLOCK and one of O_SHLOCK or O_EXLOCK is specified and the file is locked" 16 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK 17 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK 19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
|
H A D | 21.t | 4 desc="open returns EFAULT if the path argument points outside the process's allocated address space" 11 expect EFAULT open NULL O_RDONLY 12 expect EFAULT open DEADCODE O_RDONLY
|
H A D | 24.t | 4 desc="open returns EOPNOTSUPP when trying to open UNIX domain socket" 14 expect "EOPNOTSUPP" open ${n0} O_RDONLY 15 expect "EOPNOTSUPP" open ${n0} O_WRONLY 16 expect "EOPNOTSUPP" open ${n0} O_RDWR
|
H A D | 11.t | 4 desc="open returns EPERM when the named file has its append-only flag set, the file is to be modified, and O_TRUNC is specified or O_APPEND is not specified" 26 expect 0 open ${n0} O_WRONLY,O_APPEND 27 expect 0 open ${n0} O_RDWR,O_APPEND 28 expect EPERM open ${n0} O_WRONLY 29 expect EPERM open ${n0} O_RDWR 30 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 31 expect EPERM open ${n0} O_RDONLY,O_TRUNC 32 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM." 33 expect EPERM open ${n0} O_RDONLY,O_APPEND,O_TRUNC 34 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUN [all...] |
H A D | 13.t | 4 desc="open returns EISDIR when trying to open a directory for writing" 17 expect 0 open ${n0} O_RDONLY 18 expect EISDIR open ${n0} O_WRONLY 19 expect EISDIR open ${n0} O_RDWR 20 expect EISDIR open ${n0} O_RDONLY,O_TRUNC 21 expect EISDIR open ${n0} O_WRONLY,O_TRUNC 22 expect EISDIR open ${n0} O_RDWR,O_TRUNC
|
H A D | 06.t | 4 desc="open returns EACCES when the required permissions (for reading and/or writing) are denied for the given flags" 24 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY, 25 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY, 26 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR, 28 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY, 29 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY, 30 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR, 32 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY, 33 expect 0 -u 65533 -g 65533 open ${n1} O_WRONLY, 34 expect 0 -u 65533 -g 65533 open [all...] |
H A D | 10.t | 4 desc="open returns EPERM when the named file has its immutable flag set and the file is to be modified" 26 expect EPERM open ${n0} O_WRONLY 27 expect EPERM open ${n0} O_RDWR 28 expect EPERM open ${n0} O_RDONLY,O_TRUNC 34 expect 0 open ${n0} O_WRONLY 35 expect 0 open ${n0} O_RDWR 36 expect 0 open ${n0} O_RDONLY,O_TRUNC 44 expect EPERM open ${n0} O_WRONLY 45 expect EPERM open ${n0} O_RDWR 46 expect EPERM open [all...] |
H A D | 20.t | 4 desc="open returns ETXTBSY when the file is a pure procedure (shared text) file that is being executed and the open() system call requests write access" 17 expect ETXTBSY open ${n0} O_WRONLY 18 expect ETXTBSY open ${n0} O_RDWR 19 expect ETXTBSY open ${n0} O_RDONLY,O_TRUNC
|
H A D | 23.t | 4 desc="open may return EINVAL when an attempt was made to open a descriptor with an illegal combination of O_RDONLY, O_WRONLY, and O_RDWR" 14 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR 15 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR 16 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
|
H A D | 02.t | 4 desc="open returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters" 14 expect 0 open ${nx} O_CREAT 0620 17 expect ENAMETOOLONG open ${nxx} O_CREAT 0620
|
H A D | 04.t | 4 desc="open returns ENOENT if a component of the path name that must exist does not exist or O_CREAT is not set and the named file does not exist" 15 expect ENOENT open ${n0}/${n1}/test O_CREAT 0644 16 expect ENOENT open ${n0}/${n1} O_RDONLY
|
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/ |
H A D | tst.openret.ksh | 31 syscall::open*:entry 37 syscall::open*:return 44 syscall::open*:return 50 syscall::open*:return 53 printf("a failed open(2) returned %d\n", (int)arg0); 57 syscall::open*:return
|
/freebsd-10-stable/cddl/compat/opensolaris/include/ |
H A D | fcntl.h | 35 #define open64(...) open(__VA_ARGS__)
|
/freebsd-10-stable/contrib/pjdfstest/tests/ftruncate/ |
H A D | 13.t | 14 expect EINVAL -- open ${n0} O_RDWR : ftruncate 0 -1 15 expect EINVAL -- open ${n0} O_WRONLY : ftruncate 0 -999999
|