Searched refs:oflag (Results 1 - 25 of 70) sorted by relevance

123

/freebsd-13-stable/usr.sbin/smbmsg/
H A Dsmbmsg.c59 static int oflag = -1; /* output data */ variable
148 if (iflag == -1 && oflag == 0)
151 else if (iflag == 0 && oflag == -1)
154 else if (iflag == 1 && oflag == -1) {
161 } else if (iflag == -1 && oflag == 1) {
168 if (iflag == 1 && oflag == -1) {
175 } else if (iflag == -1 && oflag == 1) {
179 } else if (wflag && iflag == 2 && oflag == -1) {
186 } else if (wflag && iflag == -1 && oflag == 2) {
190 } else if (wflag && iflag == 2 && oflag
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/include/lldb/Host/
H A DPseudoTerminal.h125 /// Opens the first available pseudo terminal with \a oflag as the
136 /// \param[in] oflag
137 /// Flags to use when calling \c posix_openpt(\a oflag).
151 bool OpenFirstAvailablePrimary(int oflag, char *error_str, size_t error_len);
166 /// \param[in] oflag
167 /// Flags to use when calling \c open(\a oflag).
181 bool OpenSecondary(int oflag, char *error_str, size_t error_len);
/freebsd-13-stable/tests/sys/cddl/zfs/bin/
H A Dfile_write.c49 int oflag = 0; local
154 oflag = (O_RDWR|O_CREAT);
156 oflag = (O_RDWR|O_APPEND);
165 oflag = oflag | O_RSYNC;
170 oflag = oflag | O_SYNC;
177 if ((bigfd = open(filename, oflag, 0666)) == -1) {
/freebsd-13-stable/contrib/capsicum-test/
H A Dopenat.cc261 void CheckPolicing(int oflag) { argument
263 EXPECT_OPEN_OK(openat(dir_fd_, "topfile", O_RDONLY|oflag));
264 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/bottomfile", O_RDONLY|oflag));
265 EXPECT_OPEN_OK(openat(sub_fd_, "bottomfile", O_RDONLY|oflag));
266 EXPECT_OPEN_OK(openat(sub_fd_, ".", O_RDONLY|oflag));
269 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../topfile", O_RDONLY|oflag);
270 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "../subdir/bottomfile", O_RDONLY|oflag);
271 EXPECT_OPENAT_FAIL_TRAVERSAL(sub_fd_, "..", O_RDONLY|oflag);
275 EXPECT_OPEN_OK(openat(dir_fd_, "subdir/../topfile", O_RDONLY|oflag));
280 EXPECT_OPENAT_FAIL_TRAVERSAL(dir_fd_, "subdir/../../etc/passwd", O_RDONLY|oflag);
[all...]
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/file_write/
H A Dfile_write.c61 int oflag = 0; local
176 oflag = (O_RDWR|O_CREAT);
178 oflag = (O_RDWR|O_APPEND);
186 oflag = oflag | O_RSYNC;
190 oflag = oflag | O_SYNC;
197 if ((bigfd = open(filename, oflag, 0666)) == -1) {
/freebsd-13-stable/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
[all...]
H A Dslog_replay_volume.ksh117 log_must dd if=/dev/urandom of=$MNTPNT/latency-8k bs=8k count=1 oflag=sync
118 log_must dd if=/dev/urandom of=$MNTPNT/latency-128k bs=128k count=1 oflag=sync
/freebsd-13-stable/usr.bin/finger/
H A Dextern.h46 extern int oflag;
H A Dfinger.c93 int entries, gflag, lflag, pplan, oflag; variable
138 oflag = 0; /* remote host info */
141 oflag = 1; /* office info */
185 oflag = 1; /* default to old "office" behavior */
H A Dsprint.c92 oflag ? "Office Phone" : "Where");
148 if (oflag) {
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_nopwrite.ksh35 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \
38 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \
49 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
54 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."
84 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed."
/freebsd-13-stable/sys/kern/
H A Dtty_compat.c280 tcflag_t oflag = tp->t_termios.c_oflag; local
286 if (iflag&ICRNL || oflag&ONLCR)
311 if (!(flags&RAW) && !(oflag&OPOST) && (cflag&(CSIZE|PARENB)) == CS8)
317 if (oflag&TAB3)
340 tcflag_t oflag = t->c_oflag; local
352 oflag |= TAB3;
354 oflag &= ~TAB3;
361 oflag |= ONLCR;
364 oflag &= ~ONLCR;
381 oflag
417 tcflag_t oflag = t->c_oflag; local
[all...]
/freebsd-13-stable/sys/sys/
H A D_semaphore.h48 int ksem_open(semid_t *idp, const char *name, int oflag, mode_t mode,
/freebsd-13-stable/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-13-stable/bin/pwait/
H A Dpwait.c67 int oflag, tflag, verbose; local
73 oflag = 0;
81 oflag = 1;
165 if (oflag) {
215 if (oflag) {
/freebsd-13-stable/usr.bin/cmp/
H A Dcmp.c80 int ch, fd1, fd2, oflag; local
84 oflag = O_RDONLY;
88 oflag |= O_NOFOLLOW;
128 } else if ((fd1 = open(file1, oflag, 0)) < 0 && errno != EMLINK) {
141 } else if ((fd2 = open(file2, oflag, 0)) < 0 && errno != EMLINK) {
/freebsd-13-stable/contrib/llvm-project/lldb/source/Host/common/
H A DPseudoTerminal.cpp77 bool PseudoTerminal::OpenFirstAvailablePrimary(int oflag, char *error_str, argument
84 m_primary_fd = ::posix_openpt(oflag);
124 bool PseudoTerminal::OpenSecondary(int oflag, char *error_str, argument
138 llvm::sys::RetryAfterSignal(-1, ::open, secondary_name, oflag);
/freebsd-13-stable/sys/contrib/octeon-sdk/
H A Dcvmx-shmem.h109 struct cvmx_shmem_dscptr *cvmx_shmem_named_block_open(char *name, uint32_t size, int oflag);
H A Dcvmx-shmem.c300 struct cvmx_shmem_dscptr *cvmx_shmem_named_block_open(char *name, uint32_t size, int oflag) argument
324 if ((shmem_nblk == NULL) && (oflag & CVMX_SHMEM_O_CREAT))
419 if (oflag & CVMX_SHMEM_O_WRONLY)
421 if (oflag & CVMX_SHMEM_O_RDWR)
/freebsd-13-stable/usr.bin/uudecode/
H A Duudecode.c72 static int base64, cflag, iflag, oflag, pflag, rflag, sflag; variable
91 if (oflag || rflag)
104 oflag = 1; /* output to the specified file */
109 if (oflag)
114 if (cflag || oflag)
119 if (oflag)
254 if (!oflag)
279 if (oflag) {
/freebsd-13-stable/libexec/getty/
H A Dsubr.c237 tcflag_t iflag, oflag, cflag, lflag; local
271 oflag = omode.c_oflag;
321 SET(oflag, ONLCR|OPOST);
324 CLR(oflag, ONLCR);
328 SET(oflag, OXTABS|OPOST);
330 CLR(oflag, OXTABS);
339 CLR(oflag, OPOST);
389 tmode.c_oflag = oflag;
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/deadman/
H A Ddeadman_ratelimit.ksh67 log_must dd if=$mntpnt/file of=$TEST_BASE_DIR/devnull oflag=sync
/freebsd-13-stable/usr.bin/diff3/
H A Ddiff3.c129 static int oflag; /* indicates whether to mark overlaps (-E or -X)*/ variable
512 if (!oflag || !overlap[n]) {
536 if (!oflag || !overlap[n])
600 oflag = 0;
618 oflag = 1;
624 oflag = 1;
631 oflag = 1;
641 oflag = 1;
657 oflag = 1;
681 if (oflag) {
[all...]
/freebsd-13-stable/usr.bin/grep/
H A Dutil.c604 if ((color == NULL && !oflag) || qflag || lflag ||
624 if (!wflag && ((color == NULL && !oflag) || qflag || lflag || Lflag))
751 if (oflag && matchall)
757 if ((oflag || color) && matchidx > 0) {
759 if (!oflag && pc->printed == 0)
770 if (oflag) {
783 if (oflag)
786 if (!oflag) {
/freebsd-13-stable/lib/libc/gen/
H A Dsem.c222 _libc_sem_open_compat(const char *name, int oflag, ...) argument
233 if ((oflag & O_CREAT) != 0) {
236 va_start(ap, oflag);
242 * we can be lazy and let the kernel handle the "oflag",
245 if (ksem_open(&semid, name, oflag, mode, value) == -1)

Completed in 262 milliseconds

123