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

1234567891011>>

/freebsd-current/contrib/mandoc/
H A Dtest-O_DIRECTORY.c6 return open(".", O_RDONLY | O_DIRECTORY) == -1;
/freebsd-current/contrib/pjdfstest/tests/open/
H A D18.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/18.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EWOULDBLOCK when O_NONBLOCK and one of O_SHLOCK or O_EXLOCK is specified and the file is locked"
17 expect 0 open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_SHLOCK,O_NONBLOCK
18 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
19 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_SHLOCK : open ${n0} O_RDONLY,O_EXLOCK,O_NONBLOCK
20 expect "EWOULDBLOCK|EAGAIN" open ${n0} O_RDONLY,O_EXLOCK : open
[all...]
H A D21.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/21.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EFAULT if the path argument points outside the process's allocated address space"
12 expect EFAULT open NULL O_RDONLY
13 expect EFAULT open DEADCODE O_RDONLY
H A D11.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/11.t 211352 2010-08-15 21:24:17Z pjd $
5 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"
27 expect 0 open ${n0} O_WRONLY,O_APPEND
28 expect 0 open ${n0} O_RDWR,O_APPEND
29 expect EPERM open ${n0} O_WRONLY
30 expect EPERM open ${n0} O_RDWR
31 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
32 expect EPERM open ${n0} O_RDONLY,O_TRUNC
33 todo FreeBSD:ZFS "When fle is protected by SF_APPEND, open(O_TRUNC) should return EPERM."
34 expect EPERM open
[all...]
H A D13.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/13.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EISDIR when trying to open a directory for writing"
18 expect 0 open ${n0} O_RDONLY
19 expect EISDIR open ${n0} O_WRONLY
20 expect EISDIR open ${n0} O_RDWR
21 expect EISDIR open ${n0} O_RDONLY,O_TRUNC
22 expect EISDIR open ${n0} O_WRONLY,O_TRUNC
23 expect EISDIR open ${n0} O_RDWR,O_TRUNC
H A D06.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/06.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EACCES when the required permissions (for reading and/or writing) are denied for the given flags"
25 expect 0 -u 65534 -g 65534 open ${n1} O_RDONLY,
26 expect 0 -u 65534 -g 65534 open ${n1} O_WRONLY,
27 expect 0 -u 65534 -g 65534 open ${n1} O_RDWR,
29 expect 0 -u 65533 -g 65534 open ${n1} O_RDONLY,
30 expect 0 -u 65533 -g 65534 open ${n1} O_WRONLY,
31 expect 0 -u 65533 -g 65534 open ${n1} O_RDWR,
33 expect 0 -u 65533 -g 65533 open ${n1} O_RDONLY,
34 expect 0 -u 65533 -g 65533 open
[all...]
H A D10.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/10.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EPERM when the named file has its immutable flag set and the file is to be modified"
27 expect EPERM open ${n0} O_WRONLY
28 expect EPERM open ${n0} O_RDWR
29 expect EPERM open ${n0} O_RDONLY,O_TRUNC
35 expect 0 open ${n0} O_WRONLY
36 expect 0 open ${n0} O_RDWR
37 expect 0 open ${n0} O_RDONLY,O_TRUNC
45 expect EPERM open ${n0} O_WRONLY
46 expect EPERM open
[all...]
H A D24.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/24.t 211352 2010-08-15 21:24:17Z pjd $
8 # POSIX doesn't explicitly state the errno for open(2)'ing sockets.
22 desc="open returns $expected_error when trying to open UNIX domain socket"
29 expect $expected_error open ${n0} O_RDONLY
30 expect $expected_error open ${n0} O_WRONLY
31 expect $expected_error open ${n0} O_RDWR
H A D23.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/23.t 211352 2010-08-15 21:24:17Z pjd $
5 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"
15 expect "0|EINVAL" open ${n0} O_RDONLY,O_RDWR
16 expect "0|EINVAL" open ${n0} O_WRONLY,O_RDWR
17 expect "0|EINVAL" open ${n0} O_RDONLY,O_WRONLY,O_RDWR
H A D04.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/04.t 211352 2010-08-15 21:24:17Z pjd $
5 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"
16 expect ENOENT open ${n0}/${n1}/test O_CREAT 0644
17 expect ENOENT open ${n0}/${n1} O_RDONLY
H A D02.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/02.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns ENAMETOOLONG if a component of a pathname exceeded {NAME_MAX} characters"
15 expect 0 open ${nx} O_CREAT 0620
18 expect ENAMETOOLONG open ${nxx} O_CREAT 0620
H A D16.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/16.t 219621 2011-03-13 19:35:13Z pjd $
16 desc="open returns $error when O_NOFOLLOW was specified and the target is a symbolic link"
24 expect $error open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644
25 expect $error open ${n1} O_RDONLY,O_NOFOLLOW
26 expect $error open ${n1} O_WRONLY,O_NOFOLLOW
27 expect $error open ${n1} O_RDWR,O_NOFOLLOW
H A D07.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/07.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EACCES when O_TRUNC is specified and write permission is denied"
23 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
25 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
27 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
30 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
32 expect EACCES -u 65533 -g 65534 open ${n1} O_RDONLY,O_TRUNC
34 expect EACCES -u 65533 -g 65533 open ${n1} O_RDONLY,O_TRUNC
37 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_TRUNC
39 expect EACCES -u 65533 -g 65534 open
[all...]
H A D14.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/14.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EROFS if the named file resides on a read-only file system, and the file is to be modified"
22 expect 0 open ${n0}/${n1} O_WRONLY
23 expect 0 open ${n0}/${n1} O_RDWR
24 expect 0 open ${n0}/${n1} O_RDONLY,O_TRUNC
26 expect EROFS open ${n0}/${n1} O_WRONLY
27 expect EROFS open ${n0}/${n1} O_RDWR
28 expect EROFS open ${n0}/${n1} O_RDONLY,O_TRUNC
H A D01.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/01.t 211474 2010-08-18 22:06:43Z pjd $
5 desc="open returns ENOTDIR if a component of the path prefix is not a directory"
18 expect ENOTDIR open ${n0}/${n1}/test O_RDONLY
19 expect ENOTDIR open ${n0}/${n1}/test O_CREAT 0644
H A D09.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/09.t 211352 2010-08-15 21:24:17Z pjd $
28 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
32 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644
34 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
38 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
43 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
50 expect EPERM open ${n0}/${n1} O_RDONLY,O_CREAT 0644
52 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
61 expect 0 open ${n0}/${n1} O_RDONLY,O_CREAT 0644
/freebsd-current/tools/test/stress2/misc/
H A Dopen.sh30 # Bug 202892 open with O_CREAT | O_DIRECTORY when path references a symlink.
38 sed '1,/^EOF/d' < $odir/$0 > $dir/open.c
39 mycc -o open -Wall -Wextra -O0 -g open.c || exit 1
40 rm -f open.c
42 wdir=/tmp/open.$$
47 /tmp/open || { echo FAIL; status=$?; }
51 rm -rf /tmp/open $wdir
75 fd = open("broken", O_CREAT | O_DIRECTORY, 0600);
77 errx(1, "open(broke
[all...]
/freebsd-current/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-current/contrib/pjdfstest/tests/ftruncate/
H A D13.t15 expect EINVAL -- open ${n0} O_RDWR : ftruncate 0 -1
16 expect EINVAL -- open ${n0} O_WRONLY : ftruncate 0 -999999
H A D00.t20 expect 0 open ${n0} O_RDWR : ftruncate 0 1234567
22 expect 0 open ${n0} O_WRONLY : ftruncate 0 567
27 expect 0 open ${n0} O_RDWR : ftruncate 0 23456
29 expect 0 open ${n0} O_WRONLY : ftruncate 0 1
37 expect 0 open ${n0} O_RDWR : ftruncate 0 123
46 expect EINVAL -u 65534 open ${n0} O_RDONLY : ftruncate 0 123
52 expect 0 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
55 expect 0 -u 65534 open ${n0} O_CREAT,O_RDWR 0 : ftruncate 0 0
/freebsd-current/libexec/rtld-elf/rtld-libc/
H A Dnamespace.h33 #define open _open macro
H A Dun-namespace.h33 #undef open macro
/freebsd-current/cddl/compat/opensolaris/include/
H A Dfcntl.h34 #define open64(...) open(__VA_ARGS__)
/freebsd-current/contrib/file/python/
H A Dexample.py5 ms = magic.open(magic.NONE)
10 f = open("/bin/ls", "rb")
/freebsd-current/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,

Completed in 122 milliseconds

1234567891011>>