Lines Matching defs:mode
115 static int do_creat(struct Vnode *parentNode, char *fullpath, mode_t mode, struct Vnode **node)
123 ret = parentNode->vop->Create(parentNode, name, mode, node);
145 int fp_open(int dirfd, const char *path, int oflags, mode_t mode)
240 ret = do_creat(parentVnode, fullpath, mode, &vnode);
318 int do_open(int dirfd, const char *path, int oflags, mode_t mode)
325 mode &= ~GetUmask();
326 mode &= (S_IRWXU | S_IRWXG | S_IRWXO);
329 fd = fp_open(dirfd, path, oflags, mode);
352 mode_t mode = DEFAULT_FILE_MODE; /* File read-write properties. */
356 mode = va_arg(ap, int);
360 return do_open(AT_FDCWD, path, oflags, mode);
365 mode_t mode = DEFAULT_FILE_MODE; /* File read-write properties. */
369 mode = va_arg(ap, int);
373 mode &= ~GetUmask();
374 mode &= (S_IRWXU|S_IRWXG|S_IRWXO);
377 return open (__path, ((unsigned int)__oflag) | O_LARGEFILE, mode);