/illumos-gate/usr/src/cmd/bnu/ |
H A D | uucp.c | 485 FILE *cfp; local 544 if (pclose(cfp) != 0) { 591 cfp = syscfile(cfile, s1); 592 (void) fprintf(cfp, 597 (void) fclose(cfp); 648 cfp = syscfile(cfile, s2); 652 (void) fclose(cfp); 679 FILE *cfp; local 687 cfp = fopen(file, "a"); 688 ASSERT(cfp != NULL, Ct_OPEN, file, errno); [all …]
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 4374 FILE *cfp; in synchronize_BE_menu() local 4393 cfp = fopen(LU_MENU_CKSUM, "r"); in synchronize_BE_menu() 4394 INJECT_ERROR1("CKSUM_FILE_MISSING", cfp = NULL); in synchronize_BE_menu() 4395 if (cfp == NULL) { in synchronize_BE_menu() 4403 while (s_fgets(cksum_line, sizeof (cksum_line), cfp) != NULL) { in synchronize_BE_menu() 4408 (void) fclose(cfp); in synchronize_BE_menu()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/ |
H A D | chat.c | 406 FILE *cfp; local 408 cfp = fopen (chat_file, "r"); 409 if (cfp == NULL) 415 while (fgets(buf, STR_LEN, cfp) != NULL) { 463 fclose (cfp);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 5700 FILE *cfp, in readnvpair() argument 6141 FILE *cfp, in readparams() argument 6876 FILE *cfp, in readclass() argument 7302 FILE *cfp, in readfilter() argument 7664 read_curl_begin(FILE *cfp) in read_curl_begin() argument 7670 res = readtoken(cfp, &st); in read_curl_begin() 7780 FILE *cfp, in readaction() argument 7802 res = readtoken(cfp, &st); in readaction() 8401 FILE *cfp, in read_cfile_ver() argument 8413 res = readtoken(cfp, &sp); in read_cfile_ver() [all …]
|
/illumos-gate/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 137 ctfconvert_fixup_t *cfp = arg; in ctfconvert_fixup_genunix_cb() local 139 cfp->cf_lastpad = B_FALSE; in ctfconvert_fixup_genunix_cb() 141 cfp->cf_cyclic = B_TRUE; in ctfconvert_fixup_genunix_cb() 146 cfp->cf_mcpu = B_TRUE; in ctfconvert_fixup_genunix_cb() 151 cfp->cf_lastpad = B_TRUE; in ctfconvert_fixup_genunix_cb() 152 cfp->cf_padoff = off; in ctfconvert_fixup_genunix_cb()
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_api.c | 361 fmd_conf_formal_t *cfp; in fmd_hdl_register() local 446 cfp = mp->mod_argv; in fmd_hdl_register() 448 for (i = 0; i < mp->mod_argc; i++, prop++, cfp++) { in fmd_hdl_register() 449 cfp->cf_name = fmd_strdup(prop->fmdp_name, FMD_SLEEP); in fmd_hdl_register() 450 cfp->cf_ops = _fmd_prop_ops[prop->fmdp_type]; in fmd_hdl_register() 451 cfp->cf_default = fmd_strdup(prop->fmdp_defv, FMD_SLEEP); in fmd_hdl_register() 579 fmd_conf_formal_t *cfp = mp->mod_argv; in fmd_module_unregister() local 625 for (i = 0; i < mp->mod_argc; i++, cfp++) { in fmd_module_unregister() 626 fmd_strfree((char *)cfp->cf_name); in fmd_module_unregister() 627 fmd_strfree((char *)cfp->cf_default); in fmd_module_unregister()
|
H A D | fmd_conf.c | 793 cfp->cf_parhash[h] = pp; in fmd_conf_fill() 811 cfp->cf_argv = argv; in fmd_conf_open() 812 cfp->cf_argc = argc; in fmd_conf_open() 813 cfp->cf_flag = flag; in fmd_conf_open() 822 cfp->cf_defer = NULL; in fmd_conf_open() 824 fmd_conf_fill(cfp, cfp->cf_params, _fmd_conf_defc, _fmd_conf_defv, 0); in fmd_conf_open() 825 fmd_conf_fill(cfp, cfp->cf_params + _fmd_conf_defc, argc, argv, 1); in fmd_conf_open() 828 fmd_conf_close(cfp); in fmd_conf_open() 832 return (cfp); in fmd_conf_open() 876 fmd_free(cfp->cf_parhash, in fmd_conf_close() [all …]
|
H A D | fmd_module.c | 418 fmd_conf_formal_t *cfp = mp->mod_argv; in fmd_module_destroy() local 474 for (i = 0; i < mp->mod_argc; i++, cfp++) { in fmd_module_destroy() 475 fmd_strfree((char *)cfp->cf_name); in fmd_module_destroy() 476 fmd_strfree((char *)cfp->cf_default); in fmd_module_destroy()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/ |
H A D | mkfs.c | 4328 for (cfp = *cfap; cfp; cfp = cfp->next) in findcsfrag() 4372 for (cfp = *cfap; cfp; cfp = cfp->next) { in addcsfrag() 4546 for (cfp = csfragino; cfp; cfp = cfp->next) { in fixcsfragino() 4599 cfp = cfp->next) { in checkfragallocated() 4874 for (cfp = csfragino; cfp; cfp = cfp->next) in notenoughspace() 4887 freefrags(cfp->nfrag, cfp->frags, cfp->cylno); in unalloccsfragino() 4898 freefrags(cfp->ofrag, cfp->frags, cfp->cylno); in unalloccsfragfree() 4918 for (cfp = csfrag; cfp; cfp = cfpnext) { in findcsfragfree() 4936 for (cfp = csfragino; cfp; cfp = cfp->next) { in copycsfragino() 5032 for (cfp = csfragino; cfp; cfp = cfp->next) { in alloccsfragino() [all …]
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.c | 461 FILE *cfp = NULL, *tfp = NULL; in conf_close() local 495 if ((cfp = fdopen(cfd, "w")) == NULL) in conf_close() 499 cfp = fopen("/dev/null", "w"); in conf_close() 518 conf_print(cfp, tfp); in conf_close() 519 if (fclose(cfp) < 0) in conf_close()
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 97 if (cfp) { in freeconf_v1() 98 if (cfp->dbase) in freeconf_v1() 99 free(cfp->dbase); in freeconf_v1() 100 if (cfp->lookups) { in freeconf_v1() 108 free(cfp); in freeconf_v1() 207 return (cfp); in _nsw_getoneconfig_v1() 212 freeconf_v1(cfp); in _nsw_getoneconfig_v1() 266 return (cfp); in _nsw_getoneconfig_v1() 336 return (cfp); in _nsw_getoneconfig_v1() 353 return (cfp); in _nsw_getoneconfig_v1() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | cf.c | 45 SM_FILE_T *cfp; variable 53 cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, path, SM_IO_RDONLY, NULL); 54 if (cfp == NULL) 57 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL) 90 if (sm_io_error(cfp)) 94 (void) sm_io_close(cfp, SM_TIME_DEFAULT); 98 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | editmap.c | 102 FILE *cfp; local 214 if ((cfp = fopen(cfile, "r")) == NULL) 220 while (fgets(buf, sizeof(buf), cfp) != NULL) 270 (void) fclose(cfp);
|
H A D | mailstats.c | 56 SM_FILE_T *cfp; variable 119 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY, 134 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL) 210 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
H A D | makemap.c | 106 SM_FILE_T *cfp; local 237 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY, 244 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL) 296 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
H A D | praliases.c | 65 SM_FILE_T *cfp; local 116 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY, 125 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL) 160 (void) sm_io_close(cfp, SM_TIME_DEFAULT); 226 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/ |
H A D | sysevent_conf_mod.c | 742 conftab_t *cfp = NULL; in build_event_table() local 784 for (cfp = conftab; cfp->cf_next; cfp = cfp->cf_next) in build_event_table() 786 cfp->cf_next = new_cfp; in build_event_table() 788 cfp = new_cfp; in build_event_table() 789 cfp->cf_conf_file = str; in build_event_table() 790 cfp->cf_next = NULL; in build_event_table() 875 conftab_t *cfp; in free_event_table() local 896 cfp = conftab; in free_event_table() 897 while (cfp) { in free_event_table() 899 cfp_next = cfp->cf_next; in free_event_table() [all …]
|
/illumos-gate/usr/src/contrib/mDNSResponder/mDNSCore/ |
H A D | mDNS.c | 8757 const mDNSu32 slot, CacheGroup *cg, CacheRecord ***cfp, mDNSInterfaceID InterfaceID) in mDNSCoreReceiveCacheCheck() argument 8760 CacheRecord **cflocal = *cfp; in mDNSCoreReceiveCacheCheck() 8790 … if (cr->NextInCFList == mDNSNULL && *cfp != &cr->NextInCFList && LLQType != uDNS_LLQ_Events) in mDNSCoreReceiveCacheCheck() 8795 *cfp = &cr->NextInCFList; in mDNSCoreReceiveCacheCheck() 8945 CacheRecord **cfp = &CacheFlushRecords; in mDNSCoreReceiveResponse() local 9504 rr = mDNSCoreReceiveCacheCheck(m, response, LLQType, slot, cg, &cfp, InterfaceID); in mDNSCoreReceiveResponse() 9533 *cfp = rr; in mDNSCoreReceiveResponse() 9534 cfp = &rr->NextInCFList; in mDNSCoreReceiveResponse() 9535 *cfp = (CacheRecord*)1; in mDNSCoreReceiveResponse()
|
H A D | uDNS.c | 5653 CacheRecord **cfp = &CacheFlushRecords; in DNSPushProcessResponse() local 5762 rr = mDNSCoreReceiveCacheCheck(m, msg, uDNS_LLQ_Events, slot, cg, &cfp, mDNSNULL); in DNSPushProcessResponse()
|
H A D | uDNS.h | 189 CacheRecord ***cfp, mDNSInterfaceID InterfaceID);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | nsparse.c | 159 return (cfp); in _nsw_getoneconfig_v1() 354 return (cfp); in _nsw_getoneconfig() 477 freeconf(cfp); in _nsw_getoneconfig() 531 return (cfp); in __nsw_getconfig_v1() 579 retp = cfp; in __nsw_getconfig_v1() 632 return (cfp); in __nsw_getconfig() 680 retp = cfp; in __nsw_getconfig() 742 if (cfp) { in freeconf_v1() 760 if (cfp) { in freeconf() 868 cp->sw = cfp; in add_concell_v1() [all …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_dwarf.c | 311 ctf_dwarf_error(ctf_cu_t *cup, ctf_file_t *cfp, int err, const char *fmt, ...) in ctf_dwarf_error() argument 317 if (cfp != NULL) in ctf_dwarf_error() 318 err = ctf_errno(cfp); in ctf_dwarf_error()
|
/illumos-gate/usr/src/lib/libsqlite/tool/ |
H A D | lemon.c | 778 for(cfp=stp->cfp; cfp; cfp=cfp->next) cfp->status = INCOMPLETE; 781 for(cfp=stp->cfp; cfp; cfp=cfp->next){ 826 for(cfp=stp->cfp; cfp; cfp=cfp->next){ 835 for(cfp=stp->cfp; cfp; cfp=cfp->next){ 859 for(cfp=lemp->sorted[i]->cfp; cfp; cfp=cfp->next){ 867 for(cfp=lemp->sorted[i]->cfp; cfp; cfp=cfp->next){ 901 for(cfp=stp->cfp; cfp; cfp=cfp->next){ /* Loop over all configurations */ 1101 cfp->fplp = cfp->bplp = 0; 1151 for(cfp=current; cfp; cfp=cfp->next){ 1220 for(; cfp; cfp=nextcfp){ [all …]
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_ses.c | 616 ses_cfghdr(uchar_t *buffer, int buflen, SesCfgHdr *cfp) in ses_cfghdr() argument 620 gget8(buffer, 1, cfp->Nsubenc); in ses_cfghdr() 621 gget32(buffer, 4, cfp->GenCode); in ses_cfghdr()
|
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 345 pci_acc_cfblk_t *cfp; in pci_bus_map() local 478 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in pci_bus_map() 479 cfp->c_busnum = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in pci_bus_map() 480 cfp->c_devnum = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in pci_bus_map() 481 cfp->c_funcnum = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in pci_bus_map()
|