Lines Matching defs:flags
156 static int fsync_common(proc_t p, struct fsync_args *uap, int flags);
159 int flags, uint32_t internal_flags, char *labelstr, boolean_t kernelmount,
169 static int mount_begin_update(mount_t mp, vfs_context_t ctx, int flags);
268 muap.flags = uap->flags;
294 * uap->flags Mount flags
311 int flags = uap->flags;
335 if (flags == MNT_IMGSRC_BY_INDEX) {
337 ctx, is_64bit, uap->data, (flags == MNT_IMGSRC_BY_INDEX));
377 AUDIT_ARG(fflags, flags);
381 flags |= MNT_UPDATE;
389 if ( !(flags & MNT_RDONLY) ) {
395 error = mount_common(fstypename, pvp, vp, &nd.ni_cnd, uap->data, flags, 0,
418 * flags generic mount flags
426 struct componentname *cnp, user_addr_t fsmountargs, int flags, uint32_t internal_flags,
449 if (flags & MNT_UPDATE) {
470 if ((flags & MNT_RELOAD) &&
481 ((flags & MNT_CPROTECT) == 0)) {
489 (!vfs_isrdonly(mp)) && (flags & MNT_RDONLY)) {
514 flags |= MNT_NOSUID | MNT_NODEV;
516 flags |= MNT_NOEXEC;
522 mp->mnt_flag |= flags & (MNT_RELOAD | MNT_FORCE | MNT_UPDATE);
532 flags |= MNT_NOSUID | MNT_NODEV;
534 flags |= MNT_NOEXEC;
615 * Set the mount level flags.
617 if (flags & MNT_RDONLY)
633 mp->mnt_flag |= flags & (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV |
640 if (flags & MNT_MULTILABEL) {
700 if (devpath && ((flags & MNT_UPDATE) == 0)) {
772 if ((flags & MNT_UPDATE) == 0) {
777 if ((flags & MNT_UPDATE) != 0) {
789 if (flags & MNT_UPDATE) {
997 if (devpath && ((flags & MNT_UPDATE) == 0) && (!did_rele))
1221 mount_begin_update(mount_t mp, vfs_context_t ctx, int flags)
1238 if ((flags & MNT_RELOAD) &&
1306 uint32_t flags;
1333 flags = mia64.mi_flags;
1344 flags = mia32.mi_flags;
1364 flags = 0;
1367 if (flags != 0) {
1368 IMGSRC_DEBUG("%s: Got nonzero flags.\n", __FUNCTION__);
1687 return (safedounmount(mp, uap->flags, ctx));
1691 vfs_unmountbyfsid(fsid_t * fsid, int flags, vfs_context_t ctx)
1702 return(safedounmount(mp, flags, ctx));
1711 safedounmount(struct mount *mp, int flags, vfs_context_t ctx)
1721 (flags & MNT_NOBLOCK) && ((flags & MNT_FORCE) == 0)) {
1730 if (!(((mp->mnt_kern_flag & MNTK_PERMIT_UNMOUNT) != 0) && ((flags & MNT_FORCE) == 0))) {
1754 return (dounmount(mp, flags, 1, ctx));
1765 dounmount(struct mount *mp, int flags, int withref, vfs_context_t ctx)
1777 if (flags & MNT_FORCE)
1782 if ((flags & MNT_FORCE)) {
1844 vfs_nested_trigger_unmounts(mp, flags, ctx);
1861 error = VFS_UNMOUNT(mp, flags, ctx);
2390 int flags;
2410 if (((fstp->flags & MNT_NOWAIT) == 0 || (fstp->flags & (MNT_WAIT | MNT_DWAIT))) &&
2452 muap.flags = uap->flags;
2468 * uap->flags File system flags
2539 fst.flags = uap->flags;
2579 if (((fstp->flags & MNT_NOWAIT) == 0 ||
2580 (fstp->flags & (MNT_WAIT | MNT_DWAIT))) &&
2613 fst.flags = uap->flags;
2971 int flags, oflags;
2984 flags = FFLAGS(uflags);
3001 * but the open flags deny it, set a flag in the session to
3006 (flags & O_NOCTTY)) {
3014 if ((error = vn_open_auth(ndp, &flags, vap))) {
3016 if ((error = dupfdopen(fdp, indx, uu->uu_dupfd, flags, error)) == 0) {
3045 fp->f_fglob->fg_flag = flags & (FMASK | O_EVTONLY);
3058 if (flags & (O_EXLOCK | O_SHLOCK)) {
3062 if (flags & O_EXLOCK)
3067 if ((flags & FNONBLOCK) == 0)
3081 if ((flags & O_TRUNC) && ((error = vnode_setsize(vp, (off_t)0, 0, ctx)) != 0))
3085 * If the open flags denied the acquisition of a controlling tty,
3124 if (flags & O_CLOEXEC)
3164 * uap->flags Flags to open (same as 'open'
3208 ciferror = open1(vfs_context_current(), &nd, uap->flags, &va, retval);
3218 * int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode)
3221 int flags = uap->flags;
3249 if (flags & O_CREAT) {
3254 if ( flags & (O_RDWR | O_WRONLY)) {
3261 error = open1(vfs_context_current(), &nd, uap->flags, &va, retval);
3290 return(open1(vfs_context_current(), &nd, uap->flags, &va, retval));
3958 int flags = 0;
3985 flags |= VNODE_REMOVE_NODELETEBUSY;
3990 flags |= VNODE_REMOVE_SKIP_NAMESPACE_EVENT;
4053 error = vn_remove(dvp, &ndp->ni_vp, ndp, flags, vap, ctx);
4618 if (uap->flags & _DELETE_OK)
4625 if (uap->flags == F_OK)
4645 error = access1(nd.ni_vp, nd.ni_dvp, uap->flags, &context);
4654 if (uap->flags & _DELETE_OK)
5032 * Change file flags.
5035 chflags1(vnode_t vp, int flags, vfs_context_t ctx)
5042 VATTR_SET(&va, va_flags, flags);
5045 error = mac_vnode_check_setflags(ctx, vp, flags);
5054 * Request that the auth layer disregard those file flags it's allowed to when
5056 * clear immutable flags.
5071 * Change flags of a file given a path name.
5082 AUDIT_ARG(fflags, uap->flags);
5091 error = chflags1(vp, uap->flags, ctx);
5097 * Change flags of a file given a file descriptor.
5107 AUDIT_ARG(fflags, uap->flags);
5118 error = chflags1(vp, uap->flags, vfs_context_current());
5798 * If 'flags' is MNT_DWAIT, the caller is requesting data integrity, which
5800 * 'flags' is MNT_WAIT, the caller is rewuesting file integrity, which also
5807 * flags The data integrity flags
5818 fsync_common(proc_t p, struct fsync_args *uap, int flags)
5836 error = VNOP_FSYNC(vp, flags, ctx);
5870 /* Check that the flags are valid. */
5872 if (uap->flags & ~CPF_MASK) {
5892 if (!(uap->flags & CPF_OVERWRITE)) {
5915 error = VNOP_COPYFILE(fvp, tdvp, tvp, &tond.ni_cnd, uap->mode, uap->flags, ctx);
6834 vnode_readdir64(struct vnode *vp, struct uio *uio, int flags, int *eofflag,
6840 return VNOP_READDIR(vp, uio, flags, eofflag, numdirent, ctxp);
6912 off_t *offset, int flags)
6962 if (flags & VNODE_READDIR_EXTENDED) {
6963 error = vnode_readdir64(vp, auio, flags, &eofflag, &numdirent, &context);
7690 uint32_t flags;
7839 if (nspace_items[i].flags & (NSPACE_ITEM_NEW | NSPACE_ITEM_PROCESSING)) {
7841 if ( nspace_items[i].flags & event_mask ) {
7850 nspace_items[i].flags = NSPACE_ITEM_DONE;
7920 if (nspace_items[i].flags == 0) {
7952 nspace_items[i].flags = NSPACE_ITEM_NEW;
7953 nspace_items[i].flags |= nspace_item_flags_for_type(nspace_type);
7954 if (nspace_items[i].flags & NSPACE_ITEM_SNAPSHOT_EVENT) {
7978 if (nspace_items[i].flags & NSPACE_ITEM_DONE) {
7980 } else if (nspace_items[i].flags & NSPACE_ITEM_CANCELLED) {
7983 if (nspace_items[i].flags & NSPACE_ITEM_RESET_TIMER) {
7984 nspace_items[i].flags &= ~NSPACE_ITEM_RESET_TIMER;
7999 nspace_items[i].flags = 0; // this clears it for re-use
8028 *status = nspace_items[i].flags;
8169 if (nspace_items[i].flags & NSPACE_ITEM_NEW) {
8170 if (!nspace_flags_matches_handler(nspace_items[i].flags, nspace_type)) {
8178 nspace_items[i].flags &= ~NSPACE_ITEM_NEW;
8179 nspace_items[i].flags |= NSPACE_ITEM_PROCESSING;
8220 error = copyout(&nspace_items[i].op, nhi->flags, sizeof(uint64_t));
8268 nspace_items[i].flags = NSPACE_ITEM_DONE;
8278 if (nspace_items[i].flags & NSPACE_ITEM_NEW) {
8279 if (nspace_flags_matches_handler(nspace_items[i].flags, nspace_type)) {
8282 nspace_items[i].flags = NSPACE_ITEM_DONE;
8326 nhi.flags = (user_addr_t)((user64_namespace_handler_info *)data)->flags;
8335 nhi.flags = CAST_USER_ADDR_T(((user32_namespace_handler_info *)data)->flags);
8516 nspace_items[i].flags |= NSPACE_ITEM_RESET_TIMER;
8563 nspace_items[i].flags = NSPACE_ITEM_DONE;
8609 nspace_items[i].flags &= ~NSPACE_ITEM_PROCESSING;
8610 nspace_items[i].flags |= NSPACE_ITEM_CANCELLED;