Home
last modified time | relevance | path

Searched refs:rdonly (Results 1 – 21 of 21) sorted by relevance

/netbsd-src/sbin/fsck_msdos/
H A Dmain.c51 int rdonly; /* device is opened read only (supersedes above) */ variable
155 if (rdonly) in ask()
165 if (alwaysyes || rdonly) { in ask()
166 printf("%s? %s\n", prompt, rdonly ? "no" : "yes"); in ask()
167 return !rdonly; in ask()
H A Dcheck.c55 rdonly = alwaysno; in checkfilesys()
59 dosfs = open(filename, rdonly ? O_RDONLY : O_RDWR, 0); in checkfilesys()
60 if (dosfs < 0 && !rdonly) { in checkfilesys()
66 rdonly = 1; in checkfilesys()
H A Dext.h43 extern int rdonly; /* device is opened read only (supersedes above) */
/netbsd-src/usr.sbin/puffs/rump_nqmfs/
H A Drump_nqmfs.c74 int ch, fd, rdonly, shared; in main() local
106 rdonly = mntflags & MNT_RDONLY; in main()
113 fd = open(mntfile, rdonly ? O_RDONLY: O_RDWR); in main()
117 membase = mmap(NULL, sb.st_size, PROT_READ | (rdonly ? 0 : PROT_WRITE), in main()
/netbsd-src/sys/nfs/
H A Dnfs_serv.c174 int error = 0, rdonly, cache = 0, getret; in nfsrv3_access() local
183 error = nfsrv_fhtovp(&nsfh, 1, &vp, cred, slp, nam, &rdonly, in nfsrv3_access()
193 nfsrv_access(vp, VREAD, cred, rdonly, lwp, 0) == 0) in nfsrv3_access()
198 nfsrv_access(vp, VWRITE, cred, rdonly, lwp, 0) == 0) in nfsrv3_access()
201 nfsrv_access(vp, VEXEC, cred, rdonly, lwp, 0) == 0) in nfsrv3_access()
207 nfsrv_access(vp, VWRITE, cred, rdonly, lwp, 0) == 0) in nfsrv3_access()
210 nfsrv_access(vp, VEXEC, cred, rdonly, lwp, 0) == 0) in nfsrv3_access()
239 int error = 0, rdonly, cache = 0; in nfsrv_getattr() local
245 error = nfsrv_fhtovp(&nsfh, 1, &vp, cred, slp, nam, &rdonly, in nfsrv_getattr()
280 int error = 0, rdonly, cache = 0, preat_ret = 1, postat_ret = 1; in nfsrv_setattr() local
[all …]
H A Dnfs_srvsubs.c125 int error, rdonly; in nfs_namei() local
178 nam, &rdonly, kerbflag, pubflag); in nfs_namei()
187 if (rdonly) in nfs_namei()
/netbsd-src/sys/kern/
H A Dvfs_lookup.c462 int rdonly; /* lookup read-only flag bit */
482 state->rdonly = 0; in namei_init()
1219 if (state->rdonly) { in lookup_once()
1521 state->rdonly = cnp->cn_flags & RDONLY; in namei_oneroot()
1835 if (state->rdonly && in namei_oneroot()
2038 state->rdonly = cnp->cn_flags & RDONLY; in do_lookup_for_nfsd_index()
2147 int rdonly; /* lookup read-only flag bit */ in relookup()
2159 rdonly = cnp->cn_flags & RDONLY; in relookup()
2224 if (rdonly && cnp->cn_nameiop != LOOKUP) { in relookup()
454 int rdonly; /* lookup read-only flag bit */ global() member
2134 int rdonly; /* lookup read-only flag bit */ relookup() local
/netbsd-src/tests/dev/fss/
H A Dt_fss.sh67 mount -o rdonly /dev/fss0 ./m2
/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dslmdb.c547 static int slmdb_txn_begin(SLMDB *slmdb, int rdonly, MDB_txn **txn) in slmdb_txn_begin() argument
551 if ((status = mdb_txn_begin(slmdb->env, (MDB_txn *) 0, rdonly, txn)) != 0 in slmdb_txn_begin()
553 status = slmdb_txn_begin(slmdb, rdonly, txn); in slmdb_txn_begin()
/netbsd-src/sbin/fsck_udf/
H A Dmain.c194 int rdonly = 0; /* open device/image read-only */ variable
1194 if (!rdonly) in udf_check_vrs9660()
2872 rdonly = 1; in udf_prepare_writing()
2873 if (rdonly) in udf_prepare_writing()
2932 rdonly = 1; in udf_prepare_writing()
2942 rdonly = 1; in udf_prepare_writing()
4208 rdonly = rdonly_flag; in checkfilesys()
4213 open_flags = rdonly ? O_RDONLY : O_RDWR; in checkfilesys()
4240 rdonly = 1; in checkfilesys()
4302 if ((!rdonly) && ask(0, "Write out modifications made until now")) in checkfilesys()
[all …]
/netbsd-src/lib/libukfs/
H A Dukfs.c443 process_diskdevice(const char *devpath, struct ukfs_part *part, int rdonly, in process_diskdevice() argument
452 devfd = open(devpath, rdonly ? O_RDONLY : O_RDWR); in process_diskdevice()
472 flarg.l_type = rdonly ? F_RDLCK : F_WRLCK; in process_diskdevice()
/netbsd-src/sys/uvm/
H A Duvm_bio.c244 bool rdonly; in ubc_fault_page() local
287 rdonly = uvm_pagereadonly_p(pg); in ubc_fault_page()
288 mask = rdonly ? ~VM_PROT_WRITE : VM_PROT_ALL; in ubc_fault_page()
/netbsd-src/sys/compat/ultrix/
H A Dultrix_fs.c357 if (SCARG(uap, rdonly)) in ultrix_sys_mount()
H A Dultrix_syscallargs.h88 syscallarg(int) rdonly;
/netbsd-src/external/bsd/openldap/dist/servers/slapd/back-mdb/
H A Dproto-mdb.h223 int mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **moi );
H A Did2entry.c693 mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **moip ) in mdb_opinfo_get() argument
737 if ( !rdonly ) { in mdb_opinfo_get()
/netbsd-src/distrib/sparc/ramdisk/
H A Ddot.profile148 mount_cd9660 -o rdonly $dev /cdrom || return 1
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dzfs_vfsops.c1679 uint64_t rdonly; in zfs_check_global_label() local
1682 zfs_prop_to_name(ZFS_PROP_READONLY), &rdonly, NULL)) in zfs_check_global_label()
1684 return (rdonly ? 0 : EACCES); in zfs_check_global_label()
/netbsd-src/external/ibm-public/postfix/dist/proto/
H A Dstop.spell-cc1096 rdonly
/netbsd-src/external/bsd/am-utils/dist/
H A Dconfigure.ac1267 rdonly \
/netbsd-src/external/bsd/am-utils/dist/doc/
H A Dam-utils.texi2305 @item rdonly
2306 @cindex Mount flags; rdonly
8728 @c LocalWords: nocache nodev noint nosub pgthresh posix rdonly suid symttl mfs