/xnu-2782.1.97/osfmk/kern/ |
H A D | ipc_misc.h | 32 struct fileglob; 33 ipc_port_t fileport_alloc(struct fileglob *); 34 struct fileglob *fileport_port_to_fileglob(ipc_port_t); 37 int (*)(mach_port_name_t, struct fileglob *, void *), void *, int *); 39 int (*)(mach_port_name_t, struct fileglob *, void *), void *);
|
H A D | ipc_misc.c | 39 extern void fileport_releasefg(struct fileglob *); 44 * Description: Obtain a send right for the given fileglob, which must be 47 * Parameters: fg A fileglob. 49 * Returns: Port of type IKOT_FILEPORT with fileglob set as its kobject. 53 fileport_alloc(struct fileglob *fg) 82 * Description: Obtain the fileglob associated with a given port. 87 * fileglob. 88 * !NULL The fileglob that is associated with the 93 struct fileglob * 96 struct fileglob *f [all...] |
/xnu-2782.1.97/security/ |
H A D | mac_file.c | 64 mac_file_label_init(struct fileglob *fg) 79 mac_file_label_associate(struct ucred *cred, struct fileglob *fg) 86 mac_file_label_destroy(struct fileglob *fg) 103 mac_file_check_dup(struct ucred *cred, struct fileglob *fg, int newfd) 112 mac_file_check_fcntl(struct ucred *cred, struct fileglob *fg, int cmd, 122 mac_file_check_ioctl(struct ucred *cred, struct fileglob *fg, u_int cmd) 131 mac_file_check_inherit(struct ucred *cred, struct fileglob *fg) 140 mac_file_check_receive(struct ucred *cred, struct fileglob *fg) 149 mac_file_check_get_offset(struct ucred *cred, struct fileglob *fg) 158 mac_file_check_change_offset(struct ucred *cred, struct fileglob *f [all...] |
H A D | mac_framework.h | 91 struct fileglob; 187 int mac_file_check_change_offset(kauth_cred_t cred, struct fileglob *fg); 189 int mac_file_check_dup(kauth_cred_t cred, struct fileglob *fg, int newfd); 190 int mac_file_check_fcntl(kauth_cred_t cred, struct fileglob *fg, int cmd, 192 int mac_file_check_get(kauth_cred_t cred, struct fileglob *fg, 194 int mac_file_check_get_offset(kauth_cred_t cred, struct fileglob *fg); 195 int mac_file_check_inherit(kauth_cred_t cred, struct fileglob *fg); 196 int mac_file_check_ioctl(kauth_cred_t cred, struct fileglob *fg, 198 int mac_file_check_lock(kauth_cred_t cred, struct fileglob *fg, int op, 200 int mac_file_check_mmap(kauth_cred_t cred, struct fileglob *f [all...] |
H A D | mac_policy.h | 93 struct fileglob; 707 struct fileglob *fg, 731 duplicate the fileglob structure represented by fg and as file 739 struct fileglob *fg, 759 struct fileglob *fg, 779 struct fileglob *fg, 797 struct fileglob *fg, 807 inherit the fileglob structure represented by fg. 814 struct fileglob *fg, 837 struct fileglob *f [all...] |
/xnu-2782.1.97/bsd/sys/ |
H A D | file_internal.h | 94 struct fileglob * f_fglob; 151 #define FG_TERM 0x01 /* the fileglob is terminating .. */ 154 #define FG_RMMSGQ 0x08 /* the fileglob is being removed from msgqueue */ 155 #define FG_WRMMSGQ 0x10 /* wait for the fileglob to be removed from msgqueue */ 156 #define FG_PORTMADE 0x20 /* a port was at some point created for this fileglob */ 161 struct fileglob { struct 162 LIST_ENTRY(fileglob) f_msglist;/* list of active files */ 180 int (*fo_close) (struct fileglob *fg, vfs_context_t ctx); 195 LIST_HEAD(fmsglist, fileglob); 211 int fo_close(struct fileglob *f [all...] |
H A D | codesign.h | 193 struct fileglob; 217 const char * csfg_get_teamid(struct fileglob *); 218 int csfg_get_path(struct fileglob *, char *, int *); 219 int csfg_get_platform_binary(struct fileglob *);
|
/xnu-2782.1.97/bsd/kern/ |
H A D | uipc_usrreq.c | 169 static void unp_scan(struct mbuf *, void (*)(struct fileglob *)); 170 static void unp_mark(struct fileglob *); 171 static void unp_discard(struct fileglob *); 172 static void unp_discard_fdlocked(struct fileglob *, proc_t); 1870 struct fileglob **rp = (struct fileglob **)(cm + 1); 1873 struct fileglob *fg; 1978 struct fileglob **rp; 2008 rp = (struct fileglob **)(cm + 1); 2010 /* On K64 we need to walk backwards because a fileglob * i [all...] |
H A D | kern_cs.c | 615 * fileglob fg 618 csfg_get_platform_binary(struct fileglob *fg) 655 * the teamid for the fileglob fg 658 csfg_get_teamid(struct fileglob *fg) 702 * When calling this, the fileglob 704 * a reference on the fileglob or fileproc 707 csfg_get_path(struct fileglob *fg, char *path, int *len)
|
H A D | sys_socket.c | 97 static int soo_close(struct fileglob *, vfs_context_t ctx); 421 soo_close(struct fileglob *fg, __unused vfs_context_t ctx)
|
H A D | kern_descrip.c | 137 void fg_free(struct fileglob *fg); 139 void fileport_releasefg(struct fileglob *fg); 917 struct fileglob *fg = fp->f_fglob; 4399 struct fileglob *fg; 4438 MALLOC_ZONE(fg, struct fileglob *, sizeof(struct fileglob), M_FILEGLOB, M_WAITOK); 4445 bzero(fg, sizeof(struct fileglob)); 4486 * drop the credential reference, if the fileglob has one, and 4489 * Parameters: fg Pointer to fileglob to be 4495 fg_free(struct fileglob *f [all...] |
H A D | posix_sem.c | 177 static int psem_closefile (struct fileglob *fp, vfs_context_t ctx); 1032 psem_closefile(struct fileglob *fg, __unused vfs_context_t ctx)
|
H A D | posix_shm.c | 182 static int pshm_closefile (struct fileglob *fg, vfs_context_t ctx); 1199 pshm_closefile(struct fileglob *fg, __unused vfs_context_t ctx)
|
H A D | kern_malloc.c | 275 "fileglob", /* 99 M_FILEGLOB */ 479 { SOS(fileglob), KMZ_CREATEZONE, TRUE }, /* 99 M_FILEGLOB */
|
H A D | sys_pipe.c | 164 static int pipe_close(struct fileglob *fg, vfs_context_t ctx); 1240 pipe_close(struct fileglob *fg, __unused vfs_context_t ctx)
|
H A D | proc_info.c | 431 __unused struct fileglob *fg, void *arg) 445 proc_fileport_fdtype(mach_port_name_t name, struct fileglob *fg, void *arg) 1950 struct fileglob *fg, void *arg)
|
H A D | kern_event.c | 127 static int kqueue_close(struct fileglob *fg, vfs_context_t ctx); 1401 * assume we inherit a use count on the kq fileglob. 2402 kqueue_close(struct fileglob *fg, __unused vfs_context_t ctx)
|
H A D | kern_exec.c | 3820 struct fileglob *fg = fp->f_fglob;
|
/xnu-2782.1.97/bsd/dev/dtrace/scripts/ |
H A D | io.d | 136 * the fds[] array or a translated fileglob *. Note that the various open 197 translator fileinfo_t < struct fileglob *F > { 242 (struct fileglob *)(curproc->p_fd->fd_ofiles[fd]->f_fglob) : 243 (struct fileglob *)NULL);
|
/xnu-2782.1.97/bsd/miscfs/fifofs/ |
H A D | fifo_vnops.c | 372 struct fileglob filefg; 398 struct fileglob filefg;
|
/xnu-2782.1.97/bsd/vfs/ |
H A D | vfs_vnops.c | 120 static int vn_closefile(struct fileglob *fp, vfs_context_t ctx); 908 vn_offset_lock(struct fileglob *fg) 921 vn_offset_unlock(struct fileglob *fg) 1477 vn_closefile(struct fileglob *fg, vfs_context_t ctx)
|
H A D | vfs_fsevents.c | 1818 fseventsf_close(struct fileglob *fg, __unused vfs_context_t ctx)
|