Searched refs:open (Results 26 - 50 of 1863) sorted by relevance

1234567891011>>

/freebsd-current/contrib/pjdfstest/tests/open/
H A D03.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/03.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns ENAMETOOLONG if an entire path name exceeded ${PATH_MAX} characters"
17 expect 0 open ${nx} O_CREAT 0642
20 expect ENAMETOOLONG open ${nxx} O_CREAT 0642
H A D12.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/12.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns ELOOP if too many symbolic links were encountered in translating the pathname"
17 expect ELOOP open ${n0}/test O_RDONLY
18 expect ELOOP open ${n1}/test O_RDONLY
H A D17.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/17.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns ENXIO when O_NONBLOCK is set, the named file is a fifo, O_WRONLY is set, and no process has the file open for reading"
15 expect ENXIO open ${n0} O_WRONLY,O_NONBLOCK
H A D20.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/20.t 211352 2010-08-15 21:24:17Z pjd $
5 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"
24 expect ETXTBSY open ${n0} O_WRONLY
25 expect ETXTBSY open ${n0} O_RDWR
26 expect ETXTBSY open ${n0} O_RDONLY,O_TRUNC
H A D05.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/05.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EACCES when search permission is denied for a component of the path prefix"
22 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY
24 expect EACCES -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY
26 expect 0 -u 65534 -g 65534 open ${n1}/${n2} O_RDONLY
H A D08.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/08.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open returns EACCES when O_CREAT is specified, the file does not exist, and the directory in which it is to be created does not permit writing"
18 expect EACCES -u 65534 -g 65534 open ${n1} O_RDONLY,O_CREAT 0644
H A D00.t3 # $FreeBSD: head/tools/regression/pjdfstest/tests/open/00.t 211352 2010-08-15 21:24:17Z pjd $
5 desc="open opens (and eventually creates) a file"
25 expect 0 open ${n0} O_CREAT,O_WRONLY 0755
28 expect 0 open ${n0} O_CREAT,O_WRONLY 0151
31 expect 0 -U 077 open ${n0} O_CREAT,O_WRONLY 0151
34 expect 0 -U 070 open ${n0} O_CREAT,O_WRONLY 0345
37 expect 0 -U 0501 open ${n0} O_CREAT,O_WRONLY 0345
46 expect 0 -u 65535 -g 65535 open ${n0} O_CREAT,O_WRONLY 0644
49 expect 0 -u 65535 -g 65534 open ${n0} O_CREAT,O_WRONLY 0644
53 expect 0 -u 65534 -g 65533 open
[all...]
/freebsd-current/contrib/pjdfstest/tests/utimensat/
H A D07.t29 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0
30 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0
31 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
35 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT $DATE2 0 0
36 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 0 UTIME_OMIT 0
37 expect EPERM -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
42 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0
45 expect 0 -u $UID_ROOT open . O_RDONLY : utimensat 0 ${n0} $DATE1 0 $DATE2 0 0
H A D06.t27 expect EACCES -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
32 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
35 expect 0 -u $UID_ROOT open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_OMIT 0 UTIME_OMIT 0
40 expect 0 -u $UID_NOBODY open . O_RDONLY : utimensat 0 ${n0} 0 UTIME_NOW 0 UTIME_NOW 0
/freebsd-current/tools/test/devrandom/
H A Dhammer.urandom10 open(ZERO, "/dev/zero") || die "Cannot open /dev/zero - $!\n";
13 open(BIN, "/dev/urandom");
H A Dhammer.random11 open(BIN, "/dev/random") || die "Cannot open /dev/random - $!\n";
/freebsd-current/stand/libsa/
H A Dstat.c39 fd = open(str, O_RDONLY);
/freebsd-current/contrib/cortex-strings/scripts/
H A Dfixup.py21 with open(arg) as f:
23 with open(arg, 'w') as f:
/freebsd-current/lib/libc/sys/
H A Dopen.c39 #pragma weak open macro
41 open(const char *path, int flags, ...) function
/freebsd-current/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/io/
H A Dtst.fds.c77 * To test the fds[] array, we open /dev/null (a file with reliable
80 fds[n++] = open(file, O_RDONLY);
81 fds[n++] = open(file, O_WRONLY);
82 fds[n++] = open(file, O_RDWR);
84 fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT |
87 fds[n++] = open(file, O_RDWR);
/freebsd-current/contrib/openbsm/bin/auditdistd/
H A Dopenat.h42 cfd = open(".", O_RDONLY | O_DIRECTORY);
61 ffd = open(path, flags, mode);
63 ffd = open(path, flags);
/freebsd-current/tools/regression/nfsmmap/test1/
H A Dtest1.c17 fd = open("test1.data", O_RDWR|O_CREAT, 0666);
25 fd = open("test1.data", O_RDWR);
40 fd2 = open("test1.scratch", O_RDWR|O_CREAT, 0666);
/freebsd-current/tools/regression/nfsmmap/test2/
H A Dtest2.c17 fd = open("test2.data", O_RDWR|O_CREAT, 0666);
25 fd = open("test2.data", O_RDWR);
38 fd2 = open("test2.scratch", O_RDWR|O_CREAT, 0666);
/freebsd-current/contrib/libxo/tests/xo/
H A Dxo_02.sh16 # This is testing --wrap, --open, --close, --top-wrap, etc, so
21 ${XOP} --top-wrap --open a/b/c "$@"
26 ${XOP} --top-wrap --open a/b/c "$@"
36 ${XOP} --open answer
41 ${XOP} --top-wrap --open top/data
49 ${XOP} --open-list machine
52 ${XOP} --depth 1 $NF --open-instance machine
/freebsd-current/contrib/pjdfstest/tests/chmod/
H A D12.t22 expect 0777 -u 65534 -g 65534 open ${n0} O_WRONLY : write 0 x : fstat 0 mode
28 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
34 expect 0777 -u 65534 -g 65534 open ${n0} O_RDWR : write 0 x : fstat 0 mode
/freebsd-current/crypto/openssl/test/recipes/
H A D90-test_threads.t40 open CFGBASE, '<', $config_path;
41 open CFGINC, '<', bldtop_file('/test/fipsmodule.cnf');
42 open CFGOUT, '>', 'thread.cnf';
/freebsd-current/contrib/ntp/scripts/build/
H A DgenAuthors.in47 open(my $FILE, '<', $A_file) or die "Could not open <$A_file>: $!\n";
66 open(BKU, $bk_u) || die "$0: <$bk_u> failed: $!\n";
75 open(my $FILE, '>>', "$A_dir/$name.txt") || die "Cannot create '$A_dir/$name.txt': $!\n";
/freebsd-current/tests/sys/fs/fusefs/
H A Dopendir.cc85 * kernel checked for it with lookup and tried to open it
102 ASSERT_EQ(-1, open(FULLPATH, O_DIRECTORY));
122 EXPECT_EQ(-1, open(FULLPATH, O_DIRECTORY));
126 TEST_F(Opendir, open)
136 SET_OUT_HEADER_LEN(out, open);
139 fd = open(FULLPATH, O_DIRECTORY);
156 SET_OUT_HEADER_LEN(out, open);
159 fd = open(FULLPATH, O_EXEC | O_DIRECTORY);
174 SET_OUT_HEADER_LEN(out, open);
193 EXPECT_EQ(-1, open(FULLPAT
[all...]
/freebsd-current/contrib/kyua/utils/process/
H A Dsystem.cpp50 /// Indirection to execute the open(2) system call.
51 int (*detail::syscall_open)(const char*, const int, ...) = ::open;
/freebsd-current/contrib/file/python/
H A Dsetup.py7 with open('README.md', 'r') as fh:

Completed in 143 milliseconds

1234567891011>>