| /illumos-gate/usr/src/lib/libproc/common/ |
| H A D | Pfdinfo.c | 55 fd_info_t *fip, *next = NULL; in Pfd2info() local 57 for (fip = list_head(&P->fd_head); fip != NULL; in Pfd2info() 58 fip = list_next(&P->fd_head, fip)) { in Pfd2info() 59 if (fip->fd_info == NULL) in Pfd2info() 62 if (fip->fd_info->pr_fd == fd) { in Pfd2info() 63 return (fip); in Pfd2info() 65 if (fip->fd_info->pr_fd < fd) { in Pfd2info() 70 next = fip; in Pfd2info() 71 if ((fip = calloc(1, sizeof (*fip))) == NULL) in Pfd2info() 74 list_insert_before(&P->fd_head, next, fip); in Pfd2info() [all …]
|
| /illumos-gate/usr/src/uts/common/os/ |
| H A D | fio.c | 260 fd_find(uf_info_t *fip, int minfd) in fd_find() argument 264 ASSERT(MUTEX_HELD(&fip->fi_lock)); in fd_find() 265 ASSERT((fip->fi_nfiles & (fip->fi_nfiles + 1)) == 0); in fd_find() 267 for (fd = minfd; (uint_t)fd < fip->fi_nfiles; fd |= fd + 1) { in fd_find() 269 if (fip->fi_list[fd].uf_alloc == size) in fd_find() 272 ralloc += fip->fi_list[fd + size].uf_alloc; in fd_find() 273 if (fip->fi_list[fd].uf_alloc == ralloc + size) { in fd_find() 284 fd_reserve(uf_info_t *fip, int fd, int incr) in fd_reserve() argument 287 uf_entry_t *ufp = &fip->fi_list[fd]; in fd_reserve() 289 ASSERT((uint_t)fd < fip->fi_nfiles); in fd_reserve() [all …]
|
| H A D | fork.c | 683 uf_info_t *fip = P_FINFO(cp); in fork_fail() local 685 fcnt_add(fip, -1); in fork_fail() 697 kmem_free(fip->fi_list, fip->fi_nfiles * sizeof (uf_entry_t)); in fork_fail()
|
| /illumos-gate/usr/src/tools/smatch/src/validation/backend/ |
| H A D | function-ptr.c | 8 …b)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void), int (*fip)(int *), int (*fim)… 9 …b)(unsigned char), int (*fi)(int), int (*fl)(long), int (*fv)(void), int (*fip)(int *), int (*fim)… in arg() 26 fip(p); in arg() 27 fip((void*)0); in arg() 28 fip(ipval); in arg() 29 fip(&ival); in arg() 30 fip(array); in arg() 51 extern int (*fip)(int *); 74 fip(p); in glb() 75 fip((void*)0); in glb() [all …]
|
| H A D | degenerate-ptr.c | 6 extern int fip(int *); 16 fip(array); in call()
|
| /illumos-gate/usr/src/cmd/fs.d/udfs/fsck/ |
| H A D | pass1.c | 98 struct fileinfo *fip; in pass1() local 105 fip = &inphead[0]; /* The root */ in pass1() 106 fip->fe_lseen = 0; /* Didn't get here through directory */ in pass1() 108 while (fip->fe_block) { in pass1() 111 markbusy(fip->fe_block, fip->fe_len); in pass1() 112 bp = getfilentry(fip->fe_block, fip->fe_len); in pass1() 115 fip->fe_block); in pass1() 119 fip->fe_lcount = fp->fe_lcount; in pass1() 120 fip->fe_type = fp->fe_icb_tag.itag_ftype; in pass1() 124 if (fip->fe_block == rootblock && in pass1() [all …]
|
| /illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
| H A D | free.c | 44 LDAPFiltInfo *fip, *nextfip; in ldap_getfilter_free() local 51 for ( fip = flp->lfl_ilist; fip != NULL; fip = nextfip ) { in ldap_getfilter_free() 52 nextfip = fip->lfi_next; in ldap_getfilter_free() 53 NSLDAPI_FREE( fip->lfi_filter ); in ldap_getfilter_free() 54 NSLDAPI_FREE( fip->lfi_desc ); in ldap_getfilter_free() 55 NSLDAPI_FREE( fip ); in ldap_getfilter_free()
|
| H A D | getfilter.c | 104 LDAPFiltInfo *fip, *nextfip; in ldap_init_getfilter_buf() local 116 fip = NULL; in ldap_init_getfilter_buf() 158 fip = NULL; in ldap_init_getfilter_buf() 173 if ( fip == NULL ) { /* first one */ in ldap_init_getfilter_buf() 176 fip->lfi_next = nextfip; in ldap_init_getfilter_buf() 178 fip = nextfip; in ldap_init_getfilter_buf() 303 LDAPFiltInfo *fip; in ldap_getnextfilter() local 305 if ( lfdp == NULL || ( fip = lfdp->lfd_curfip ) == NULL ) { in ldap_getnextfilter() 309 lfdp->lfd_curfip = fip->lfi_next; in ldap_getnextfilter() 311 ldap_build_filter( lfdp->lfd_filter, LDAP_FILT_MAXSIZ, fip->lfi_filter, in ldap_getnextfilter() [all …]
|
| H A D | getoption.c | 33 static int nsldapi_get_feature_info( LDAPAPIFeatureInfo *fip ); 424 nsldapi_get_feature_info( LDAPAPIFeatureInfo *fip ) in nsldapi_get_feature_info() argument 428 if ( fip == NULL || fip->ldapaif_name == NULL ) { in nsldapi_get_feature_info() 432 if ( fip->ldapaif_info_version != LDAP_FEATURE_INFO_VERSION ) { in nsldapi_get_feature_info() 433 fip->ldapaif_info_version = LDAP_FEATURE_INFO_VERSION; in nsldapi_get_feature_info() 438 if ( strcmp( fip->ldapaif_name, in nsldapi_get_feature_info() 440 fip->ldapaif_version = in nsldapi_get_feature_info()
|
| /illumos-gate/usr/src/uts/common/exec/elf/ |
| H A D | elf_notes.c | 82 uf_info_t *fip; in setup_note_header() local 86 fip = P_FINFO(p); in setup_note_header() 88 mutex_enter(&fip->fi_lock); in setup_note_header() 89 for (fd = 0; fd < fip->fi_nfiles; fd++) { in setup_note_header() 90 UF_ENTER(ufp, fip, fd); in setup_note_header() 95 mutex_exit(&fip->fi_lock); in setup_note_header() 259 uf_info_t *fip; in write_elfnotes() local 398 fip = P_FINFO(p); in write_elfnotes() 400 for (fd = 0; fd < fip->fi_nfiles; fd++) { in write_elfnotes() 409 mutex_enter(&fip->fi_lock); in write_elfnotes() [all …]
|
| /illumos-gate/usr/src/uts/common/sys/ |
| H A D | user.h | 176 #define UF_ENTER(ufp, fip, fd) \ argument 178 uf_entry_t *_flist = (fip)->fi_list; \ 180 ASSERT((fd) < (fip)->fi_nfiles); \ 182 if (_flist == (fip)->fi_list) \
|
| /illumos-gate/usr/src/common/ctf/ |
| H A D | ctf_lookup.c | 244 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) in ctf_func_info() argument 281 fip->ctc_return = *dp++; in ctf_func_info() 282 fip->ctc_argc = n; in ctf_func_info() 283 fip->ctc_flags = 0; in ctf_func_info() 286 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_func_info() 287 fip->ctc_argc--; in ctf_func_info()
|
| H A D | ctf_types.c | 1118 ctf_func_info_by_id(ctf_file_t *fp, ctf_id_t type, ctf_funcinfo_t *fip) in ctf_func_info_by_id() argument 1132 fip->ctc_return = tp->ctt_type; in ctf_func_info_by_id() 1134 fip->ctc_argc = nargs; in ctf_func_info_by_id() 1135 fip->ctc_flags = 0; in ctf_func_info_by_id() 1143 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_func_info_by_id() 1144 fip->ctc_argc--; in ctf_func_info_by_id()
|
| H A D | ctf_create.c | 1997 ctf_add_function(ctf_file_t *fp, ulong_t idx, const ctf_funcinfo_t *fip, in ctf_add_function() argument 2028 if (ctf_lookup_by_id(&afp, fip->ctc_return) == NULL) in ctf_add_function() 2031 for (i = 0; i < fip->ctc_argc; i++) { in ctf_add_function() 2040 dsd->dsd_nargs = fip->ctc_argc; in ctf_add_function() 2041 if (fip->ctc_flags & CTF_FUNC_VARARG) in ctf_add_function() 2049 bcopy(argc, dsd->dsd_argc, sizeof (ctf_id_t) * fip->ctc_argc); in ctf_add_function() 2050 if (fip->ctc_flags & CTF_FUNC_VARARG) in ctf_add_function() 2051 dsd->dsd_argc[fip->ctc_argc] = 0; in ctf_add_function() 2054 dsd->dsd_tid = fip->ctc_return; in ctf_add_function()
|
| /illumos-gate/usr/src/cmd/filesync/ |
| H A D | anal.c | 833 struct fileinfo *fip, *lip; in has_other_links() local 835 fip = &fp->f_info[srcdst]; in has_other_links() 838 if (fip->f_nlink < 2) in has_other_links() 860 if (lip->f_d_maj != fip->f_d_maj) in has_other_links() 862 if (lip->f_d_min != fip->f_d_min) in has_other_links() 864 if (lip->f_ino != fip->f_ino) in has_other_links()
|
| /illumos-gate/usr/src/uts/common/syscall/ |
| H A D | utssys.c | 348 uf_info_t *fip; in dofusers() local 381 fip = P_FINFO(prp); in dofusers() 382 mutex_enter(&fip->fi_lock); in dofusers() 388 for (i = 0; i < fip->fi_nfiles; i++) { in dofusers() 392 UF_ENTER(ufp, fip, i); in dofusers() 460 mutex_exit(&fip->fi_lock); in dofusers()
|
| H A D | poll.c | 2564 pollcacheclean(fpollinfo_t *fip, int fd) in pollcacheclean() argument 2568 fpip = fip; in pollcacheclean() 2764 uf_info_t *fip = P_FINFO(curproc); in pollcheckphlist() local 2768 mutex_enter(&fip->fi_lock); in pollcheckphlist() 2769 for (i = 0; i < fip->fi_nfiles; i++) { in pollcheckphlist() 2770 UF_ENTER(ufp, fip, i); in pollcheckphlist() 2784 mutex_exit(&fip->fi_lock); in pollcheckphlist()
|
| /illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/ |
| H A D | mkfs.c | 625 struct file_id *fip; in volseqinit() local 1015 fip = (struct file_id *)&buf; in volseqinit() 1016 tp = &fip->fid_tag; in volseqinit() 1023 fip->fid_ver = 1; in volseqinit() 1024 fip->fid_flags = FID_DIR | FID_PARENT; in volseqinit() 1025 fip->fid_idlen = 0; in volseqinit() 1026 fip->fid_iulen = 0; in volseqinit() 1027 fip->fid_icb.lad_ext_len = sectorsize; /* rootfelen; */ in volseqinit() 1028 fip->fid_icb.lad_ext_loc = nextlogblock - 1; in volseqinit() 1029 fip->fid_icb.lad_ext_prn = 0; in volseqinit()
|
| /illumos-gate/usr/src/lib/libctf/common/ |
| H A D | ctf_dwarf.c | 2227 ctf_dwarf_function_count(ctf_cu_t *cup, Dwarf_Die die, ctf_funcinfo_t *fip, in ctf_dwarf_function_count() argument 2262 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_dwarf_function_count() 2264 fip->ctc_argc++; in ctf_dwarf_function_count() 2267 fip->ctc_argc++; in ctf_dwarf_function_count() 2269 fip->ctc_argc > 0) { in ctf_dwarf_function_count() 2270 fip->ctc_flags |= CTF_FUNC_VARARG; in ctf_dwarf_function_count() 2281 ctf_dwarf_convert_fargs(ctf_cu_t *cup, Dwarf_Die die, ctf_funcinfo_t *fip, in ctf_dwarf_convert_fargs() argument 2314 if (i == fip->ctc_argc) in ctf_dwarf_convert_fargs() 2894 ctf_funcinfo_t fip; in ctf_dwarf_duplicate_func() local 2897 if (ctf_func_info(cup->cu_ctfp, matchidx, &fip) == CTF_ERR) { in ctf_dwarf_duplicate_func() [all …]
|
| H A D | ctf_merge.c | 1075 ctf_merge_add_function(ctf_merge_input_t *cmi, ctf_funcinfo_t *fip, ulong_t idx, in ctf_merge_add_function() argument 1081 sizeof (ctf_id_t) * fip->ctc_argc); in ctf_merge_add_function() 1087 fmap->cmf_rtid = fip->ctc_return; in ctf_merge_add_function() 1088 fmap->cmf_flags = fip->ctc_flags; in ctf_merge_add_function() 1089 fmap->cmf_argc = fip->ctc_argc; in ctf_merge_add_function() 1100 sizeof (ctf_id_t) * fip->ctc_argc); in ctf_merge_add_function()
|
| /illumos-gate/usr/src/tools/smatch/src/smatch_data/ |
| H A D | kernel.implicit_dependencies.no_structs | 243 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 244 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 266 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 267 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 268 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 269 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 276 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 277 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 278 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… 279 …fip, (struct fregs_state)->fcs, (struct fregs_state)->foo, (struct fregs_state)->fos, (struct freg… [all …]
|
| /illumos-gate/usr/src/uts/common/fs/proc/ |
| H A D | prvnops.c | 4434 uf_info_t *fip; in pr_lookup_pathdir() local 4482 fip = P_FINFO(p); in pr_lookup_pathdir() 4510 mutex_enter(&fip->fi_lock); in pr_lookup_pathdir() 4511 idx = fip->fi_nfiles + 4; in pr_lookup_pathdir() 4512 mutex_exit(&fip->fi_lock); in pr_lookup_pathdir() 4567 mutex_enter(&fip->fi_lock); in pr_lookup_pathdir() 4568 if (fd < fip->fi_nfiles) { in pr_lookup_pathdir() 4569 UF_ENTER(ufp, fip, fd); in pr_lookup_pathdir() 4576 mutex_exit(&fip->fi_lock); in pr_lookup_pathdir() 5594 uf_info_t *fip; in pr_readdir_fdlist() local [all …]
|
| /illumos-gate/usr/src/test/util-tests/tests/ctf/ |
| H A D | check-common.c | 106 ctf_funcinfo_t *fip, void *arg) in ctftest_lookup_function_cb() argument 113 *cfc->cfc_fip = *fip; in ctftest_lookup_function_cb() 124 ctf_funcinfo_t *fip) in ctftest_lookup_function() argument 131 cfc.cfc_fip = fip; in ctftest_lookup_function()
|
| /illumos-gate/usr/src/cmd/allocate/ |
| H A D | allocate3.c | 249 struct file_info *fip) in print_dev_attrs() argument 270 if ((fip->fi_message != NULL) && in print_dev_attrs() 271 (strcmp(fip->fi_message, DAOPT_CLASS) == 0)) in print_dev_attrs() 273 else if (DEV_ERRORED(fip->fi_stat)) in print_dev_attrs() 275 else if (!DEV_ALLOCATED(fip->fi_stat)) in print_dev_attrs() 278 (void) printf("owner=%u%s", fip->fi_stat.st_uid, in print_dev_attrs()
|
| /illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
| H A D | av1394_isoch_xmit.c | 955 av1394_it_frame_info_t *fip; in av1394_it_add_frames() local 977 fip = &itp->it_frame_info[prev_full]; in av1394_it_add_frames() 978 syt = *(uint16_t *)fip->fi_ts_off; in av1394_it_add_frames() 979 syt = av1394_it_ts_syt_inc(syt, fip->fi_ncycs); in av1394_it_add_frames()
|