/xnu-2422.115.4/SETUP/config/ |
H A D | mkglue.c | 63 void dump_mb_handler(FILE *fp, struct idlst *vec, int number); 64 void dump_ubavec(FILE *fp, char *vector, int number); 65 void dump_std(FILE *fp, FILE *gp); 66 void dump_intname(FILE *fp, char *vector, int number); 67 void dump_ctrs(FILE *fp); 68 void glue(FILE *fp, void (*dump_handler)(FILE *, struct idlst *, int)); 76 register FILE *fp, *gp; local 79 fp = fopen(path("ubglue.s"), "w"); 80 if (fp == 0) { 98 dump_ubavec(fp, i 139 dump_ubavec(FILE *fp, char *vector, int number) argument 202 dump_std(FILE *fp, FILE *gp) argument 237 dump_intname(FILE *fp, char *vector, int number) argument 261 dump_ctrs(FILE *fp) argument 285 dump_mb_handler(FILE *fp, struct idlst *vec, int number) argument 294 register FILE *fp; local 308 glue(FILE *fp, void (*dump_handler)(FILE *, struct idlst *, int)) argument [all...] |
H A D | mkioconf.c | 61 void i386_pseudo_inits(FILE *fp); /* XXX function in wrong block */ 64 void m88k_pseudo_inits(FILE *fp); 65 void m98k_pseudo_inits(FILE *fp); 77 FILE *fp; local 79 fp = fopen(path("ioconf.c"), "w"); 80 if (fp == 0) { 85 fprintf(fp, "#ifndef MACH_KERNEL\n"); 87 fprintf(fp, "#include <machine/pte.h>\n"); 88 fprintf(fp, "#include <sys/param.h>\n"); 89 fprintf(fp, "#includ 348 FILE *fp; local 546 pseudo_inits(FILE *fp) argument 581 FILE *fp; local 741 FILE *fp; local 1026 FILE *fp; local 1215 FILE *fp; local 1243 FILE *fp; local 1527 FILE *fp; local 1660 m68k_pseudo_inits(FILE *fp) argument 1684 i386_pseudo_inits(FILE *fp) argument 1721 FILE *fp; local 1736 nrw_pseudo_inits(FILE *fp) argument 1779 m88k_pseudo_inits(FILE *fp) argument 1785 m98k_pseudo_inits(FILE *fp) argument 1812 FILE *fp; local 1827 hppa_pseudo_inits(FILE *fp) argument 1867 FILE *fp; local 1882 sparc_pseudo_inits(FILE *fp) argument 1921 FILE *fp; local 1936 ppc_pseudo_inits(FILE *fp) argument 1975 FILE *fp; local 1990 arm_pseudo_inits(FILE *fp) argument 2021 FILE *fp; local 2036 x86_64_pseudo_inits(FILE *fp) argument [all...] |
H A D | mkswapconf.c | 83 FILE *fp; local 97 fp = fopen(path(swapname), "w"); 98 if (fp == 0) { 102 fprintf(fp, "#include <sys/param.h>\n"); 103 fprintf(fp, "#include <sys/conf.h>\n"); 104 fprintf(fp, "\n"); 113 fclose(fp); 116 fprintf(fp, "dev_t\trootdev = makedev(%d, %d);\n", 118 fprintf(fp, "dev_t\targdev = makedev(%d, %d);\n", 120 fprintf(fp, "dev_ 226 FILE *fp; local [all...] |
H A D | mkmakefile.c | 68 void do_objs(FILE *fp, const char *msg, int ext); 69 void do_ordered(FILE *fp); 70 void do_files(FILE *fp, const char *msg, char ext); 79 void build_cputypes(FILE *fp); 80 void build_confdep(FILE *fp); 86 void put_source_file_name(FILE *fp, struct file_list *tp); 91 #define next_word(fp, wd) \ 92 { register const char *word = get_word(fp); \ 109 register struct file_list *fp; local 111 for (fp 124 register struct file_list *fp; local 139 register struct file_list *fp; local 349 FILE *fp; local 637 put_source_file_name(FILE *fp, struct file_list *tp) argument 646 do_objs(FILE *fp, const char *msg, int ext) argument 712 do_ordered(FILE *fp) argument 742 do_files(FILE *fp, const char *msg, char ext) argument 800 build_confdep(FILE *fp) argument 810 build_cputypes(FILE *fp) argument [all...] |
H A D | main.c | 228 get_word(FILE *fp) argument 234 while ((ch = getc(fp)) != EOF) 245 while ((ch = getc(fp)) != EOF) { 253 (void) ungetc(ch, fp); 264 get_rest(FILE *fp) argument 271 while ((ch = getc(fp)) != EOF) {
|
/xnu-2422.115.4/bsd/dev/i386/ |
H A D | sdt_x86.c | 81 struct frame *fp = (struct frame *)__builtin_frame_address(0); local 93 fp = fp->backchain; 94 pc = fp->retaddr; 112 /* fp points to frame of dtrace_invop() activation. */ 113 fp = fp->backchain; /* to fbt_perfcallback() activation. */ 114 fp = fp->backchain; /* to kernel_trap() activation. */ 115 fp [all...] |
H A D | dtrace_isa.c | 416 user_addr_t pc, sp, fp; local 448 fp = regs->ss_64.rbp; 452 fp = regs->ss_32.ebp; 468 * traces from the fp, even in syscall/profile/fbt 471 n = dtrace_getustack_common(pcstack, pcstack_limit, pc, fp); 488 user_addr_t pc, sp, fp; local 506 fp = regs->ss_64.rbp; 510 fp = regs->ss_32.ebp; 527 * traces from the fp, even in syscall/profile/fbt 531 n += dtrace_getustack_common(NULL, 0, pc, fp); 660 struct frame *fp = (struct frame *)__builtin_frame_address(0); local 740 struct frame *fp = (struct frame *)__builtin_frame_address(0); local [all...] |
/xnu-2422.115.4/bsd/net/ |
H A D | pf_osfp.c | 122 struct pf_os_fingerprint fp, *fpresult; local 134 memset(&fp, 0, sizeof (fp)); 137 fp.fp_psize = ntohs(ip->ip_len); 138 fp.fp_ttl = ip->ip_ttl; 140 fp.fp_flags |= PF_OSFP_DF; 147 fp.fp_psize = sizeof (struct ip6_hdr) + ntohs(ip6->ip6_plen); 148 fp.fp_ttl = ip6->ip6_hlim; 149 fp.fp_flags |= PF_OSFP_DF; 150 fp 296 struct pf_os_fingerprint *fp; local 314 struct pf_os_fingerprint *fp, fpadd; local 517 struct pf_os_fingerprint *fp; local [all...] |
/xnu-2422.115.4/bsd/sys/ |
H A D | file_internal.h | 109 #define FP_SELCONFLICT 0x0200 /* select conflict on an individual fp */ 116 #define FILEPROC_TYPE(fp) ((fp)->f_flags & FP_TYPEMASK) 118 #define FP_ISGUARDED(fp, attribs) \ 119 ((FILEPROC_TYPE(fp) == FTYPE_GUARDED) ? fp_isguarded(fp, attribs) : 0) 168 int (*fo_read) (struct fileproc *fp, struct uio *uio, 170 int (*fo_write) (struct fileproc *fp, struct uio *uio, 174 int (*fo_ioctl) (struct fileproc *fp, u_long com, 176 int (*fo_select) (struct fileproc *fp, in [all...] |
/xnu-2422.115.4/bsd/kern/ |
H A D | kern_guarded.c | 73 #define FP_TO_GFP(fp) ((struct guarded_fileproc *)(fp)) 102 guarded_fileproc_free(struct fileproc *fp) argument 104 struct guarded_fileproc *gfp = FP_TO_GFP(fp); 106 if (FILEPROC_TYPE(fp) != FTYPE_GUARDED || 108 panic("%s: corrupt fp %p flags %x", __func__, fp, fp->f_flags); 117 struct fileproc *fp; local 120 if ((error = fp_lookup(p, fd, &fp, 151 fp_isguarded(struct fileproc *fp, u_int attrs) argument 167 fp_guard_exception(proc_t p, int fd, struct fileproc *fp, u_int code) argument 224 struct fileproc *fp = fdp->fd_ofiles[i]; local 476 struct fileproc *fp; local [all...] |
H A D | kern_descrip.c | 134 void fg_drop(struct fileproc * fp); 136 void fg_ref(struct fileproc * fp); 151 extern int kqueue_stat(struct fileproc *fp, void *ub, int isstat4, proc_t p); 359 procfdtbl_releasefd(struct proc * p, int fd, struct fileproc * fp) argument 361 if (fp != NULL) 362 p->p_fd->fd_ofiles[fd] = fp; 437 struct fileproc *fp; local 448 error = fp_lookup(p, fd, &fp, 0); 452 if (fp->f_type != DTYPE_VNODE && fp 523 struct fileproc *fp; local 570 struct fileproc *fp, *nfp; local 750 struct fileproc *fp; local 2441 struct fileproc *fp; local 2492 close_internal_locked(proc_t p, int fd, struct fileproc *fp, int flags) argument 2619 struct fileproc *fp; local 2870 struct fileproc *fp; local 3117 struct fileproc *fp; local 3161 struct fileproc *fp; local 3220 struct fileproc *fp; local 3277 struct fileproc *fp; local 3332 struct fileproc *fp; local 3389 struct fileproc *fp; local 3456 struct fileproc *fp; local 3511 struct fileproc *fp; local 3563 struct fileproc *fp; local 3604 struct fileproc *fp; local 3671 fp_drop_written(proc_t p, int fd, struct fileproc *fp) argument 3707 fp_drop_event(proc_t p, int fd, struct fileproc *fp) argument 3747 fp_drop(proc_t p, int fd, struct fileproc *fp, int locked) argument 3821 struct fileproc *fp; local 3882 struct fileproc *fp; local 3947 struct fileproc *fp; local 3995 struct fileproc *fp; local 4050 struct fileproc *fp; local 4199 struct fileproc *fp; local 4353 struct fileproc *fp = fdp->fd_ofiles[i]; local 4442 struct fileproc *ofp, *fp; local 4645 struct fileproc *fp; local 4722 closef_locked(struct fileproc *fp, struct fileglob *fg, proc_t p) argument 4820 fileproc_drain(proc_t p, struct fileproc * fp) argument 4875 fp_free(proc_t p, int fd, struct fileproc * fp) argument 4915 struct fileproc *fp; local 4991 struct fileproc *fp = FILEPROC_NULL; local 5088 struct fileproc *fp = FILEPROC_NULL; local 5168 struct fileproc *fp; local 5262 fg_ref(struct fileproc * fp) argument 5296 fg_drop(struct fileproc * fp) argument 5418 fo_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument 5439 fo_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument 5468 fo_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) argument 5494 fo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) argument 5534 fo_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) argument 5562 struct fileproc *fp; local 5572 fileproc_free(struct fileproc *fp) argument [all...] |
H A D | sys_generic.c | 156 __private_extern__ int dofileread(vfs_context_t ctx, struct fileproc *fp, 159 __private_extern__ int dofilewrite(vfs_context_t ctx, struct fileproc *fp, 216 struct fileproc *fp; local 221 if ( (error = preparefileread(p, &fp, fd, 0)) ) 225 context.vc_ucred = fp->f_fglob->fg_cred; 227 error = dofileread(&context, fp, uap->cbuf, uap->nbyte, 230 donefileread(p, fp, fd); 255 struct fileproc *fp = NULL; /* fp set by preparefileread() */ local 260 if ( (error = preparefileread(p, &fp, f 283 donefileread(struct proc *p, struct fileproc *fp, int fd) argument 303 struct fileproc *fp; local 354 dofileread(vfs_context_t ctx, struct fileproc *fp, user_addr_t bufp, user_size_t nbyte, off_t offset, int flags, user_ssize_t *retval) argument 470 struct fileproc *fp; local 516 struct fileproc *fp; local 573 dofilewrite(vfs_context_t ctx, struct fileproc *fp, user_addr_t bufp, user_size_t nbyte, off_t offset, int flags, user_ssize_t *retval) argument 674 struct fileproc *fp; local 714 struct fileproc *fp; local 756 struct fileproc *fp = NULL; local 1289 struct fileproc *fp; local 1627 struct fileproc *fp; local 1717 struct fileproc *fp; local 2273 struct fileproc *fp = NULL; local 2539 struct fileproc *fp; local 2693 waitevent_close(struct proc *p, struct fileproc *fp) argument [all...] |
H A D | posix_sem.c | 170 static int psem_read (struct fileproc *fp, struct uio *uio, 172 static int psem_write (struct fileproc *fp, struct uio *uio, 174 static int psem_ioctl (struct fileproc *fp, u_long com, 176 static int psem_select (struct fileproc *fp, int which, void *wql, vfs_context_t ctx); 177 static int psem_closefile (struct fileglob *fp, vfs_context_t ctx); 179 static int psem_kqfilter (struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 365 struct fileproc *fp = NULL; local 432 * attempt to allocate a new fp; if unsuccessful, the fp will be 435 error = falloc(p, &fp, 784 struct fileproc *fp; local 815 struct fileproc *fp; local 875 struct fileproc *fp; local 940 struct fileproc *fp; local 1088 psem_read(__unused struct fileproc *fp, __unused struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1095 psem_write(__unused struct fileproc *fp, __unused struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1102 psem_ioctl(__unused struct fileproc *fp, __unused u_long com, __unused caddr_t data, __unused vfs_context_t ctx) argument 1109 psem_select(__unused struct fileproc *fp, __unused int which, __unused void *wql, __unused vfs_context_t ctx) argument 1116 psem_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) argument 1156 psem_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) argument [all...] |
H A D | posix_shm.c | 174 static int pshm_read (struct fileproc *fp, struct uio *uio, 176 static int pshm_write (struct fileproc *fp, struct uio *uio, 178 static int pshm_ioctl (struct fileproc *fp, u_long com, 180 static int pshm_select (struct fileproc *fp, int which, void *wql, vfs_context_t ctx); 184 static int pshm_kqfilter(struct fileproc *fp, struct knote *kn, vfs_context_t ctx); 381 struct fileproc *fp = NULL; local 444 * attempt to allocate a new fp; if unsuccessful, the fp will be 447 error = falloc(p, &fp, &indx, vfs_context_current()); 616 fp 664 pshm_truncate(__unused proc_t p, struct fileproc *fp, __unused int fd, off_t length, __unused int32_t *retval) argument 841 pshm_mmap(__unused proc_t p, struct mmap_args *uap, user_addr_t *retval, struct fileproc *fp, off_t pageoff) argument 1223 pshm_read(__unused struct fileproc *fp, __unused struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1230 pshm_write(__unused struct fileproc *fp, __unused struct uio *uio, __unused int flags, __unused vfs_context_t ctx) argument 1237 pshm_ioctl(__unused struct fileproc *fp, __unused u_long com, __unused caddr_t data, __unused vfs_context_t ctx) argument 1244 pshm_select(__unused struct fileproc *fp, __unused int which, __unused void *wql, __unused vfs_context_t ctx) argument 1251 pshm_kqfilter(__unused struct fileproc *fp, __unused struct knote *kn, __unused vfs_context_t ctx) argument 1286 pshm_label_associate(struct fileproc *fp, struct vnode *vp, vfs_context_t ctx) argument [all...] |
H A D | proc_info.c | 125 int pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 126 int pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 127 int pid_socketinfo(socket_t so, struct fileproc *fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 128 int pid_pseminfo(struct psemnode * psem, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 129 int pid_pshminfo(struct pshmnode * pshm, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 130 int pid_pipeinfo(struct pipe * p, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 131 int pid_kqueueinfo(struct kqueue * kq, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 132 int pid_atalkinfo(struct atalk * at, struct fileproc * fp, int closeonexec, user_addr_t buffer, uint32_t buffersize, int32_t * retval); 138 void fill_fileinfo(struct fileproc * fp, int closeonexec, struct proc_fileinfo * finfo); 340 struct fileproc * fp; local 1272 pid_vnodeinfo(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1293 pid_vnodeinfopath(vnode_t vp, uint32_t vid, struct fileproc * fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1318 fill_fileinfo(struct fileproc * fp, int closeonexec, struct proc_fileinfo * fproc) argument 1373 pid_socketinfo(socket_t so, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1394 pid_pseminfo(struct psemnode *psem, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1411 pid_pshminfo(struct pshmnode *pshm, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1428 pid_pipeinfo(struct pipe * p, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1444 pid_kqueueinfo(struct kqueue * kq, struct fileproc *fp, int closeonexec, user_addr_t buffer, __unused uint32_t buffersize, int32_t * retval) argument 1462 pid_atalkinfo(__unused struct atalk * at, __unused struct fileproc *fp, __unused int closeonexec, __unused user_addr_t buffer, __unused uint32_t buffersize, __unused int32_t * retval) argument 1475 struct fileproc * fp; local 1639 struct fileproc __fileproc, *fp = &__fileproc; local [all...] |
H A D | sys_socket.c | 113 soo_read(struct fileproc *fp, struct uio *uio, __unused int flags, argument 129 if ((so = (struct socket *)fp->f_fglob->fg_data) == NULL) { 148 soo_write(struct fileproc *fp, struct uio *uio, __unused int flags, argument 162 if ((so = (struct socket *)fp->f_fglob->fg_data) == NULL) { 298 soo_ioctl(struct fileproc *fp, u_long cmd, caddr_t data, vfs_context_t ctx) argument 303 if ((so = (struct socket *)fp->f_fglob->fg_data) == NULL) { 312 soo_select(struct fileproc *fp, int which, void *wql, vfs_context_t ctx) argument 314 struct socket *so = (struct socket *)fp->f_fglob->fg_data; 436 soo_drain(struct fileproc *fp, __unused vfs_context_t ctx) argument 439 struct socket *so = (struct socket *)fp [all...] |
/xnu-2422.115.4/SETUP/decomment/ |
H A D | decomment.c | 50 FILE *fp; local 69 fp = fopen(argv[1], "r"); 70 if(!fp) { 76 bufchar = getc_unlocked(fp);
|
/xnu-2422.115.4/bsd/hfs/ |
H A D | hfs_readwrite.c | 120 struct filefork *fp; local 182 fp = VTOF(vp); 206 filesize = fp->ff_size; 207 filebytes = (off_t)fp->ff_blocks * (off_t)hfsmp->blockSize; 236 if ((fp->ff_bytesread + bytesread) > 0x00000000ffffffff) { 247 fp->ff_bytesread = bytesread; 251 fp->ff_bytesread += bytesread; 278 struct filefork *fp; local 342 fp = VTOF(vp); 389 uio_setoffset(uio, fp 2603 struct filefork *fp; local 2821 struct filefork *fp = VTOF(vp); local 2943 struct filefork *fp; local 3280 struct filefork *fp = VTOF(vp); local 3613 struct filefork *fp = VTOF(vp); local 3804 struct filefork *fp = VTOF(vp); local 3899 struct filefork *fp; local 4144 struct filefork *fp; local 4479 struct filefork *fp; local 4858 struct filefork *fp; local [all...] |
H A D | hfs_cnode.h | 266 #define FTOC(fp) ((fp)->ff_cp) 276 #define FTOV(fp) ((fp) == FTOC(fp)->c_rsrcfork ? \ 277 FTOC(fp)->c_rsrc_vp : \ 278 FTOC(fp)->c_vp) 294 #define FORK_IS_RSRC(fp) ((fp) == FTOC(fp) [all...] |
H A D | hfs_cnode.c | 746 struct filefork *fp; local 756 fp = VTOF(vp); 758 leof = fp->ff_size; 760 if ((hfsmp->hfs_flags & HFS_READ_ONLY) || (fp->ff_blocks == 0)) 800 while ((invalid_range = TAILQ_FIRST(&fp->ff_invalidranges))) { 808 rl_remove(start, end, &fp->ff_invalidranges); 825 if (blks < fp->ff_blocks) { 853 struct filefork *fp = NULL; local 897 fp = cp->c_datafork; 903 fp 991 struct filefork *fp = NULL; local [all...] |
/xnu-2422.115.4/bsd/netinet/ |
H A D | ip_input.c | 1428 * exists, then it is given as fp; otherwise have to make a chain. 1450 struct ipq *fp = NULL; local 1485 TAILQ_FOREACH(fp, head, ipq_list) { 1486 if (ip->ip_id == fp->ipq_id && 1487 ip->ip_src.s_addr == fp->ipq_src.s_addr && 1488 ip->ip_dst.s_addr == fp->ipq_dst.s_addr && 1490 mac_ipq_label_compare(m, fp) && 1492 ip->ip_p == fp->ipq_p) 1496 fp = NULL; 1585 * we need to drop it. Make sure to set fp t 1931 frag_freef(struct ipqhead *fhp, struct ipq *fp) argument 1952 struct ipq *fp; local 2030 struct ipq *fp; local 2052 ipq_free(struct ipq *fp) argument [all...] |
/xnu-2422.115.4/bsd/dev/dtrace/ |
H A D | fasttrap.c | 332 fasttrap_provider_t **fpp, *fp; local 359 while ((fp = *fpp) != NULL) { 360 if (!fp->ftp_marked) { 361 fpp = &fp->ftp_next; 365 lck_mtx_lock(&fp->ftp_mtx); 373 if (fp->ftp_ccount != 0 || 374 fp->ftp_mcount != 0) { 375 fp->ftp_marked = 0; 376 lck_mtx_unlock(&fp->ftp_mtx); 380 if (!fp 1447 fasttrap_provider_t *fp, *new_fp = NULL; local 1644 fasttrap_provider_t *fp; local [all...] |
H A D | fbt.c | 261 ctf_file_t *fp = NULL, *pfp; local 277 if ((fp = ctf_modopen(mp, &error)) == NULL) { 288 if ((parent = ctf_parent_name(fp)) != NULL) { 310 if (ctf_import(fp, pfp) != 0) { 318 if (ctf_func_info(fp, fbt->fbtp_symndx, &f) == CTF_ERR) 331 if (ctf_func_args(fp, fbt->fbtp_symndx, argc, argv) == CTF_ERR) 337 if (ctf_type_name(fp, type, desc->dtargd_native, 339 ctf_close(fp); 343 if (fp != NULL) 344 ctf_close(fp); [all...] |
/xnu-2422.115.4/bsd/miscfs/devfs/ |
H A D | devfs_fdesc_support.c | 386 struct fileproc *fp; local 391 if ((error = fp_lookup(p, fd, &fp, 0))) 393 switch (FILEGLOB_DTYPE(fp->f_fglob)) { 395 if((error = vnode_getwithref((struct vnode *) fp->f_fglob->fg_data)) != 0) { 398 if ((error = vnode_authorize((struct vnode *)fp->f_fglob->fg_data, 402 error = vnode_getattr((struct vnode *)fp->f_fglob->fg_data, vap, a_context); 412 (void)vnode_put((struct vnode *) fp->f_fglob->fg_data); 418 if (FILEGLOB_DTYPE(fp->f_fglob) == DTYPE_SOCKET) 419 error = soo_stat((struct socket *)fp->f_fglob->fg_data, (void *)&stb, 0); 422 error = pipe_stat((struct pipe *)fp 492 struct fileproc *fp; local [all...] |
/xnu-2422.115.4/bsd/vfs/ |
H A D | vfs_vnops.c | 120 static int vn_closefile(struct fileglob *fp, vfs_context_t ctx); 121 static int vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, 123 static int vn_read(struct fileproc *fp, struct uio *uio, int flags, 125 static int vn_write(struct fileproc *fp, struct uio *uio, int flags, 127 static int vn_select( struct fileproc *fp, int which, void * wql, 129 static int vn_kqfilt_add(struct fileproc *fp, struct knote *kn, 866 /* passed cred is fp->f_cred */ 898 vn_read(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument 905 vp = (struct vnode *)fp->f_fglob->fg_data; 921 if (fp 953 vn_write(struct fileproc *fp, struct uio *uio, int flags, vfs_context_t ctx) argument 1289 vn_ioctl(struct fileproc *fp, u_long com, caddr_t data, vfs_context_t ctx) argument 1388 vn_select(struct fileproc *fp, int which, void *wql, __unused vfs_context_t ctx) argument 1526 vn_kqfilt_add(struct fileproc *fp, struct knote *kn, vfs_context_t ctx) argument [all...] |