1*2c2f96dcSApple OSS Distributions /* 2*2c2f96dcSApple OSS Distributions * Copyright (c) 2007 Apple, Inc. All rights reserved. 3*2c2f96dcSApple OSS Distributions * 4*2c2f96dcSApple OSS Distributions * @APPLE_LICENSE_HEADER_START@ 5*2c2f96dcSApple OSS Distributions * 6*2c2f96dcSApple OSS Distributions * The contents of this file constitute Original Code as defined in and 7*2c2f96dcSApple OSS Distributions * are subject to the Apple Public Source License Version 1.1 (the 8*2c2f96dcSApple OSS Distributions * "License"). You may not use this file except in compliance with the 9*2c2f96dcSApple OSS Distributions * License. Please obtain a copy of the License at 10*2c2f96dcSApple OSS Distributions * http://www.apple.com/publicsource and read it before using this file. 11*2c2f96dcSApple OSS Distributions * 12*2c2f96dcSApple OSS Distributions * This Original Code and all software distributed under the License are 13*2c2f96dcSApple OSS Distributions * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER 14*2c2f96dcSApple OSS Distributions * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 15*2c2f96dcSApple OSS Distributions * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 16*2c2f96dcSApple OSS Distributions * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the 17*2c2f96dcSApple OSS Distributions * License for the specific language governing rights and limitations 18*2c2f96dcSApple OSS Distributions * under the License. 19*2c2f96dcSApple OSS Distributions * 20*2c2f96dcSApple OSS Distributions * @APPLE_LICENSE_HEADER_END@ 21*2c2f96dcSApple OSS Distributions */ 22*2c2f96dcSApple OSS Distributions 23*2c2f96dcSApple OSS Distributions #pragma D depends_on library darwin.d 24*2c2f96dcSApple OSS Distributions #pragma D depends_on module mach_kernel 25*2c2f96dcSApple OSS Distributions #pragma D depends_on provider io 26*2c2f96dcSApple OSS Distributions 27*2c2f96dcSApple OSS Distributions inline int B_WRITE = 0x0000; 28*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_WRITE 29*2c2f96dcSApple OSS Distributions inline int B_READ = 0x0001; 30*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_READ 31*2c2f96dcSApple OSS Distributions inline int B_ASYNC = 0x0002; 32*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_ASYNC 33*2c2f96dcSApple OSS Distributions inline int B_NOCACHE = 0x0004; 34*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_NOCACHE 35*2c2f96dcSApple OSS Distributions inline int B_DELWRI = 0x0008; 36*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_DELWRI 37*2c2f96dcSApple OSS Distributions inline int B_LOCKED = 0x0010; 38*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_LOCKED 39*2c2f96dcSApple OSS Distributions inline int B_PHYS = 0x0020; 40*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_PHYS 41*2c2f96dcSApple OSS Distributions inline int B_CLUSTER = 0x0040; 42*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_CLUSTER 43*2c2f96dcSApple OSS Distributions inline int B_PAGEIO = 0x0080; 44*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_PAGEIO 45*2c2f96dcSApple OSS Distributions inline int B_META = 0x0100; 46*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_META 47*2c2f96dcSApple OSS Distributions inline int B_RAW = 0x0200; 48*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_RAW 49*2c2f96dcSApple OSS Distributions inline int B_FUA = 0x0400; 50*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_FUA 51*2c2f96dcSApple OSS Distributions inline int B_PASSIVE = 0x0800; 52*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" B_PASSIVE 53*2c2f96dcSApple OSS Distributions 54*2c2f96dcSApple OSS Distributions typedef struct bufinfo { 55*2c2f96dcSApple OSS Distributions int b_flags; /* buffer status */ 56*2c2f96dcSApple OSS Distributions size_t b_bcount; /* number of bytes */ 57*2c2f96dcSApple OSS Distributions caddr_t b_addr; /* buffer address */ 58*2c2f96dcSApple OSS Distributions uint64_t b_lblkno; /* block # on device */ 59*2c2f96dcSApple OSS Distributions uint64_t b_blkno; /* expanded block # on device */ 60*2c2f96dcSApple OSS Distributions size_t b_resid; /* # of bytes not transferred */ 61*2c2f96dcSApple OSS Distributions size_t b_bufsize; /* size of allocated buffer */ 62*2c2f96dcSApple OSS Distributions caddr_t b_iodone; /* I/O completion routine */ 63*2c2f96dcSApple OSS Distributions int b_error; /* expanded error field */ 64*2c2f96dcSApple OSS Distributions dev_t b_edev; /* extended device */ 65*2c2f96dcSApple OSS Distributions } bufinfo_t; 66*2c2f96dcSApple OSS Distributions 67*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" translator 68*2c2f96dcSApple OSS Distributions translator bufinfo_t < struct buf *B > { 69*2c2f96dcSApple OSS Distributions b_flags = B->b_flags; 70*2c2f96dcSApple OSS Distributions b_addr = (caddr_t)B->b_datap; 71*2c2f96dcSApple OSS Distributions b_bcount = B->b_bcount; 72*2c2f96dcSApple OSS Distributions b_lblkno = B->b_lblkno; 73*2c2f96dcSApple OSS Distributions b_blkno = B->b_blkno; 74*2c2f96dcSApple OSS Distributions b_resid = B->b_resid; 75*2c2f96dcSApple OSS Distributions b_bufsize = B->b_bufsize; 76*2c2f96dcSApple OSS Distributions b_iodone = (caddr_t)B->b_iodone; 77*2c2f96dcSApple OSS Distributions b_error = B->b_error; 78*2c2f96dcSApple OSS Distributions b_edev = B->b_dev; 79*2c2f96dcSApple OSS Distributions }; 80*2c2f96dcSApple OSS Distributions 81*2c2f96dcSApple OSS Distributions typedef struct devinfo { 82*2c2f96dcSApple OSS Distributions int dev_major; /* major number */ 83*2c2f96dcSApple OSS Distributions int dev_minor; /* minor number */ 84*2c2f96dcSApple OSS Distributions int dev_instance; /* instance number */ 85*2c2f96dcSApple OSS Distributions string dev_name; /* name of device */ 86*2c2f96dcSApple OSS Distributions string dev_statname; /* name of device + instance/minor */ 87*2c2f96dcSApple OSS Distributions string dev_pathname; /* pathname of device */ 88*2c2f96dcSApple OSS Distributions } devinfo_t; 89*2c2f96dcSApple OSS Distributions 90*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" translator 91*2c2f96dcSApple OSS Distributions translator devinfo_t < struct buf *B > { 92*2c2f96dcSApple OSS Distributions dev_major = getmajor(B->b_dev); 93*2c2f96dcSApple OSS Distributions dev_minor = getminor(B->b_dev); 94*2c2f96dcSApple OSS Distributions dev_instance = getminor(B->b_dev); 95*2c2f96dcSApple OSS Distributions dev_name = "??"; /* XXX */ 96*2c2f96dcSApple OSS Distributions dev_statname = "??"; /* XXX */ 97*2c2f96dcSApple OSS Distributions dev_pathname = "??"; /* XXX */ 98*2c2f96dcSApple OSS Distributions }; 99*2c2f96dcSApple OSS Distributions 100*2c2f96dcSApple OSS Distributions typedef off_t offset_t; 101*2c2f96dcSApple OSS Distributions 102*2c2f96dcSApple OSS Distributions typedef struct fileinfo { 103*2c2f96dcSApple OSS Distributions string fi_name; /* name (basename of fi_pathname) */ 104*2c2f96dcSApple OSS Distributions string fi_dirname; /* directory (dirname of fi_pathname) */ 105*2c2f96dcSApple OSS Distributions string fi_pathname; /* full pathname */ 106*2c2f96dcSApple OSS Distributions offset_t fi_offset; /* offset within file */ 107*2c2f96dcSApple OSS Distributions string fi_fs; /* filesystem */ 108*2c2f96dcSApple OSS Distributions string fi_mount; /* mount point of file system */ 109*2c2f96dcSApple OSS Distributions int fi_oflags; /* open(2) flags for file descriptor */ 110*2c2f96dcSApple OSS Distributions } fileinfo_t; 111*2c2f96dcSApple OSS Distributions 112*2c2f96dcSApple OSS Distributions #pragma D binding "1.0" translator 113*2c2f96dcSApple OSS Distributions translator fileinfo_t < struct buf *B > { 114*2c2f96dcSApple OSS Distributions fi_name = B->b_vp->v_name == NULL ? "<unknown (NULL v_name)>" : B->b_vp->v_name; 115*2c2f96dcSApple OSS Distributions 116*2c2f96dcSApple OSS Distributions fi_dirname = B->b_vp->v_parent == NULL ? "<unknown (NULL v_parent)>" : 117*2c2f96dcSApple OSS Distributions (B->b_vp->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : B->b_vp->v_parent->v_name); 118*2c2f96dcSApple OSS Distributions 119*2c2f96dcSApple OSS Distributions fi_pathname = strjoin("??/", 120*2c2f96dcSApple OSS Distributions strjoin(B->b_vp->v_parent == NULL ? "<unknown (NULL v_parent)>" : 121*2c2f96dcSApple OSS Distributions (B->b_vp->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : B->b_vp->v_parent->v_name), 122*2c2f96dcSApple OSS Distributions strjoin("/", 123*2c2f96dcSApple OSS Distributions B->b_vp->v_name == NULL ? "<unknown (NULL v_name)>" : B->b_vp->v_name))); 124*2c2f96dcSApple OSS Distributions 125*2c2f96dcSApple OSS Distributions fi_offset = B->b_upl == NULL ? -1 : ((upl_t)B->b_upl)->u_offset; 126*2c2f96dcSApple OSS Distributions 127*2c2f96dcSApple OSS Distributions fi_fs = B->b_vp->v_mount->mnt_vtable->vfc_name; 128*2c2f96dcSApple OSS Distributions 129*2c2f96dcSApple OSS Distributions fi_mount = B->b_vp->v_mount->mnt_vnodecovered == NULL ? "/" : B->b_vp->v_mount->mnt_vnodecovered->v_name; 130*2c2f96dcSApple OSS Distributions 131*2c2f96dcSApple OSS Distributions fi_oflags = 0; 132*2c2f96dcSApple OSS Distributions }; 133*2c2f96dcSApple OSS Distributions 134*2c2f96dcSApple OSS Distributions /* 135*2c2f96dcSApple OSS Distributions * The following inline constants can be used to examine fi_oflags when using 136*2c2f96dcSApple OSS Distributions * the fds[] array or a translated fileglob *. Note that the various open 137*2c2f96dcSApple OSS Distributions * flags behave as a bit-field *except* for O_RDONLY, O_WRONLY, and O_RDWR. 138*2c2f96dcSApple OSS Distributions * To test the open mode, you write code similar to that used with the fcntl(2) 139*2c2f96dcSApple OSS Distributions * F_GET[X]FL command, such as: if ((fi_oflags & O_ACCMODE) == O_WRONLY). 140*2c2f96dcSApple OSS Distributions */ 141*2c2f96dcSApple OSS Distributions inline int O_ACCMODE = 0x0003; 142*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_ACCMODE 143*2c2f96dcSApple OSS Distributions 144*2c2f96dcSApple OSS Distributions inline int O_RDONLY = 0x0000; 145*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_RDONLY 146*2c2f96dcSApple OSS Distributions inline int O_WRONLY = 0x0001; 147*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_WRONLY 148*2c2f96dcSApple OSS Distributions inline int O_RDWR = 0x0002; 149*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_RDWR 150*2c2f96dcSApple OSS Distributions 151*2c2f96dcSApple OSS Distributions inline int O_NONBLOCK = 0x0004; 152*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_NONBLOCK 153*2c2f96dcSApple OSS Distributions inline int O_APPEND = 0x0008; 154*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_APPEND 155*2c2f96dcSApple OSS Distributions inline int O_SHLOCK = 0x0010; 156*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_SHLOCK 157*2c2f96dcSApple OSS Distributions inline int O_EXLOCK = 0x0020; 158*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_EXLOCK 159*2c2f96dcSApple OSS Distributions inline int O_ASYNC = 0x0040; 160*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_ASYNC 161*2c2f96dcSApple OSS Distributions inline int O_SYNC = 0x0080; 162*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_SYNC 163*2c2f96dcSApple OSS Distributions inline int O_NOFOLLOW = 0x0100; 164*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_NOFOLLOW 165*2c2f96dcSApple OSS Distributions inline int O_CREAT = 0x0200; 166*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_CREAT 167*2c2f96dcSApple OSS Distributions inline int O_TRUNC = 0x0400; 168*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_TRUNC 169*2c2f96dcSApple OSS Distributions inline int O_EXCL = 0x0800; 170*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_EXCL 171*2c2f96dcSApple OSS Distributions inline int O_EVTONLY = 0x8000; 172*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_EVTONLY 173*2c2f96dcSApple OSS Distributions inline int O_NOCTTY = 0x20000; 174*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_NOCTTY 175*2c2f96dcSApple OSS Distributions inline int O_DIRECTORY = 0x100000; 176*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_DIRECTORY 177*2c2f96dcSApple OSS Distributions inline int O_SYMLINK = 0x200000; 178*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_SYMLINK 179*2c2f96dcSApple OSS Distributions inline int O_NOFOLLOW_ANY = 0x20000000; 180*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" O_NOFOLLOW_ANY 181*2c2f96dcSApple OSS Distributions 182*2c2f96dcSApple OSS Distributions /* From bsd/sys/file_internal.h */ 183*2c2f96dcSApple OSS Distributions inline int DTYPE_VNODE = 1; 184*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_VNODE 185*2c2f96dcSApple OSS Distributions inline int DTYPE_SOCKET = 2; 186*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_SOCKET 187*2c2f96dcSApple OSS Distributions inline int DTYPE_PSXSHM = 3; 188*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_PSXSHM 189*2c2f96dcSApple OSS Distributions inline int DTYPE_PSXSEM = 4; 190*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_PSXSEM 191*2c2f96dcSApple OSS Distributions inline int DTYPE_KQUEUE = 5; 192*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_KQUEUE 193*2c2f96dcSApple OSS Distributions inline int DTYPE_PIPE = 6; 194*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_PIPE 195*2c2f96dcSApple OSS Distributions inline int DTYPE_FSEVENTS = 7; 196*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" DTYPE_FSEVENTS 197*2c2f96dcSApple OSS Distributions 198*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" translator 199*2c2f96dcSApple OSS Distributions translator fileinfo_t < struct fileglob *F > { 200*2c2f96dcSApple OSS Distributions fi_name = (F == NULL) ? "<none>" : 201*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_VNODE ? 202*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_name == NULL ? "<unknown (NULL v_name)>" : ((struct vnode *)F->fg_data)->v_name : 203*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_SOCKET ? "<socket>" : 204*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_PSXSHM ? "<shared memory>" : 205*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_PSXSEM ? "<semaphore>" : 206*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_KQUEUE ? "<kqueue>" : 207*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_PIPE ? "<pipe>" : 208*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type == DTYPE_FSEVENTS ? "<fsevents>" : "<unknown (BAD fo_type)>"; 209*2c2f96dcSApple OSS Distributions 210*2c2f96dcSApple OSS Distributions fi_dirname = (F == NULL) ? "<none>" : 211*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type != DTYPE_VNODE ? "<unknown (not a vnode)>" : 212*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_parent == NULL ? "<unknown (NULL v_parent)>" : 213*2c2f96dcSApple OSS Distributions (((struct vnode *)F->fg_data)->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : 214*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_parent->v_name); 215*2c2f96dcSApple OSS Distributions 216*2c2f96dcSApple OSS Distributions fi_pathname = (F == NULL) ? "<none>" : 217*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type != DTYPE_VNODE ? "<unknown (not a vnode)>" : 218*2c2f96dcSApple OSS Distributions strjoin("??/", 219*2c2f96dcSApple OSS Distributions strjoin(((struct vnode *)F->fg_data)->v_parent == NULL ? "<unknown (NULL v_parent)>" : 220*2c2f96dcSApple OSS Distributions (((struct vnode *)F->fg_data)->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : 221*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_parent->v_name), 222*2c2f96dcSApple OSS Distributions strjoin("/", 223*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_name == NULL ? "<unknown (NULL v_name)>" : 224*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_name))); 225*2c2f96dcSApple OSS Distributions 226*2c2f96dcSApple OSS Distributions fi_offset = (F == NULL) ? 0 : 227*2c2f96dcSApple OSS Distributions F->fg_offset; 228*2c2f96dcSApple OSS Distributions 229*2c2f96dcSApple OSS Distributions fi_fs = (F == NULL) ? "<none>" : 230*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type != DTYPE_VNODE ? "<unknown (not a vnode)>" : 231*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_mount->mnt_vtable->vfc_name; 232*2c2f96dcSApple OSS Distributions 233*2c2f96dcSApple OSS Distributions fi_mount = (F == NULL) ? "<none>" : 234*2c2f96dcSApple OSS Distributions F->fg_ops->fo_type != DTYPE_VNODE ? "<unknown (not a vnode)>" : 235*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_mount->mnt_vnodecovered == NULL ? "/" : 236*2c2f96dcSApple OSS Distributions ((struct vnode *)F->fg_data)->v_mount->mnt_vnodecovered->v_name; 237*2c2f96dcSApple OSS Distributions 238*2c2f96dcSApple OSS Distributions fi_oflags = (F == NULL) ? 0 : 239*2c2f96dcSApple OSS Distributions F->fg_flag - 1; /* Subtract one to map FREAD/FWRITE bitfield to O_RD/WR open() flags. */ 240*2c2f96dcSApple OSS Distributions }; 241*2c2f96dcSApple OSS Distributions 242*2c2f96dcSApple OSS Distributions inline fileinfo_t fds[int fd] = xlate <fileinfo_t> ( 243*2c2f96dcSApple OSS Distributions (fd >= 0 && fd < curproc->p_fd.fd_afterlast) ? 244*2c2f96dcSApple OSS Distributions (struct fileglob *)(curproc->p_fd.fd_ofiles[fd]->fp_glob) : 245*2c2f96dcSApple OSS Distributions (struct fileglob *)NULL); 246*2c2f96dcSApple OSS Distributions 247*2c2f96dcSApple OSS Distributions #pragma D attributes Stable/Stable/Common fds 248*2c2f96dcSApple OSS Distributions #pragma D binding "1.1" fds 249*2c2f96dcSApple OSS Distributions 250*2c2f96dcSApple OSS Distributions #pragma D binding "1.2" translator 251*2c2f96dcSApple OSS Distributions translator fileinfo_t < struct vnode *V > { 252*2c2f96dcSApple OSS Distributions fi_name = V->v_name == NULL ? "<unknown (NULL v_name)>" : V->v_name; 253*2c2f96dcSApple OSS Distributions 254*2c2f96dcSApple OSS Distributions fi_dirname = V->v_parent == NULL ? "<unknown (NULL v_parent)>" : 255*2c2f96dcSApple OSS Distributions (V->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : V->v_parent->v_name); 256*2c2f96dcSApple OSS Distributions 257*2c2f96dcSApple OSS Distributions fi_pathname = strjoin("??/", 258*2c2f96dcSApple OSS Distributions strjoin(V->v_parent == NULL ? "<unknown (NULL v_parent)>" : 259*2c2f96dcSApple OSS Distributions (V->v_parent->v_name == NULL ? "<unknown (NULL v_name)>" : V->v_parent->v_name), 260*2c2f96dcSApple OSS Distributions strjoin("/", 261*2c2f96dcSApple OSS Distributions V->v_name == NULL ? "<unknown (NULL v_name)>" : V->v_name))); 262*2c2f96dcSApple OSS Distributions 263*2c2f96dcSApple OSS Distributions fi_fs = V->v_mount->mnt_vtable->vfc_name; 264*2c2f96dcSApple OSS Distributions 265*2c2f96dcSApple OSS Distributions fi_mount = V->v_mount->mnt_vnodecovered == NULL ? "/" : V->v_mount->mnt_vnodecovered->v_name; 266*2c2f96dcSApple OSS Distributions }; 267*2c2f96dcSApple OSS Distributions 268