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

/darwin-on-arm/xnu/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.h187 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 *fg,
202 void mac_file_check_mmap_downgrade(kauth_cred_t cred, struct fileglob *fg,
[all...]
H A Dmac_policy.h664 @param fg Fileglob structure
665 @param label Policy label for fg
668 change the offset of the file represented by fg.
675 struct fileglob *fg,
694 @param fg Fileglob structure
695 @param label Policy label for fg
699 duplicate the fileglob structure represented by fg and as file
707 struct fileglob *fg,
714 @param fg Fileglob structure
715 @param label Policy label for fg
[all...]
/darwin-on-arm/xnu/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...]
/darwin-on-arm/xnu/bsd/kern/
H A Duipc_usrreq.c1825 struct fileglob *fg; local
1836 fg = *rp;
1837 unp_discard_fdlocked(fg, p);
1859 fg = *rp;
1861 unp_discard_fdlocked(fg, p);
1867 fg = rp[i];
1874 fp->f_fglob = fg;
1875 fg_removeuipc(fg);
1993 struct fileglob *fg, *nextfg; local
2013 for (fg
2268 unp_mark(struct fileglob *fg) argument
2285 unp_discard(struct fileglob *fg) argument
2296 unp_discard_fdlocked(struct fileglob *fg, proc_t p) argument
[all...]
H A Dkern_descrip.c133 void fg_free(struct fileglob *fg);
135 void fileport_releasefg(struct fileglob *fg);
141 static int closef_finish(struct fileproc *fp, struct fileglob *fg, proc_t p, vfs_context_t ctx);
821 struct fileglob *fg = fp->f_fglob; local
823 lck_mtx_lock_spin(&fg->fg_lock);
825 fg->fg_lflags |= FG_NOSIGPIPE;
827 fg->fg_lflags &= FG_NOSIGPIPE;
828 lck_mtx_unlock(&fg->fg_lock);
3973 struct fileglob *fg; local
4012 MALLOC_ZONE(fg, struc
4069 fg_free(struct fileglob *fg) argument
4498 closef_finish(struct fileproc *fp, struct fileglob *fg, proc_t p, vfs_context_t ctx) argument
4543 closef_locked(struct fileproc *fp, struct fileglob *fg, proc_t p) argument
4806 struct fileglob *fg = NULL; local
4867 fileport_releasefg(struct fileglob *fg) argument
4894 struct fileglob *fg; local
5066 struct fileglob *fg; local
5100 struct fileglob *fg; local
5121 fg_insertuipc(struct fileglob * fg) argument
5171 fg_removeuipc(struct fileglob * fg) argument
5316 fo_close(struct fileglob *fg, vfs_context_t ctx) argument
[all...]
H A Dsys_socket.c471 soo_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
476 sp = (struct socket *)fg->fg_data;
477 fg->fg_data = NULL;
H A Dproc_info.c370 __unused struct fileglob *fg, void *arg)
384 proc_fileport_fdtype(mach_port_name_t name, struct fileglob *fg, void *arg) argument
389 ffa->ffa_pfi->proc_fdtype = fg->fg_type;
1581 struct fileglob *fg, void *arg)
1588 fp->f_fglob = fg;
1594 if (fg->fg_type != DTYPE_VNODE) {
1598 vp = (struct vnode *)fg->fg_data;
1606 if (fg->fg_type != DTYPE_SOCKET) {
1610 so = (socket_t)fg->fg_data;
1618 if (fg
369 proc_fileport_count(__unused mach_port_name_t name, __unused struct fileglob *fg, void *arg) argument
1580 proc_fileport_info(__unused mach_port_name_t name, struct fileglob *fg, void *arg) argument
[all...]
H A Dsys_pipe.c165 static int pipe_close(struct fileglob *fg, vfs_context_t ctx);
1241 pipe_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
1246 cpipe = (struct pipe *)fg->fg_data;
1247 fg->fg_data = NULL;
H A Dposix_sem.c1042 psem_closefile(struct fileglob *fg, __unused vfs_context_t ctx) argument
1050 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);
1190 pshm_closefile(struct fileglob *fg, __unused vfs_context_t ctx) argument
1197 if ((pnode = (struct pshmnode *)fg->fg_data) != NULL) {
H A Dkern_exec.c3335 struct fileglob *fg = fp->f_fglob; local
3337 fg->fg_flag = FREAD;
3338 fg->fg_type = DTYPE_VNODE;
3339 fg->fg_ops = &vnops;
3340 fg->fg_data = nd1.ni_vp;
H A Dkern_event.c122 static int kqueue_close(struct fileglob *fg, vfs_context_t ctx);
2260 kqueue_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
2262 struct kqueue *kq = (struct kqueue *)fg->fg_data;
2265 fg->fg_data = NULL;
/darwin-on-arm/xnu/bsd/sys/
H A Dfile_internal.h159 int (*fo_close) (struct fileglob *fg, vfs_context_t ctx);
188 int fo_close(struct fileglob *fg, vfs_context_t ctx);
211 int closef_locked(struct fileproc *fp, struct fileglob *fg, struct proc *p);
212 void fg_insertuipc(struct fileglob * fg);
213 void fg_removeuipc(struct fileglob * fg);
/darwin-on-arm/xnu/bsd/netat/
H A Dsys_dep.c257 int atalk_closeref(fg, grefp)
258 struct fileglob *fg;
261 if ((*grefp = (gref_t *)fg->fg_data)) {
262 fg->fg_data = 0;
H A Dsys_glue.c286 struct fileglob *fg,
292 if ((err = atalk_closeref(fg, &gref)) == 0) {
285 _ATclose( struct fileglob *fg, __unused vfs_context_t ctx) argument
/darwin-on-arm/xnu/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;
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_vnops.c1408 vn_closefile(struct fileglob *fg, vfs_context_t ctx) argument
1410 struct vnode *vp = (struct vnode *)fg->fg_data;
1416 if ((fg->fg_flag & FHASLOCK) && fg->fg_type == DTYPE_VNODE) {
1422 (void)VNOP_ADVLOCK(vp, (caddr_t)fg, F_UNLCK, &lf, F_FLOCK, ctx);
1424 error = vn_close(vp, fg->fg_flag, ctx);
H A Dvfs_fsevents.c1746 fseventsf_close(struct fileglob *fg, __unused vfs_context_t ctx) argument
1748 fsevent_handle *fseh = (struct fsevent_handle *)fg->fg_data;
1757 fg->fg_data = NULL;

Completed in 201 milliseconds