Searched refs:fg (Results 1 - 19 of 19) sorted by relevance

/xnu-2422.115.4/security/
H A Dmac_file.c64 mac_file_label_init(struct fileglob *fg) argument
67 fg->fg_label = mac_file_label_alloc();
79 mac_file_label_associate(struct ucred *cred, struct fileglob *fg) argument
82 MAC_PERFORM(file_label_associate, cred, fg, fg->fg_label);
86 mac_file_label_destroy(struct fileglob *fg) argument
89 mac_file_label_free(fg->fg_label);
90 fg->fg_label = NULL;
103 mac_file_check_dup(struct ucred *cred, struct fileglob *fg, int newfd) argument
107 MAC_CHECK(file_check_dup, cred, fg, f
112 mac_file_check_fcntl(struct ucred *cred, struct fileglob *fg, int cmd, user_long_t arg) argument
122 mac_file_check_ioctl(struct ucred *cred, struct fileglob *fg, u_int cmd) argument
131 mac_file_check_inherit(struct ucred *cred, struct fileglob *fg) argument
140 mac_file_check_receive(struct ucred *cred, struct fileglob *fg) argument
149 mac_file_check_get_offset(struct ucred *cred, struct fileglob *fg) argument
158 mac_file_check_change_offset(struct ucred *cred, struct fileglob *fg) argument
167 mac_file_check_get(struct ucred *cred, struct fileglob *fg, char *elements, int len) argument
177 mac_file_check_set(struct ucred *cred, struct fileglob *fg, char *buf, int buflen) argument
187 mac_file_check_lock(struct ucred *cred, struct fileglob *fg, int op, struct flock *fl) argument
206 mac_file_check_mmap(struct ucred *cred, struct fileglob *fg, int prot, int flags, int *maxprot) argument
221 mac_file_check_mmap_downgrade(struct ucred *cred, struct fileglob *fg, int *prot) argument
[all...]
H A Dmac_framework.h192 int mac_file_check_change_offset(kauth_cred_t cred, struct fileglob *fg);
194 int mac_file_check_dup(kauth_cred_t cred, struct fileglob *fg, int newfd);
195 int mac_file_check_fcntl(kauth_cred_t cred, struct fileglob *fg, int cmd,
197 int mac_file_check_get(kauth_cred_t cred, struct fileglob *fg,
199 int mac_file_check_get_offset(kauth_cred_t cred, struct fileglob *fg);
200 int mac_file_check_inherit(kauth_cred_t cred, struct fileglob *fg);
201 int mac_file_check_ioctl(kauth_cred_t cred, struct fileglob *fg,
203 int mac_file_check_lock(kauth_cred_t cred, struct fileglob *fg, int op,
205 int mac_file_check_mmap(kauth_cred_t cred, struct fileglob *fg,
207 void mac_file_check_mmap_downgrade(kauth_cred_t cred, struct fileglob *fg,
[all...]
H A Dmac_policy.h686 @param fg Fileglob structure
687 @param label Policy label for fg
690 change the offset of the file represented by fg.
697 struct fileglob *fg,
716 @param fg Fileglob structure
717 @param label Policy label for fg
721 duplicate the fileglob structure represented by fg and as file
729 struct fileglob *fg,
736 @param fg Fileglob structure
737 @param label Policy label for fg
[all...]
/xnu-2422.115.4/osfmk/kern/
H A Dipc_misc.c47 * Parameters: fg A fileglob.
53 fileport_alloc(struct fileglob *fg) argument
64 ipc_kobject_set(fileport, (ipc_kobject_t)fg, IKOT_FILEPORT);
96 struct fileglob *fg = NULL; local
103 fg = (void *)port->ip_kobject;
106 return fg;
124 struct fileglob *fg = NULL; local
131 fg = (struct fileglob *)port->ip_kobject;
137 if (fg == NULL)
143 fileport_releasefg(fg);
168 struct fileglob *fg; local
[all...]
/xnu-2422.115.4/bsd/kern/
H A Duipc_usrreq.c1864 struct fileglob *fg; local
1875 fg = *rp;
1876 unp_discard_fdlocked(fg, p);
1898 fg = *rp;
1900 unp_discard_fdlocked(fg, p);
1906 fg = rp[i];
1911 fp->f_fglob = fg;
1912 fg_removeuipc(fg);
2035 struct fileglob *fg, *nextfg; local
2055 for (fg
2311 unp_mark(struct fileglob *fg) argument
2328 unp_discard(struct fileglob *fg) argument
2339 unp_discard_fdlocked(struct fileglob *fg, proc_t p) argument
[all...]
H A Dkern_descrip.c135 void fg_free(struct fileglob *fg);
137 void fileport_releasefg(struct fileglob *fg);
913 struct fileglob *fg = fp->f_fglob; local
915 lck_mtx_lock_spin(&fg->fg_lock);
917 fg->fg_lflags |= FG_NOSIGPIPE;
919 fg->fg_lflags &= FG_NOSIGPIPE;
920 lck_mtx_unlock(&fg->fg_lock);
4140 * "uninitialized" ops -- ensure fg->fg_ops->fo_type always exists
4200 struct fileglob *fg; local
4239 MALLOC_ZONE(fg, struc
4296 fg_free(struct fileglob *fg) argument
4722 closef_locked(struct fileproc *fp, struct fileglob *fg, proc_t p) argument
4992 struct fileglob *fg = NULL; local
5060 fileport_releasefg(struct fileglob *fg) argument
5087 struct fileglob *fg; local
5264 struct fileglob *fg; local
5298 struct fileglob *fg; local
5319 fg_insertuipc(struct fileglob * fg) argument
5369 fg_removeuipc(struct fileglob * fg) argument
5514 fo_close(struct fileglob *fg, vfs_context_t ctx) argument
[all...]
H A Dsys_socket.c421 soo_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
426 sp = (struct socket *)fg->fg_data;
427 fg->fg_data = NULL;
H A Dproc_info.c393 __unused struct fileglob *fg, void *arg)
407 proc_fileport_fdtype(mach_port_name_t name, struct fileglob *fg, void *arg) argument
412 file_type_t fdtype = FILEGLOB_DTYPE(fg);
1636 struct fileglob *fg, void *arg)
1643 fp->f_fglob = fg;
1649 if (FILEGLOB_DTYPE(fg) != DTYPE_VNODE) {
1653 vp = (struct vnode *)fg->fg_data;
1661 if (FILEGLOB_DTYPE(fg) != DTYPE_SOCKET) {
1665 so = (socket_t)fg->fg_data;
1673 if (FILEGLOB_DTYPE(fg) !
392 proc_fileport_count(__unused mach_port_name_t name, __unused struct fileglob *fg, void *arg) argument
1635 proc_fileport_info(__unused mach_port_name_t name, struct fileglob *fg, void *arg) argument
[all...]
H A Dsys_pipe.c164 static int pipe_close(struct fileglob *fg, vfs_context_t ctx);
1240 pipe_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
1245 cpipe = (struct pipe *)fg->fg_data;
1246 fg->fg_data = NULL;
H A Dposix_sem.c1050 psem_closefile(struct fileglob *fg, __unused vfs_context_t ctx) argument
1058 error = psem_close(((struct psemnode *)fg->fg_data), fg->fg_flag);
H A Dposix_shm.c182 static int pshm_closefile (struct fileglob *fg, vfs_context_t ctx);
1203 pshm_closefile(struct fileglob *fg, __unused vfs_context_t ctx) argument
1210 if ((pnode = (struct pshmnode *)fg->fg_data) != NULL) {
H A Dkern_event.c127 static int kqueue_close(struct fileglob *fg, vfs_context_t ctx);
2395 kqueue_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
2397 struct kqueue *kq = (struct kqueue *)fg->fg_data;
2400 fg->fg_data = NULL;
H A Dkern_exec.c3604 struct fileglob *fg = fp->f_fglob; local
3606 fg->fg_flag = flag;
3607 fg->fg_ops = &vnops;
3608 fg->fg_data = nd1.ni_vp;
/xnu-2422.115.4/bsd/sys/
H A Dfile_internal.h178 int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
198 #define FILEGLOB_DTYPE(fg) ((const file_type_t)((fg)->fg_ops->fo_type))
208 int fo_close(struct fileglob *fg, vfs_context_t ctx);
234 int closef_locked(struct fileproc *fp, struct fileglob *fg, struct proc *p);
242 void fg_insertuipc(struct fileglob * fg);
243 void fg_removeuipc(struct fileglob * fg);
/xnu-2422.115.4/osfmk/console/panic_ui/
H A Dqtif2kraw.c51 "\t-fg <color>\tForeground color of font used for panic information in\n"
89 static unsigned char fg, bg; variable
129 else if (strcmp(argv[next], "-fg") == 0) // foreground color in 24 bits
157 fg = findIndexNearMatch(fg24);
289 fwrite(&fg, sizeof(fg), 1, ostream);
H A Dgenimage.c97 "\t-fg <color>\tForeground color of font used for panic information in\n"
137 on dark gray. This can be changed by using the -fg and/or -bg options to\n\
180 static unsigned char fg, bg; variable
226 else if (strcmp(argv[next], "-fg") == 0) // foreground color in 24 bits
286 fg = findIndexNearMatch(fg24);
583 fwrite(&fg, sizeof(fg), 1, ostream);
642 fprintf( out_stream, "0x%02x, ", fg); /* font foreground color: indexed */
1611 fonts[row][i][j] = fg;
/xnu-2422.115.4/bsd/vfs/
H A Dvfs_vnops.c1419 vn_closefile(struct fileglob *fg, vfs_context_t ctx) argument
1421 struct vnode *vp = (struct vnode *)fg->fg_data;
1427 if ((fg->fg_flag & FHASLOCK) &&
1428 FILEGLOB_DTYPE(fg) == DTYPE_VNODE) {
1434 (void)VNOP_ADVLOCK(vp, (caddr_t)fg, F_UNLCK, &lf, F_FLOCK, ctx, NULL);
1436 error = vn_close(vp, fg->fg_flag, ctx);
H A Dvfs_fsevents.c1814 fseventsf_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
1816 fsevent_handle *fseh = (struct fsevent_handle *)fg->fg_data;
1825 fg->fg_data = NULL;
/xnu-2422.115.4/tools/lldbmacros/
H A Dnet.py524 fg = Cast(fp.f_fglob, 'fileglob *')
525 if (int(fg.fg_ops.fo_type) == 2):
531 if (fg.fg_data != 0):
532 out_string += GetSocket(unsigned(fg.fg_data))
557 fg = Cast(fp.f_fglob, 'fileglob *')
558 if (int(fg.fg_ops.fo_type) == 2):
564 if (fg.fg_data != 0):
565 out_string += GetSocket(unsigned(fg.fg_data))

Completed in 195 milliseconds