Home
last modified time | relevance | path

Searched refs:f_flag (Results 1 – 25 of 136) sorted by relevance

123456

/netbsd-src/sbin/nvmectl/
H A Dfirmware.c189 int a_flag, s_flag, f_flag; in firmware() local
198 a_flag = s_flag = f_flag = false; in firmware()
228 f_flag = true; in firmware()
237 if (!f_flag && !a_flag) { in firmware()
245 if (!f_flag && a_flag && slot == 0) { in firmware()
259 if (f_flag && slot == 1 && (cdata.frmw & NVME_ID_CTRLR_FRMW_SLOT1_RO)) in firmware()
268 if (a_flag && !f_flag && !slot_has_valid_firmware(fd, slot)) in firmware()
275 if (f_flag) in firmware()
278 if (f_flag && a_flag) in firmware()
289 else if (f_flag) in firmware()
[all …]
/netbsd-src/sys/kern/
H A Dsys_descrip.c187 if ((fp->f_flag & (FREAD | FWRITE)) == 0) in fcntl_forfs()
265 if ((fp->f_flag & FREAD) == 0) { in do_fcntl_lock()
278 if ((fp->f_flag & FWRITE) == 0) { in do_fcntl_lock()
413 *retval = (fp->f_flag & FNOSIGPIPE) != 0; in sys_fcntl()
418 atomic_or_uint(&fp->f_flag, FNOSIGPIPE); in sys_fcntl()
420 atomic_and_uint(&fp->f_flag, ~FNOSIGPIPE); in sys_fcntl()
425 *retval = OFLAGS(fp->f_flag); in sys_fcntl()
434 i = tmp ^ fp->f_flag; in sys_fcntl()
440 &fp->f_flag); in sys_fcntl()
449 tmp = fp->f_flag & FNONBLOCK; in sys_fcntl()
[all …]
H A Dsys_generic.c115 if ((fp->f_flag & FREAD) == 0) { in sys_read()
203 if ((fp->f_flag & FREAD) == 0) { in do_filereadv()
314 if ((fp->f_flag & FWRITE) == 0) { in sys_write()
357 if (error == EPIPE && !(fp->f_flag & FNOSIGPIPE)) { in dofilewrite()
405 if ((fp->f_flag & FWRITE) == 0) { in do_filewritev()
481 if (error == EPIPE && !(fp->f_flag & FNOSIGPIPE)) { in do_filewritev()
538 if ((fp->f_flag & (FREAD | FWRITE)) == 0) { in sys_ioctl()
659 atomic_or_uint(&fp->f_flag, FNONBLOCK); in sys_ioctl()
661 atomic_and_uint(&fp->f_flag, ~FNONBLOCK); in sys_ioctl()
668 atomic_or_uint(&fp->f_flag, FASYNC); in sys_ioctl()
[all …]
H A Dsys_eventfd.c212 int const fflag = fp->f_flag; in eventfd_fop_read()
252 int const fflag = fp->f_flag; in eventfd_fop_write()
564 fp->f_flag = FREAD | FWRITE; in do_eventfd()
566 fp->f_flag |= FNONBLOCK; in do_eventfd()
H A Duipc_usrreq.c1713 for (oflags = fp->f_flag;; oflags = rflags) { in unp_gc()
1714 rflags = atomic_cas_uint(&fp->f_flag, oflags, in unp_gc()
1735 if ((fp->f_flag & FDEFER) != 0) { in unp_gc()
1736 atomic_and_uint(&fp->f_flag, ~FDEFER); in unp_gc()
1748 (fp->f_flag & FMARK) != 0 || in unp_gc()
1755 atomic_or_uint(&fp->f_flag, FMARK); in unp_gc()
1823 (fp->f_flag & (FMARK | FSCAN)) != FSCAN) { in unp_gc()
1949 if (fp->f_flag & (FMARK | FDEFER)) { in unp_mark()
1962 atomic_or_uint(&fp->f_flag, FDEFER); in unp_mark()
1964 atomic_or_uint(&fp->f_flag, FMAR in unp_mark()
[all...]
H A Dvfs_vnops.c654 fflag = fp->f_flag; in vn_read()
694 fflag = fp->f_flag; in vn_write()
822 error = VOP_FCNTL(vp, com, data, fp->f_flag, kauth_cred_get()); in vn_fcntl()
893 error = VOP_IOCTL(vp, com, data, fp->f_flag, kauth_cred_get()); in vn_ioctl()
1013 if (fp->f_flag & FREAD) in vn_mmap()
1027 if (fp->f_flag & FWRITE) { in vn_mmap()
1342 if ((fp->f_flag & FWRITE) == 0) in vn_truncate()
1413 return vn_close(fp->f_vnode, fp->f_flag, fp->f_cred);
H A Dkern_descrip.c816 fp->f_flag |= flags & (FNONBLOCK|FNOSIGPIPE); in fd_dup2()
850 KASSERT((fp->f_flag & FHASLOCK) == 0); in closef()
851 } else if (fp->f_flag & FHASLOCK) { in closef()
1157 if (__predict_false((fp->f_flag & FSCAN) != 0)) { in fd_allocfile()
1159 atomic_and_uint(&fp->f_flag, ~FSCAN); in fd_allocfile()
1733 if (((flags & (FREAD|FWRITE)) | fp->f_flag) != fp->f_flag) { in fd_dupopen()
1922 fp->f_flag = flag & FMASK; in fd_clone()
2360 fp->f_flag = fpsrc->f_flag; in fill_file()
[all...]
H A Dsys_timerfd.c268 int const fflag = fp->f_flag; in timerfd_fop_read()
515 fp->f_flag = FREAD; in do_timerfd_create()
517 fp->f_flag |= FNONBLOCK; in do_timerfd_create()
H A Duipc_syscalls.c240 fp2->f_flag = (fp->f_flag & ~clrflags) | in do_sys_accept()
245 if (fp2->f_flag & FNONBLOCK) in do_sys_accept()
612 if (error == EPIPE && (fp->f_flag & FNOSIGPIPE) == 0 && in do_sys_sendmsg_so()
1177 atomic_or_uint(&fp->f_flag, FNOSIGPIPE); in sys_setsockopt()
1179 atomic_and_uint(&fp->f_flag, ~FNOSIGPIPE); in sys_setsockopt()
1217 if (fp->f_flag & FNOSIGPIPE) in getsockopt()
1637 /*short fflag;*/ /* type must match fp->f_flag */ in do_sys_peeloff()
1681 nfp->f_flag = FREAD|FWRITE; in do_sys_peeloff()
H A Dsys_pipe.c238 rf->f_flag = FREAD | flags; in pipe1()
244 wf->f_flag = FWRITE | flags; in pipe1()
426 if ((fp->f_flag & FNONBLOCK) != 0) { in pipe_read()
495 if (fp->f_flag & FNONBLOCK) { in pipe_read()
681 if (fp->f_flag & FNONBLOCK) { in pipe_write()
H A Dtty_ptm.c204 fp->f_flag = FREAD|FWRITE|(flags&FMASK); in pty_alloc_master()
282 fp->f_flag = FREAD|FWRITE; in pty_alloc_slave()
H A Dkern_ktrace_vfs.c134 fp->f_flag = FWRITE; in sys_ktrace()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/core/sys/posix/sys/
H A Dstatvfs.d41 c_ulong f_flag; in version() member
102 c_ulong f_flag;
150 c_ulong f_flag;
171 ulong f_flag;
204 c_ulong f_flag;
/netbsd-src/tests/fs/ffs/
H A Dt_quota2_remount.c55 if ((fst.f_flag & ST_QUOTA) != 0) in do_quota()
66 if ((fst.f_flag & ST_QUOTA) == 0) in do_quota()
77 if ((fst.f_flag & ST_QUOTA) == 0) in do_quota()
/netbsd-src/sbin/fdisk/
H A Dfdisk.c216 static int f_flag; /* force --not interactive */
390 a_flag = u_flag = sh_flag = f_flag = s_flag = b_flag = 0; in main()
432 f_flag = 1; in main()
508 if (sh_flag && (a_flag || i_flag || u_flag || f_flag || s_flag)) in main()
511 if (B_flag && f_flag) { in main()
516 if (f_flag && u_flag && !s_flag) { in main()
577 if (!f_flag && !b_flag) in main()
622 if (!f_flag) { in main()
1471 if (f_flag && !(i_flag || B_flag)) { in install_bootsel()
1476 if (!f_flag in install_bootsel()
217 static int f_flag; /* force --not interactive */ global() variable
[all...]
/netbsd-src/sys/compat/sys/
H A Dstatvfs.h38 unsigned long f_flag; /* copy of mount exported flags */ member
83 s90->f_flag = s->f_flag; in statvfs_to_statvfs90()
H A Dmount.h108 s12->f_oflags = (short)fs->f_flag; in statvfs_to_statfs12()
129 s12->f_flags = (long)fs->f_flag; in statvfs_to_statfs12()
/netbsd-src/sys/fs/puffs/
H A Dpuffs_msgif.h117 unsigned long f_flag; /* copy of mount exported flags */ member
158 ps->f_flag = s->f_flag; in statvfs_to_puffs_statvfs()
194 s->f_flag = ps->f_flag; in puffs_statvfs_to_statvfs()
/netbsd-src/sys/miscfs/procfs/
H A Dprocfs_linux.c620 (sfs->f_flag & ST_RDONLY) ? "ro" : "rw", in procfs_format_sfs()
621 (sfs->f_flag & ST_NOSUID) ? ",nosuid" : "", in procfs_format_sfs()
622 (sfs->f_flag & ST_NOEXEC) ? ",noexec" : "", in procfs_format_sfs()
623 (sfs->f_flag & ST_NODEV) ? ",nodev" : "", in procfs_format_sfs()
624 (sfs->f_flag & ST_SYNCHRONOUS) ? ",sync" : "", in procfs_format_sfs()
625 (sfs->f_flag & ST_NOATIME) ? ",noatime" : ""); in procfs_format_sfs()
/netbsd-src/sys/compat/ultrix/
H A Dultrix_pathname.c247 sp->f_flag = mp->mnt_flag & MNT_VISFLAGMASK; in ultrix_sys_statfs()
271 sp->f_flag = mp->mnt_flag & MNT_VISFLAGMASK; in ultrix_sys_fstatfs()
H A Dultrix_fs.c168 tem->ufsd_flags = sp->f_flag; /* XXX translate */ in make_ultrix_mntent()
273 sp->f_flag = mp->mnt_flag & MNT_VISFLAGMASK; in ultrix_sys_getmnt()
/netbsd-src/sys/miscfs/genfs/
H A Dlayer_vfsops.c176 sbp->f_flag = sbuf->f_flag; in layerfs_statvfs()
/netbsd-src/sbin/fsck_ffs/
H A Dmain.c547 flags = stfs_buf.f_flag; in checkfilesys()
580 long flags = stfs_buf.f_flag; in checkfilesys()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_fs.c125 if ((fp->f_flag & FREAD) == 0) { in netbsd32_readv()
232 if ((fp->f_flag & FWRITE) == 0) { in netbsd32_writev()
308 if (error == EPIPE && (fp->f_flag & FNOSIGPIPE) == 0) { in dofilewritev32()
526 if ((fp->f_flag & FREAD) == 0) { in netbsd32___getdents30()
658 if ((fp->f_flag & FREAD) == 0) { in netbsd32_preadv()
698 if ((fp->f_flag & FWRITE) == 0) { in netbsd32_pwritev()
/netbsd-src/sys/fs/union/
H A Dunion_vfsops.c462 sbp->f_flag = sbuf->f_flag; in union_statvfs()

123456