Searched refs:open (Results 1 - 25 of 1407) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/pjdfstest/tests/open/
H A D18.t2 # $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 D21.t2 # $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 D24.t2 # $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 D11.t2 # $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 D13.t2 # $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 D06.t2 # $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 D10.t2 # $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 D23.t2 # $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 D02.t2 # $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 D04.t2 # $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
H A D16.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/16.t 219621 2011-03-13 19:35:13Z pjd $
15 desc="open returns $error when O_NOFOLLOW was specified and the target is a symbolic link"
23 expect $error open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644
24 expect $error open ${n1} O_RDONLY,O_NOFOLLOW
25 expect $error open ${n1} O_WRONLY,O_NOFOLLOW
26 expect $error open ${n1} O_RDWR,O_NOFOLLOW
H A D07.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/07.t 211352 2010-08-15 21:24:17Z pjd $
4 desc="open returns EACCES when O_TRUNC is specified and write permission is denied"
22 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
24 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
26 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
29 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
31 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
33 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
36 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
38 expect EACCES -u 65533 -g 65534 open
[all...]
H A D14.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/14.t 211352 2010-08-15 21:24:17Z pjd $
4 desc="open returns EROFS if the named file resides on a read-only file system, and the file is to be modified"
21 expect 0 open ${n0}/${n1} O_WRONLY
22 expect 0 open ${n0}/${n1} O_RDWR
23 expect 0 open ${n0}/${n1} O_RDONLY,O_TRUNC
25 expect EROFS open ${n0}/${n1} O_WRONLY
26 expect EROFS open ${n0}/${n1} O_RDWR
27 expect EROFS open ${n0}/${n1} O_RDONLY,O_TRUNC
H A D01.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/01.t 211474 2010-08-18 22:06:43Z pjd $
4 desc="open returns ENOTDIR if a component of the path prefix is not a directory"
17 expect ENOTDIR open ${n0}/${n1}/test O_RDONLY
18 expect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644
H A D03.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/03.t 211352 2010-08-15 21:24:17Z pjd $
4 desc="open returns ENAMETOOLONG if an entire path name exceeded ${PATH_MAX} characters"
16 expect 0 open ${nx} O_CREAT 0642
19 expect ENAMETOOLONG open ${nxx} O_CREAT 0642
H A D09.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/09.t 211352 2010-08-15 21:24:17Z pjd $
27 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
31 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644
33 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
37 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
42 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
49 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644
51 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
60 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
H A D12.t2 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/12.t 211352 2010-08-15 21:24:17Z pjd $
4 desc="open returns ELOOP if too many symbolic links were encountered in translating the pathname"
16 expect ELOOP open ${n0}/test O_RDONLY
17 expect ELOOP open ${n1}/test O_RDONLY
/freebsd-11-stable/contrib/mdocml/
H A Dtest-O_DIRECTORY.c6 return open(".", O_RDONLY | O_DIRECTORY) == -1;
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/syscall/
H A Dtst.openret.ksh31 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-11-stable/cddl/compat/opensolaris/include/
H A Dfcntl.h35 #define open64(...) open(__VA_ARGS__)
/freebsd-11-stable/contrib/pjdfstest/tests/ftruncate/
H A D13.t14 expect EINVAL -- open ${n0} O_RDWR : ftruncate 0 -1
15 expect EINVAL -- open ${n0} O_WRONLY : ftruncate 0 -999999
H A D00.t19 expect 0 open ${n0} O_RDWR : ftruncate 0 1234567
21 expect 0 open ${n0} O_WRONLY : ftruncate 0 567
26 expect 0 open ${n0} O_RDWR : ftruncate 0 23456
28 expect 0 open ${n0} O_WRONLY : ftruncate 0 1
36 expect 0 open ${n0} O_RDWR : ftruncate 0 123
45 expect EINVAL -u 65534 open ${n0} O_RDONLY : ftruncate 0 123
51 expect 0 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
54 expect 0 -u 65534 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
/freebsd-11-stable/contrib/file/python/
H A Dexample.py5 ms = magic.open(magic.NONE)
10 f = open("/bin/ls", "rb")
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/
H A Dspecopen.d40 syscall::open:entry,
55 syscall::open:return,
63 syscall::open:return,
71 syscall::open:return,
/freebsd-11-stable/tools/test/devrandom/
H A Dhammer.urandom11 open(ZERO, "/dev/zero") || die "Cannot open /dev/zero - $!\n";
14 open(BIN, "/dev/urandom");

Completed in 153 milliseconds

1234567891011>>