Searched refs:rdonly (Results 1 - 17 of 17) sorted by relevance

/netbsd-current/sbin/fsck_msdos/
H A Dmain.c51 int rdonly; /* device is opened read only (supersedes above) */ variable
155 if (rdonly)
165 if (alwaysyes || rdonly) {
166 printf("%s? %s\n", prompt, rdonly ? "no" : "yes");
167 return !rdonly;
H A Dcheck.c55 rdonly = alwaysno;
59 dosfs = open(filename, rdonly ? O_RDONLY : O_RDWR, 0);
60 if (dosfs < 0 && !rdonly) {
66 rdonly = 1;
H A Dext.h43 extern int rdonly; /* device is opened read only (supersedes above) */
/netbsd-current/usr.sbin/puffs/rump_nqmfs/
H A Drump_nqmfs.c74 int ch, fd, rdonly, shared; local
106 rdonly = mntflags & MNT_RDONLY;
113 fd = open(mntfile, rdonly ? O_RDONLY: O_RDWR);
117 membase = mmap(NULL, sb.st_size, PROT_READ | (rdonly ? 0 : PROT_WRITE),
/netbsd-current/tests/dev/fss/
H A Dt_fss.sh67 mount -o rdonly /dev/fss0 ./m2
/netbsd-current/sys/nfs/
H A Dnfs_serv.c174 int error = 0, rdonly, cache = 0, getret; local
183 error = nfsrv_fhtovp(&nsfh, 1, &vp, cred, slp, nam, &rdonly,
193 nfsrv_access(vp, VREAD, cred, rdonly, lwp, 0) == 0)
198 nfsrv_access(vp, VWRITE, cred, rdonly, lwp, 0) == 0)
201 nfsrv_access(vp, VEXEC, cred, rdonly, lwp, 0) == 0)
207 nfsrv_access(vp, VWRITE, cred, rdonly, lwp, 0) == 0)
210 nfsrv_access(vp, VEXEC, cred, rdonly, lwp, 0) == 0)
239 int error = 0, rdonly, cache = 0; local
245 error = nfsrv_fhtovp(&nsfh, 1, &vp, cred, slp, nam, &rdonly,
280 int error = 0, rdonly, cach local
536 int error = 0, rdonly, cache = 0, i, padlen, getret; local
634 int error = 0, rdonly, cache = 0, getret; local
861 int error = 0, rdonly, cache = 0, len, forat_ret = 1; local
1076 int error = 0, rdonly, cache = 0, len = 0, forat_ret = 1; local
2177 int error = 0, rdonly, cache = 0, len, dirfor_ret = 1, diraft_ret = 1; local
2689 int siz, cnt, fullsiz, eofflag, rdonly, cache = 0, ncookies; local
2954 int siz, cnt, fullsiz, eofflag, rdonly, cache = 0, dirlen, ncookies; local
3274 int error = 0, rdonly, for_ret = 1, aft_ret = 1, cache = 0; local
3331 int error = 0, rdonly, cache = 0, getret = 1; local
3400 int error = 0, rdonly, cache = 0, getret = 1; local
3470 int error = 0, rdonly, cache = 0, getret = 1; local
3574 nfsrv_access(struct vnode *vp, int flags, kauth_cred_t cred, int rdonly, struct lwp *lwp, int override) argument
[all...]
H A Dnfs_srvsubs.c125 int error, rdonly; local
178 nam, &rdonly, kerbflag, pubflag);
187 if (rdonly)
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dslmdb.c547 static int slmdb_txn_begin(SLMDB *slmdb, int rdonly, MDB_txn **txn) argument
551 if ((status = mdb_txn_begin(slmdb->env, (MDB_txn *) 0, rdonly, txn)) != 0
553 status = slmdb_txn_begin(slmdb, rdonly, txn);
/netbsd-current/sys/kern/
H A Dvfs_lookup.c454 int rdonly; /* lookup read-only flag bit */ member in struct:namei_state
474 state->rdonly = 0;
1205 if (state->rdonly) {
1507 state->rdonly = cnp->cn_flags & RDONLY;
1822 if (state->rdonly &&
2026 state->rdonly = cnp->cn_flags & RDONLY;
2134 int rdonly; /* lookup read-only flag bit */ local
2146 rdonly = cnp->cn_flags & RDONLY;
2211 if (rdonly && cnp->cn_nameiop != LOOKUP) {
/netbsd-current/sbin/fsck_udf/
H A Dmain.c194 int rdonly = 0; /* open device/image read-only */ variable
1194 if (!rdonly)
2872 rdonly = 1;
2873 if (rdonly)
2932 rdonly = 1;
2942 rdonly = 1;
4208 rdonly = rdonly_flag;
4213 open_flags = rdonly ? O_RDONLY : O_RDWR;
4240 rdonly = 1;
4302 if ((!rdonly)
[all...]
/netbsd-current/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 ) argument
737 if ( !rdonly ) {
/netbsd-current/sys/compat/ultrix/
H A Dultrix_fs.c357 if (SCARG(uap, rdonly))
H A Dultrix_syscallargs.h88 syscallarg(int) rdonly; member in struct:ultrix_sys_mount_args
/netbsd-current/lib/libukfs/
H A Dukfs.c443 process_diskdevice(const char *devpath, struct ukfs_part *part, int rdonly, argument
452 devfd = open(devpath, rdonly ? O_RDONLY : O_RDWR);
472 flarg.l_type = rdonly ? F_RDLCK : F_WRLCK;
/netbsd-current/sys/uvm/
H A Duvm_bio.c244 bool rdonly; local
287 rdonly = uvm_pagereadonly_p(pg);
288 mask = rdonly ? ~VM_PROT_WRITE : VM_PROT_ALL;
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dzfs_vfsops.c1679 uint64_t rdonly; local
1682 zfs_prop_to_name(ZFS_PROP_READONLY), &rdonly, NULL))
1684 return (rdonly ? 0 : EACCES);

Completed in 363 milliseconds