Home
last modified time | relevance | path

Searched refs:oflag (Results 1 – 25 of 94) sorted by relevance

1234

/freebsd/usr.sbin/smbmsg/
H A Dsmbmsg.c57 static int oflag = -1; /* output data */ variable
146 if (iflag == -1 && oflag == 0) in do_io()
149 else if (iflag == 0 && oflag == -1) in do_io()
152 else if (iflag == 1 && oflag == -1) { in do_io()
159 } else if (iflag == -1 && oflag == 1) { in do_io()
166 if (iflag == 1 && oflag == -1) { in do_io()
173 } else if (iflag == -1 && oflag == 1) { in do_io()
177 } else if (wflag && iflag == 2 && oflag == -1) { in do_io()
184 } else if (wflag && iflag == -1 && oflag == 2) { in do_io()
188 } else if (wflag && iflag == 2 && oflag == 2) { in do_io()
[all …]
/freebsd/tests/sys/capsicum/
H A Dopenat.cc253 void CheckPolicing(int oflag) { in CheckPolicing() argument
255 EXPECT_OPEN_OK(openat(dir_fd_, "topfile", O_RDONLY|oflag)); in CheckPolicing()
256 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/bottomfile", O_RDONLY|oflag)); in CheckPolicing()
257 EXPECT_OPEN_OK(openat(sub_fd_, "bottomfile", O_RDONLY|oflag)); in CheckPolicing()
258 EXPECT_OPEN_OK(openat(sub_fd_, ".", O_RDONLY|oflag)); in CheckPolicing()
261 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../topfile", O_RDONLY|oflag); in CheckPolicing()
262 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../subdir/bottomfile", O_RDONLY|oflag); in CheckPolicing()
263 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "..", O_RDONLY|oflag); in CheckPolicing()
266 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/../topfile", O_RDONLY|oflag)); in CheckPolicing()
270 EXPECT_OPENAT_FAIL_TRAVERSAL(dir_fd_, "subdir/../../etc/passwd", O_RDONLY|oflag); in CheckPolicing()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_nopwrite.ksh43 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \
46 dd if=/dev/urandom of=$TESTDIR/file_8k_copies bs=1024k count=$MEGS oflag=sync \
51 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \
55 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \
67 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
71 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
77 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
81 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
105 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
109 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
[all …]
/freebsd/tests/sys/cddl/zfs/bin/
H A Dfile_write.c47 int oflag = 0; in main() local
152 oflag = (O_RDWR|O_CREAT); in main()
154 oflag = (O_RDWR|O_APPEND); in main()
163 oflag = oflag | O_RSYNC; in main()
168 oflag = oflag | O_SYNC; in main()
175 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
/freebsd/sys/kern/
H A Dtty_compat.c276 tcflag_t oflag = tp->t_termios.c_oflag; in ttcompatgetflags() local
282 if (iflag&ICRNL || oflag&ONLCR) in ttcompatgetflags()
307 if (!(flags&RAW) && !(oflag&OPOST) && (cflag&(CSIZE|PARENB)) == CS8) in ttcompatgetflags()
313 if (oflag&TAB3) in ttcompatgetflags()
336 tcflag_t oflag = t->c_oflag; in ttcompatsetflags() local
348 oflag |= TAB3; in ttcompatsetflags()
350 oflag &= ~TAB3; in ttcompatsetflags()
357 oflag |= ONLCR; in ttcompatsetflags()
360 oflag &= ~ONLCR; in ttcompatsetflags()
377 oflag &= ~OPOST; in ttcompatsetflags()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_write.c62 int oflag = 0; in main() local
177 oflag = (O_RDWR|O_CREAT); in main()
179 oflag = (O_RDWR|O_APPEND); in main()
187 oflag = oflag | O_RSYNC; in main()
191 oflag = oflag | O_SYNC; in main()
198 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/
H A Dslog_replay_fs_001.ksh87 oflag=sync,direct bs=4k count=1
121 oflag=sync bs=1k count=8
126 oflag=sync bs=1k count=1
128 oflag=sync bs=512 count=1
150 oflag=sync bs=128k count=64
154 oflag=sync,direct bs=4k count=1
158 oflag=sync bs=128k count=8
160 oflag=sync bs=128k count=2
163 oflag=sync bs=128k count=8
165 oflag=sync bs=128k count=2 seek=2
[all …]
/freebsd/usr.sbin/mixer/
H A Dmixer.c60 int aflag = 0, dflag = 0, oflag = 0, sflag = 0; in main() local
81 oflag = 1; in main()
105 printrecsrc(m, oflag); in main()
107 printall(m, oflag); in main()
108 if (oflag) in main()
137 printrecsrc(m, oflag); in main()
205 printall(m, oflag); in main()
238 printall(struct mixer *m, int oflag) in printall() argument
242 printminfo(m, oflag); in printall()
245 printdev(m, oflag); in printall()
250 printminfo(struct mixer * m,int oflag) printminfo() argument
279 printdev(struct mixer * m,int oflag) printdev() argument
304 printrecsrc(struct mixer * m,int oflag) printrecsrc() argument
[all...]
/freebsd/usr.bin/bintrans/
H A Duudecode.c62 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable
98 if (oflag || rflag) in main_decode()
111 oflag = true; /* output to the specified file */ in main_decode()
116 if (oflag) in main_decode()
121 if (cflag || oflag) in main_decode()
126 if (oflag) in main_decode()
261 if (!oflag) in decode2()
286 if (oflag) { in decode2()
/freebsd/usr.bin/cmp/
H A Dcmp.c100 int ch, fd1, fd2, oflag; in main() local
106 oflag = O_RDONLY; in main()
113 oflag |= O_NOFOLLOW; in main()
168 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main()
181 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) { in main()
/freebsd/bin/pwait/
H A Dpwait.c90 bool oflag, pflag, tflag, verbose; in main() local
92 oflag = false; in main()
101 oflag = true; in main()
206 if ((ndone == 0 || !oflag) && nleft > 0 && tflag) { in main()
222 while ((ndone == 0 || !oflag) && ret == EX_OK && nleft > 0) { in main()
/freebsd/usr.bin/diff3/
H A Ddiff3.c138 static int oflag; /* indicates whether to mark overlaps (-E or -X) */ variable
703 if (!oflag || !overlap[n]) { in edscript()
710 if (!oflag || !overlap[n]) { in edscript()
723 exit(oflag ? overlapcnt > 0 : 0); in edscript()
748 if (!oflag || !overlap[n]) { in Ascript()
770 if (!oflag || !overlap[n]) { in Ascript()
789 if (!oflag || !overlap[n]) { in Ascript()
853 if (!oflag || !overlap[n]) { in mergescript()
970 oflag = 0; in main()
988 oflag = 1; in main()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DPseudoTerminal.cpp62 llvm::Error PseudoTerminal::OpenFirstAvailablePrimary(int oflag) { in OpenFirstAvailablePrimary() argument
65 m_primary_fd = ::posix_openpt(oflag); in OpenFirstAvailablePrimary()
91 llvm::Error PseudoTerminal::OpenSecondary(int oflag) { in OpenSecondary() argument
95 m_secondary_fd = FileSystem::Instance().Open(name.c_str(), oflag); in OpenSecondary()
/freebsd/sys/contrib/zlib/
H A Dgzlib.c92 int oflag = 0; in gz_open() local
138 oflag |= O_CLOEXEC; in gz_open()
163 oflag |= O_NONBLOCK; in gz_open()
231 oflag |= in gz_open()
250 state->fd = open((const char *)path, oflag, 0666); in gz_open()
253 state->fd = _wopen(path, oflag, _S_IREAD | _S_IWRITE); in gz_open()
257 if (oflag & O_NONBLOCK) in gz_open()
261 if (oflag & O_CLOEXEC) in gz_open()
/freebsd/libexec/getty/
H A Dsubr.c233 tcflag_t iflag, oflag, cflag, lflag; in set_flags() local
267 oflag = omode.c_oflag; in set_flags()
317 SET(oflag, ONLCR|OPOST); in set_flags()
320 CLR(oflag, ONLCR); in set_flags()
324 SET(oflag, OXTABS|OPOST); in set_flags()
326 CLR(oflag, OXTABS); in set_flags()
335 CLR(oflag, OPOST); in set_flags()
385 tmode.c_oflag = oflag; in set_flags()
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/
H A Drtsan_interceptors_posix.cpp57 INTERCEPTOR(int, open, const char *path, int oflag, ...) { in INTERCEPTOR() argument
65 if (OpenReadsVaArgs(oflag)) { in INTERCEPTOR()
67 va_start(args, oflag); in INTERCEPTOR()
70 return REAL(open)(path, oflag, mode); in INTERCEPTOR()
73 return REAL(open)(path, oflag); in INTERCEPTOR()
77 INTERCEPTOR(int, open64, const char *path, int oflag, ...) { in INTERCEPTOR() argument
81 if (OpenReadsVaArgs(oflag)) { in INTERCEPTOR()
83 va_start(args, oflag); in INTERCEPTOR()
86 return REAL(open64)(path, oflag, mode); in INTERCEPTOR()
89 return REAL(open64)(path, oflag); in INTERCEPTOR()
[all …]
/freebsd/usr.bin/grep/
H A Dutil.c649 if ((color == NULL && !oflag) || qflag || lflag || in procline()
669 if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag))
838 if (oflag && matchall) in printline()
844 if ((oflag || color) && (pc->printed > 0 || matchidx > 0)) { in printline()
846 if (!oflag && pc->printed == 0) { in printline()
858 if (oflag) {
872 if (oflag)
881 if (!oflag && matchidx != MAX_MATCHES) {
889 } else if (!oflag) {
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DPseudoTerminal.h129 llvm::Error OpenFirstAvailablePrimary(int oflag);
150 llvm::Error OpenSecondary(int oflag);
/freebsd/usr.bin/finger/
H A Dfinger.c78 int entries, gflag, lflag, pplan, oflag; variable
123 oflag = 0; /* remote host info */ in option()
126 oflag = 1; /* office info */ in option()
170 oflag = 1; /* default to old "office" behavior */ in main()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_sync.ksh46 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \
52 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
/freebsd/sbin/shutdown/
H A Dshutdown.c84 killflg, mbuflen, oflag; variable
160 oflag = 1; in main()
184 if (oflag && !(dohalt || dopower || doreboot || docycle)) in main()
187 if (nosync != NULL && !oflag) in main()
400 if (!oflag) { in die_you_gravy_sucking_pig_dog()
/freebsd/bin/dd/
H A Dargs.c402 static const struct oflag { struct
414 struct oflag *op, tmp; in f_oflag() argument
418 op = bsearch(&tmp, olist, nitems(olist), sizeof(struct oflag), in f_oflag()
430 return (strcmp(((const struct oflag *)a)->name, in c_oflag()
431 ((const struct oflag *)b)->name)); in c_oflag()
/freebsd/contrib/tcsh/
H A Dsh.misc.c658 xopen(const char *path, int oflag, ...) in xopen() argument
662 if ((oflag & O_CREAT) == 0) { in xopen()
663 while ((res = open(path, oflag)) == -1 && errno == EINTR) in xopen()
670 va_start(ap, oflag); in xopen()
676 while ((res = open(path, oflag, mode)) == -1 && errno == EINTR) in xopen()
/freebsd/lib/libc/gen/
H A Dsem.c220 _libc_sem_open_compat(const char *name, int oflag, ...) in _libc_sem_open_compat() argument
231 if ((oflag & O_CREAT) != 0) { in _libc_sem_open_compat()
234 va_start(ap, oflag); in _libc_sem_open_compat()
243 if (ksem_open(&semid, name, oflag, mode, value) == -1) in _libc_sem_open_compat()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/
H A Dblock_cloning_replay.ksh76 oflag=sync bs=128k count=4
79 oflag=sync bs=16K count=2048

1234