Lines Matching defs:path
216 kernel_mount(char *fstype, vnode_t pvp, vnode_t vp, const char *path,
224 UIO_SYSSPACE, CAST_USER_ADDR_T(path), ctx);
237 char *pnbuf = CAST_DOWN(char *, path);
267 muap.path = uap->path;
291 * uap->path Path to mount
326 UIO_USERSPACE, uap->path, ctx);
417 * cnp component name (ie path) of covered vnode
537 /* XXXAUDIT: Should we capture the type on the error path as well? */
649 * Process device path for local file systems if requested
835 * insure that everyone is out of the fast path who
891 /* Check if this file system supports path from id lookups. */
896 /* Legacy MNT_DOVOLFS flag also implies path from id lookups. */
1180 * insure that everyone is out of the fast path who
1648 * Note: unmount takes a path to the vnode mounted on as argument,
1662 UIO_USERSPACE, uap->path, ctx);
1801 * anyone currently in the fast path that
1803 * dumped out and forced into the slow path
1811 * insure that everyone is out of the fast path who
2103 uap->path, ctx);
2211 UIO_USERSPACE, uap->path, ctx);
2323 UIO_USERSPACE, uap->path, ctxp);
2653 * for this code path is to return 0 preemptively after zapping
2771 UIO_USERSPACE, uap->path, ctx);
2818 * Indirect parameters: uap->path Directory path
2841 * Indirect parameters: uap->path Directory path
2873 UIO_USERSPACE, uap->path, ctx);
3099 * because it's not passed as a parameter in the open path.
3156 * open_extended: open a file given a path name; with extended argument list (including extended security (ACL)).
3163 * Indirect: uap->path Path to open (same as 'open')
3206 uap->path, vfs_context_current());
3218 * int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode)
3226 * Follow the same path as normal open(2)
3241 uap->path, vfs_context_current());
3288 uap->path, vfs_context_current());
3314 return(mkfifo1(ctx, uap->path, &va));
3322 UIO_USERSPACE, uap->path, ctx);
3452 * Indirect: uap->path Path to fifo (same as 'mkfifo')
3490 ciferror = mkfifo1(vfs_context_current(), uap->path, &va);
3506 return(mkfifo1(vfs_context_current(), uap->path, &va));
3524 extern int safe_getpath(struct vnode *dvp, char *leafname, char *path, int _len, int *truncated_path);
3527 safe_getpath(struct vnode *dvp, char *leafname, char *path, int _len, int *truncated_path)
3532 ret = vn_getpath(dvp, path, &len);
3535 path[len-1] = '/';
3536 len += strlcpy(&path[len], leafname, MAXPATHLEN-len) + 1;
3542 ptr = my_strrchr(path, '/');
3546 len = strlen(path) + 1;
3555 printf("safe_getpath: failed to get the path for vp %p (%s) : err %d\n",
3564 strlcpy(path, mydvp->v_mount->mnt_vfsstat.f_mntonname, _len);
3568 strlcpy(path, "/", _len);
3578 ret = vn_getpath(mydvp, path, &len);
3616 UIO_USERSPACE, uap->path, ctx);
3701 /* build the path to the new link file */
3711 /* build the path to file we are linking to */
3739 // build the path to the destination of the link
3781 char *path;
3788 MALLOC_ZONE(path, char *, MAXPATHLEN, M_NAMEI, M_WAITOK);
3789 error = copyinstr(uap->path, path, MAXPATHLEN, &dummy);
3792 AUDIT_ARG(text, path); /* This is the link string */
3825 error = VNOP_SYMLINK(dvp, &vp, &nd.ni_cnd, &va, path, ctx);
3856 /* build the path to the new link file */
3866 (uintptr_t)path, (uintptr_t)new_link_path);
3898 FREE_ZONE(path, MAXPATHLEN, M_NAMEI);
3916 UIO_USERSPACE, uap->path, ctx);
3952 char *path = NULL;
4037 if (path == NULL) {
4038 GET_PATH(path);
4039 if (path == NULL) {
4044 len = safe_getpath(dvp, ndp->ni_cnd.cn_nameptr, path, MAXPATHLEN, &truncated_path);
4081 (uintptr_t)path);
4087 // v_parent link because the path that got us to this
4089 // force the next call to get the path to ask the file
4106 FSE_ARG_STRING, len, path,
4114 if (path != NULL)
4115 RELEASE_PATH(path);
4149 uap->path, ctx);
4163 uap->path, ctx);
4621 uap->path, &context);
4808 stat1(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64)
4814 UIO_USERSPACE, path, ctx);
4825 * Indirect: uap->path Path of file to get status from
4837 return (stat1(uap->path, uap->ub, uap->xsecurity, uap->xsecurity_size, 0));
4847 return(stat1(uap->path, uap->ub, 0, 0, 0));
4853 return(stat1(uap->path, uap->ub, 0, 0, 1));
4863 * Indirect: uap->path Path of file to get status from
4875 return (stat1(uap->path, uap->ub, uap->xsecurity, uap->xsecurity_size, 1));
4881 lstat1(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size, int isstat64)
4887 UIO_USERSPACE, path, ctx);
4899 * Indirect: uap->path Path of file to get status from
4911 return (lstat1(uap->path, uap->ub, uap->xsecurity, uap->xsecurity_size, 0));
4917 return(lstat1(uap->path, uap->ub, 0, 0, 0));
4923 return(lstat1(uap->path, uap->ub, 0, 0, 1));
4934 * Indirect: uap->path Path of file to get status from
4946 return (lstat1(uap->path, uap->ub, uap->xsecurity, uap->xsecurity_size, 1));
4973 UIO_USERSPACE, uap->path, ctx);
5001 UIO_USERSPACE, uap->path, ctx);
5071 * Change flags of a file given a path name.
5084 UIO_USERSPACE, uap->path, ctx);
5173 * Change mode of a file given a path name.
5180 chmod1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap)
5186 UIO_USERSPACE, path, ctx);
5196 * chmod_extended: Change the mode of a file given a path name; with extended
5203 * Indirect: uap->path Path to object (same as 'chmod')
5250 error = chmod1(vfs_context_current(), uap->path, &va);
5269 return(chmod1(vfs_context_current(), uap->path, &va));
5373 * Set ownership given a path name.
5389 UIO_USERSPACE, uap->path, ctx);
5595 * name lookup first because auditing wants the path.
5598 UIO_USERSPACE, uap->path, ctx);
5649 * Truncate a file given its path name.
5665 UIO_USERSPACE, uap->path, ctx);
6470 mkdir1(vfs_context_t ctx, user_addr_t path, struct vnode_attr *vap)
6480 path, ctx);
6503 * only get EXISTS or EISDIR for existing path components, and not that it could see
6520 path, ctx);
6581 * Indirect: uap->path Path of directory to create
6608 ciferror = mkdir1(vfs_context_current(), uap->path, &va);
6622 return(mkdir1(vfs_context_current(), uap->path, &va));
6635 char *path = NULL;
6656 UIO_USERSPACE, uap->path, ctx);
6724 if (path == NULL) {
6725 GET_PATH(path);
6726 if (path == NULL) {
6732 len = safe_getpath(dvp, nd.ni_cnd.cn_nameptr, path, MAXPATHLEN, &truncated);
6780 (uintptr_t)path);
6795 FSE_ARG_STRING, len, path,
6803 if (path != NULL) {
6804 RELEASE_PATH(path);
6805 path = NULL;
7124 uap->path, ctx);
7589 UIO_USERSPACE, uap->path, ctx);
8036 build_volfs_path(struct vnode *vp, char *path, int *len)
8046 *len = snprintf(path, *len, "/non/existent/path/because/vnode_getattr/failed") + 1;
8049 *len = snprintf(path, *len, "/.vol/%d/%lld", (dev_t)va.va_fsid, va.va_fileid) + 1;
8698 UIO_USERSPACE, uap->path, ctx);
8799 NDINIT(&nd, LOOKUP, OP_GETXATTR, nameiflags, spacetype, uap->path, ctx);
8947 NDINIT(&nd, LOOKUP, OP_SETXATTR, nameiflags, spacetype, uap->path, ctx);
9050 NDINIT(&nd, LOOKUP, OP_REMOVEXATTR, nameiflags, spacetype, uap->path, ctx);
9137 NDINIT(&nd, LOOKUP, OP_LISTXATTR, nameiflags, spacetype, uap->path, ctx);
9255 /* Obtain the absolute path to this vnode. */