Home
last modified time | relevance | path

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

1234

/freebsd-14.2/usr.sbin/smbmsg/
H A Dsmbmsg.c146 if (iflag == -1 && oflag == 0) in do_io()
149 else if (iflag == 0 && oflag == -1) in do_io()
166 if (iflag == 1 && oflag == -1) { in do_io()
215 c.wcount = oflag; in do_io()
260 if (oflag < 0 || oflag > SMB_MAXBLOCKSIZE) in main()
263 oflag); in main()
292 !((iflag == 2 && oflag == -1) || in main()
293 (iflag == -1 && oflag == 2) || in main()
294 (iflag == 2 && oflag == 2))) in main()
300 if (oflag > 0) { in main()
[all …]
/freebsd-14.2/contrib/capsicum-test/
H A Dopenat.cc261 void CheckPolicing(int oflag) { in CheckPolicing() argument
263 EXPECT_OPEN_OK(openat(dir_fd_, "topfile", O_RDONLY|oflag)); in CheckPolicing()
264 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/bottomfile", O_RDONLY|oflag)); in CheckPolicing()
265 EXPECT_OPEN_OK(openat(sub_fd_, "bottomfile", O_RDONLY|oflag)); in CheckPolicing()
266 EXPECT_OPEN_OK(openat(sub_fd_, ".", O_RDONLY|oflag)); in CheckPolicing()
269 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../topfile", O_RDONLY|oflag); in CheckPolicing()
271 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "..", O_RDONLY|oflag); in CheckPolicing()
275 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/../topfile", O_RDONLY|oflag)); in CheckPolicing()
283 EXPECT_OPEN_OK(openat(dir_fd_, "symlink.samedir", O_RDONLY|oflag)); in CheckPolicing()
284 EXPECT_OPEN_OK(openat(dir_fd_, "symlink.down", O_RDONLY|oflag)); in CheckPolicing()
[all …]
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_nopwrite.ksh42 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \
50 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \
54 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \
66 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
70 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
76 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
80 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
104 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
108 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
117 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
[all …]
/freebsd-14.2/tests/sys/cddl/zfs/bin/
H A Dfile_write.c48 int oflag = 0; in main() local
153 oflag = (O_RDWR|O_CREAT); in main()
155 oflag = (O_RDWR|O_APPEND); in main()
164 oflag = oflag | O_RSYNC; in main()
169 oflag = oflag | O_SYNC; in main()
176 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_write.c61 int oflag = 0; in main() local
176 oflag = (O_RDWR|O_CREAT); in main()
178 oflag = (O_RDWR|O_APPEND); in main()
186 oflag = oflag | O_RSYNC; in main()
190 oflag = oflag | O_SYNC; in main()
197 if ((bigfd = open(filename, oflag, 0666)) == -1) { in main()
/freebsd-14.2/sys/kern/
H A Dtty_compat.c315 if (oflag&TAB3) in ttcompatgetflags()
350 oflag |= TAB3; in ttcompatsetflags()
352 oflag &= ~TAB3; in ttcompatsetflags()
359 oflag |= ONLCR; in ttcompatsetflags()
362 oflag &= ~ONLCR; in ttcompatsetflags()
379 oflag &= ~OPOST; in ttcompatsetflags()
381 oflag |= OPOST; in ttcompatsetflags()
385 oflag |= OPOST; in ttcompatsetflags()
472 oflag &= ~OPOST; in ttcompatsetlflags()
474 oflag |= OPOST; in ttcompatsetlflags()
[all …]
/freebsd-14.2/usr.sbin/mixer/
H A Dmixer.c84 oflag = 1; in main()
113 printall(m, oflag); in main()
114 if (oflag) in main()
211 printall(m, oflag); in main()
249 printminfo(m, oflag); in printall()
252 printdev(m, oflag); in printall()
261 if (oflag) in printminfo()
291 if (!oflag) { in printdev()
318 if (!oflag) in printrecsrc()
322 if (n++ && !oflag) in printrecsrc()
[all …]
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/
H A Dslog_replay_fs_001.ksh112 oflag=sync bs=1k count=8
117 oflag=sync bs=1k count=1
119 oflag=sync bs=512 count=1
141 oflag=sync bs=128k count=64
145 oflag=sync bs=128k count=8
147 oflag=sync bs=128k count=2
150 oflag=sync bs=128k count=8
152 oflag=sync bs=128k count=2 seek=2
155 oflag=sync bs=128k count=8
157 oflag=sync bs=128k count=2 seek=2 conv=notrunc
[all …]
/freebsd-14.2/bin/pwait/
H A Dpwait.c65 int oflag, tflag, verbose; in main() local
71 oflag = 0; in main()
79 oflag = 1; in main()
163 if (oflag) { in main()
213 if (oflag) { in main()
/freebsd-14.2/usr.bin/bintrans/
H A Duudecode.c74 static bool base64, cflag, iflag, oflag, pflag, rflag, sflag; variable
110 if (oflag || rflag) in main_decode()
123 oflag = true; /* output to the specified file */ in main_decode()
128 if (oflag) in main_decode()
133 if (cflag || oflag) in main_decode()
138 if (oflag) in main_decode()
273 if (!oflag) in decode2()
298 if (oflag) { in decode2()
/freebsd-14.2/usr.bin/cmp/
H A Dcmp.c113 int ch, fd1, fd2, oflag; in main() local
119 oflag = O_RDONLY; in main()
126 oflag |= O_NOFOLLOW; in main()
181 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) { in main()
194 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) { in main()
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/
H A DPseudoTerminal.cpp66 llvm::Error PseudoTerminal::OpenFirstAvailablePrimary(int oflag) { in OpenFirstAvailablePrimary() argument
69 m_primary_fd = ::posix_openpt(oflag); in OpenFirstAvailablePrimary()
95 llvm::Error PseudoTerminal::OpenSecondary(int oflag) { in OpenSecondary() argument
99 m_secondary_fd = FileSystem::Instance().Open(name.c_str(), oflag); in OpenSecondary()
/freebsd-14.2/usr.bin/diff3/
H A Ddiff3.c601 if (!oflag || !overlap[n]) { in edscript()
608 if (!oflag || !overlap[n]) { in edscript()
645 if (!oflag || !overlap[n]) { in Ascript()
670 if (!oflag || !overlap[n]) { in Ascript()
847 oflag = 0; in main()
865 oflag = 1; in main()
871 oflag = 1; in main()
878 oflag = 1; in main()
888 oflag = 1; in main()
911 oflag = 1; in main()
[all …]
/freebsd-14.2/libexec/getty/
H A Dsubr.c239 tcflag_t iflag, oflag, cflag, lflag; in set_flags() local
273 oflag = omode.c_oflag; in set_flags()
323 SET(oflag, ONLCR|OPOST); in set_flags()
326 CLR(oflag, ONLCR); in set_flags()
330 SET(oflag, OXTABS|OPOST); in set_flags()
332 CLR(oflag, OXTABS); in set_flags()
341 CLR(oflag, OPOST); in set_flags()
391 tmode.c_oflag = oflag; in set_flags()
/freebsd-14.2/contrib/llvm-project/lldb/include/lldb/Host/
H A DPseudoTerminal.h129 llvm::Error OpenFirstAvailablePrimary(int oflag);
150 llvm::Error OpenSecondary(int oflag);
/freebsd-14.2/usr.bin/finger/
H A Dfinger.c91 int entries, gflag, lflag, pplan, oflag; variable
136 oflag = 0; /* remote host info */ in option()
139 oflag = 1; /* office info */ in option()
183 oflag = 1; /* default to old "office" behavior */ in main()
/freebsd-14.2/usr.bin/grep/
H A Dutil.c601 if ((color == NULL && !oflag) || qflag || lflag || in procline()
621 if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag)) in procline()
752 if (oflag && matchall) in printline()
758 if ((oflag || color) && matchidx > 0) { in printline()
760 if (!oflag && pc->printed == 0) in printline()
771 if (oflag) { in printline()
784 if (oflag) in printline()
787 if (!oflag) { in printline()
/freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/
H A Dnopwrite_sync.ksh45 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \
51 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
/freebsd-14.2/sbin/shutdown/
H A Dshutdown.c93 static int docycle, dohalt, dopower, doreboot, killflg, mbuflen, oflag; variable
163 oflag = 1; in main()
184 if (oflag && !(dohalt || dopower || doreboot || docycle)) in main()
187 if (nosync != NULL && !oflag) in main()
391 if (!oflag) { in die_you_gravy_sucking_pig_dog()
/freebsd-14.2/bin/dd/
H A Dargs.c408 static const struct oflag { struct
420 struct oflag *op, tmp; in f_oflag() argument
424 op = bsearch(&tmp, olist, nitems(olist), sizeof(struct oflag), in f_oflag()
436 return (strcmp(((const struct oflag *)a)->name, in c_oflag()
437 ((const struct oflag *)b)->name)); in c_oflag()
/freebsd-14.2/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-14.2/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-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/block_cloning/
H A Dblock_cloning_replay.ksh79 oflag=sync bs=128k count=4
82 oflag=sync bs=16K count=2048
H A Dblock_cloning_replay_encrypted.ksh81 oflag=sync bs=128k count=4
84 oflag=sync bs=16K count=2048
/freebsd-14.2/usr.sbin/iostat/
H A Diostat.c146 static int dflag = 0, Iflag = 0, Cflag = 0, Tflag = 0, oflag = 0, Kflag = 0; variable
238 oflag++; in main()
306 else if (oflag > 0) { in main()
743 if (oflag > 0) in phdr()
761 if (oflag > 0) { in phdr()
927 } else if (oflag > 0) { in devstats()

1234