/macosx-10.5.8/xnu-1228.15.4/bsd/sys/ |
H A D | file_internal.h | 90 struct fileproc { struct 97 #define FILEPROC_NULL (struct fileproc *)0 145 int (*fo_read) (struct fileproc *fp, struct uio *uio, 147 int (*fo_write) (struct fileproc *fp, struct uio *uio, 151 int (*fo_ioctl) (struct fileproc *fp, u_long com, 153 int (*fo_select) (struct fileproc *fp, int which, 156 int (*fo_kqfilter) (struct fileproc *fp, struct knote *kn, 158 int (*fo_drain) (struct fileproc *fp, vfs_context_t ctx); 182 int fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx); 183 int fo_write(struct fileproc *f [all...] |
H A D | mman.h | 237 struct fileproc; 239 struct fileproc *fp, off_t pageoff); 244 struct fileproc; 245 int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, register_t *retval);
|
H A D | filedesc.h | 90 struct fileproc **fd_ofiles; /* file structures for open files */ 144 extern int falloc(proc_t p, struct fileproc **resultfp, int *resultfd, vfs_context_t ctx);
|
H A D | ev.h | 116 int waitevent_close(struct proc *p, struct fileproc *);
|
H A D | event.h | 241 struct fileproc *p_fp; /* file data pointer */
|
H A D | user.h | 135 struct fileproc *fp; /* fileproc we hold iocount on */
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netat/ |
H A D | sys_dep.c | 58 int falloc_locked(proc_t, struct fileproc **, int *, vfs_context_t, int); 72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t); 73 int _ATselect(struct fileproc *, int, void *, vfs_context_t); 74 int _ATioctl(struct fileproc *, u_long, caddr_t, vfs_context_t); 75 int _ATwrite(struct fileproc *, struct uio *, int, vfs_context_t); 76 int _ATread(struct fileproc *, struct uio *, int, vfs_context_t); 276 struct fileproc *fp; 307 * This routine returns with an iocount on the fileproc when the fp is null 308 * as it converts fd to fileproc. Callers of this api who pass fp as null 312 struct fileproc *f [all...] |
H A D | at_pcb.h | 127 int atalk_getref(struct fileproc *, int , gref_t ** , struct proc *, int); 128 int atalk_getref_locked(struct fileproc *, int , gref_t ** , struct proc *, int);
|
H A D | sys_glue.c | 72 int _ATkqfilter(struct fileproc *, struct knote *, vfs_context_t); 73 int _ATselect(struct fileproc *, int, void *, vfs_context_t); 74 int _ATioctl(struct fileproc *, u_long, caddr_t, vfs_context_t); 75 int _ATwrite(struct fileproc *, struct uio *, int, vfs_context_t); 76 int _ATread(struct fileproc *, struct uio *, int, vfs_context_t); 79 int _ATrw(struct fileproc *, enum uio_rw, struct uio *, vfs_context_t); 302 struct fileproc *fp; 416 struct fileproc *fp, 430 struct fileproc *fp, 607 struct fileproc *f [all...] |
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/ |
H A D | kern_descrip.c | 117 int falloc_locked(proc_t p, struct fileproc **resultfp, int *resultfd, vfs_context_t ctx, int locked); 118 int fdgetf_noref(proc_t p, int fd, struct fileproc **resultfp); 119 void fg_drop(struct fileproc * fp); 121 void fg_ref(struct fileproc * fp); 125 static int close_internal_locked(struct proc *p, int fd, struct fileproc *fp, int flags); 127 static int closef_finish(struct fileproc *fp, struct fileglob *fg, proc_t p, vfs_context_t ctx); 140 extern int kqueue_stat(struct fileproc *fp, void *ub, int isstat4, proc_t p); 203 * Description: Lock to control access to the per process struct fileproc 291 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) 379 struct fileproc *f [all...] |
H A D | sys_socket.c | 95 static int soo_read(struct fileproc *, struct uio *, int, vfs_context_t ctx); 96 static int soo_write(struct fileproc *, struct uio *, int, vfs_context_t ctx); 98 static int soo_drain(struct fileproc *, vfs_context_t ctx); 101 extern int soo_ioctl(struct fileproc *, u_long, caddr_t, vfs_context_t ctx); 103 extern int soo_select(struct fileproc *, int, void *, vfs_context_t ctx); 104 extern int soo_kqfilter(struct fileproc *, struct knote *, vfs_context_t ctx); 113 soo_read(struct fileproc *fp, struct uio *uio, __unused int flags, 149 soo_write(struct fileproc *fp, struct uio *uio, __unused int flags, 361 soo_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) 381 soo_select(struct fileproc *f [all...] |
H A D | posix_sem.c | 169 static int psem_read (struct fileproc *fp, struct uio *uio, 171 static int psem_write (struct fileproc *fp, struct uio *uio, 173 static int psem_ioctl (struct fileproc *fp, u_long com, 175 static int psem_select (struct fileproc *fp, int which, void *wql, vfs_context_t ctx); 178 static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 353 struct fileproc *fp; 355 struct fileproc *nfp; 760 struct fileproc *fp; 790 struct fileproc *fp; 850 struct fileproc *f [all...] |
H A D | proc_info.c | 109 int pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 110 int pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 111 int pid_socketinfo(socket_t so, struct fileproc *fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 112 int pid_pseminfo(struct psemnode * psem, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 113 int pid_pshminfo(struct pshmnode * pshm, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 114 int pid_pipeinfo(struct pipe * p, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 115 int pid_kqueueinfo(struct kqueue * kq, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 116 int pid_atalkinfo(struct atalk * at, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, register_t * retval); 122 void fill_fileinfo(struct fileproc * fp, int closeonexec, struct proc_fileinfo * finfo); 285 struct fileproc * f [all...] |
H A D | posix_shm.c | 167 static int pshm_read (struct fileproc *fp, struct uio *uio, 169 static int pshm_write (struct fileproc *fp, struct uio *uio, 171 static int pshm_ioctl (struct fileproc *fp, u_long com, 173 static int pshm_select (struct fileproc *fp, int which, void *wql, vfs_context_t ctx); 177 static int pshm_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 360 struct fileproc *fp; 362 struct fileproc *nfp; 623 pshm_truncate(__unused proc_t p, struct fileproc *fp, __unused int fd, 783 pshm_mmap(__unused proc_t p, struct mmap_args *uap, user_addr_t *retval, struct fileproc *fp, off_t pageoff) 1076 pshm_read(__unused struct fileproc *f [all...] |
H A D | kern_event.c | 105 static int kqueue_read(struct fileproc *fp, struct uio *uio, 107 static int kqueue_write(struct fileproc *fp, struct uio *uio, 109 static int kqueue_ioctl(struct fileproc *fp, u_long com, caddr_t data, 111 static int kqueue_select(struct fileproc *fp, int which, void *wql, 114 static int kqueue_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 115 extern int kqueue_stat(struct fileproc *fp, void *ub, int isstat64, vfs_context_t ctx); 841 struct fileproc *fp; 965 struct fileproc *fp; 1006 struct fileproc *fp; 1132 struct fileproc *f [all...] |
H A D | sys_generic.c | 146 __private_extern__ int dofileread(vfs_context_t ctx, struct fileproc *fp, 149 __private_extern__ int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 152 __private_extern__ int preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_vnode); 153 __private_extern__ void donefileread(struct proc *p, struct fileproc *fp_ret, int fd); 187 struct fileproc *fp; 222 struct fileproc *fp = NULL; /* fp set by preparefileread() */ 247 donefileread(struct proc *p, struct fileproc *fp, int fd) 266 preparefileread(struct proc *p, struct fileproc **fp_ret, int fd, int check_for_pread) 270 struct fileproc *fp; 321 dofileread(vfs_context_t ctx, struct fileproc *f [all...] |
H A D | sys_pipe.c | 165 static int pipe_read(struct fileproc *fp, struct uio *uio, 168 static int pipe_write(struct fileproc *fp, struct uio *uio, 173 static int pipe_select(struct fileproc *fp, int which, void * wql, 176 static int pipe_kqfilter(struct fileproc *fp, struct knote *kn, 179 static int pipe_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, 324 struct fileproc *rf, *wf; 649 pipe_read(struct fileproc *fp, struct uio *uio, __unused int flags, 1059 pipe_write(struct fileproc *fp, struct uio *uio, __unused int flags, 1383 pipe_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, 1446 pipe_select(struct fileproc *f [all...] |
H A D | uipc_usrreq.c | 144 extern int fdgetf_noref(proc_t, int, struct fileproc **); 1226 * ENOBUFS Cannot alloc struct fileproc 1235 struct fileproc *fp; 1278 MALLOC_ZONE(fp, struct fileproc *, sizeof (struct fileproc), 1282 bzero(fp, sizeof (struct fileproc)); 1335 struct fileproc *fp; 1591 closef_locked((struct fileproc *)0, *fpp, (proc_t)NULL); 1693 (void) closef_locked((struct fileproc *)0, fg, p);
|
H A D | kern_aio.c | 193 extern int dofileread(vfs_context_t ctx, struct fileproc *fp, 196 extern int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 1791 struct fileproc *fp; 2042 struct fileproc *fp; 2078 struct fileproc *fp; 2135 struct fileproc *fp;
|
H A D | uipc_syscalls.c | 133 int falloc_locked(proc_t, struct fileproc **, int *, vfs_context_t, int); 172 struct fileproc *fp; 337 struct fileproc *fp; 705 struct fileproc *fp1, *fp2; 947 struct fileproc *fp; 1114 struct fileproc *fp; 1300 struct fileproc *fp; 2009 struct fileproc *fp;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/fifofs/ |
H A D | fifo_vnops.c | 82 extern int soo_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx); 83 extern int soo_select(struct fileproc *fp, int which, void * wql, vfs_context_t ctx); 376 struct fileproc filetmp; 382 bzero(&filetmp, sizeof(struct fileproc)); 402 struct fileproc filetmp; 406 bzero(&filetmp, sizeof(struct fileproc));
|
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/ |
H A D | vfs_vnops.c | 115 static int vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, 117 static int vn_read(struct fileproc *fp, struct uio *uio, int flags, 119 static int vn_write(struct fileproc *fp, struct uio *uio, int flags, 121 static int vn_select( struct fileproc *fp, int which, void * wql, 123 static int vn_kqfilt_add(struct fileproc *fp, struct knote *kn, 698 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) 747 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) 1065 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) 1161 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) 1280 vn_kqfilt_add(struct fileproc *f [all...] |
H A D | vfs_fsevents.c | 1854 fseventsf_read(struct fileproc *fp, struct uio *uio, 1867 fseventsf_write(__unused struct fileproc *fp, __unused struct uio *uio, 1888 fseventsf_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) 2000 fseventsf_select(struct fileproc *fp, int which, __unused void *wql, vfs_context_t ctx) 2025 fseventsf_stat(__unused struct fileproc *fp, __unused struct stat *sb, __unused vfs_context_t ctx) 2053 fseventsf_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) 2061 fseventsf_drain(struct fileproc *fp, __unused vfs_context_t ctx) 2298 struct fileproc *f;
|
/macosx-10.5.8/xnu-1228.15.4/bsd/miscfs/union/ |
H A D | union.h | 211 extern int (*union_dircheckp)(struct vnode **, struct fileproc *, vfs_context_t);
|
/macosx-10.5.8/xnu-1228.15.4/bsd/bsm/ |
H A D | audit_kernel.h | 378 void audit_arg_file(struct proc *p, const struct fileproc *fp);
|