Home
last modified time | relevance | path

Searched refs:cfp (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/gen/
H A Dnsparse.c137 struct __nsw_switchconfig_v1 *cfp; in _nsw_getoneconfig_v1() local
145 if ((cfp = libc_malloc(sizeof (struct __nsw_switchconfig_v1))) in _nsw_getoneconfig_v1()
150 LIBC_STRDUP(cfp->dbase, name); in _nsw_getoneconfig_v1()
151 lkq = &cfp->lookups; in _nsw_getoneconfig_v1()
159 return (cfp); in _nsw_getoneconfig_v1()
164 freeconf_v1(cfp); in _nsw_getoneconfig_v1()
187 cfp->num_lookups++; in _nsw_getoneconfig_v1()
219 return (cfp); in _nsw_getoneconfig_v1()
288 return (cfp); in _nsw_getoneconfig_v1()
304 cfp->num_lookups++; in _nsw_getoneconfig_v1()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_conf.c676 fmd_conf_exec_setprop(fmd_conf_t *cfp, int argc, char *argv[]) in fmd_conf_exec_setprop() argument
681 return (fmd_conf_setprop(cfp, argv[0], argv[1])); in fmd_conf_exec_setprop()
685 fmd_conf_exec_subscribe(fmd_conf_t *cfp, int argc, char *argv[]) in fmd_conf_exec_subscribe() argument
690 return (fmd_conf_setprop(cfp, FMD_PROP_SUBSCRIPTIONS, argv[0])); in fmd_conf_exec_subscribe()
694 fmd_conf_exec_dictionary(fmd_conf_t *cfp, int argc, char *argv[]) in fmd_conf_exec_dictionary() argument
699 return (fmd_conf_setprop(cfp, FMD_PROP_DICTIONARIES, argv[0])); in fmd_conf_exec_dictionary()
703 fmd_conf_parse(fmd_conf_t *cfp, const char *file) in fmd_conf_parse() argument
747 if (vp->cv_exec(cfp, tokc - 1, tokv + 1) != 0) { in fmd_conf_parse()
764 fmd_conf_fill(fmd_conf_t *cfp, fmd_conf_param_t *ppbuf, in fmd_conf_fill() argument
772 ulong_t h = fmd_strhash(name) % cfp->cf_parhashlen; in fmd_conf_fill()
[all …]
H A Dfmd_api.c361 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 Dfmd_module.c418 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/nscd/
H A Dnscd_nswparse.c95 freeconf_v1(struct __nsw_switchconfig_v1 *cfp) in freeconf_v1() argument
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()
102 for (cur = cfp->lookups; cur; cur = nex) { in freeconf_v1()
108 free(cfp); in freeconf_v1()
185 struct __nsw_switchconfig_v1 *cfp; in _nsw_getoneconfig_v1() local
193 if ((cfp = calloc(1, sizeof (struct __nsw_switchconfig_v1))) in _nsw_getoneconfig_v1()
198 cfp->dbase = strdup(name); in _nsw_getoneconfig_v1()
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dcf.c45 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/lib/libsqlite/tool/
H A Dlemon.c208 struct config *cfp; /* All configurations in this set */ member
221 struct config *cfp; /* The configuration to which linked */ member
723 struct config *cfp, *bp; local
743 cfp = Configlist_return();
744 Configlist_eat(cfp);
749 cfp = Configlist_return(); /* Get a pointer to the config list */
753 stp->cfp = cfp; /* Remember the configuration closure */
769 struct config *cfp; /* For looping thru the config closure of "stp" */ local
778 for(cfp=stp->cfp; cfp; cfp=cfp->next) cfp->status = INCOMPLETE;
781 for(cfp=stp->cfp; cfp; cfp=cfp->next){
[all …]
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c4323 struct csfrag *cfp; in findcsfrag() local
4328 for (cfp = *cfap; cfp; cfp = cfp->next) in findcsfrag()
4329 if (cfp->ofrag == frag) in findcsfrag()
4330 return (cfp); in findcsfrag()
4357 struct csfrag *cfp, *curr, *prev; in addcsfrag() local
4372 for (cfp = *cfap; cfp; cfp = cfp->next) { in addcsfrag()
4373 if (ino != cfp->ino) in addcsfrag()
4375 if (frag != cfp->ofrag + cfp->frags) in addcsfrag()
4377 cfp->frags++; in addcsfrag()
4378 cfp->size += sblock.fs_fsize; in addcsfrag()
[all …]
/illumos-gate/usr/src/cmd/bnu/
H A Duucp.c485 FILE *cfp; local
538 if ((cfp = popen(command, "r")) == NULL) {
544 if (pclose(cfp) != 0) {
591 cfp = syscfile(cfile, s1);
592 (void) fprintf(cfp,
597 (void) fclose(cfp);
648 cfp = syscfile(cfile, s2);
649 (void) fprintf(cfp, "S %s %s %s %s %s %lo %s %s\n",
652 (void) fclose(cfp);
679 FILE *cfp; local
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pci/
H A Dpci_common.c1530 pci_acc_cfblk_t *cfp; in pci_config_rd8() local
1538 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd8()
1540 rval = (*pci_getb_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum, in pci_config_rd8()
1566 pci_acc_cfblk_t *cfp; in pci_config_rd16() local
1574 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd16()
1576 rval = (*pci_getw_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum, in pci_config_rd16()
1602 pci_acc_cfblk_t *cfp; in pci_config_rd32() local
1610 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd32()
1612 rval = (*pci_getl_func)(cfp->c_busnum, cfp->c_devnum, in pci_config_rd32()
1613 cfp->c_funcnum, reg); in pci_config_rd32()
[all …]
H A Dpci.c345 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()
/illumos-gate/usr/src/uts/sparc/v9/fpu/
H A Dfpu.c88 kfpu_t *cfp, *pfp; in fp_fork() local
91 cfp = lwptofpu(clwp); in fp_fork()
97 cfp->fpu_qcnt = pfp->fpu_qcnt; in fp_fork()
99 cfp->fpu_q[i] = pfp->fpu_q[i]; in fp_fork()
104 cfp->fpu_fprs = pfp->fpu_fprs; in fp_fork()
106 fp_fksave(cfp); in fp_fork()
109 cfp->fpu_fr.fpu_regs[i] = pfp->fpu_fr.fpu_regs[i]; in fp_fork()
111 cfp->fpu_fr.fpu_dregs[i] = pfp->fpu_fr.fpu_dregs[i]; in fp_fork()
113 cfp->fpu_en = 1; in fp_fork()
/illumos-gate/usr/src/cmd/ctfconvert/
H A Dctfconvert.c137 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/sendmail/util/
H A Dpraliases.c65 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);
H A Deditmap.c102 FILE *cfp; local
214 if ((cfp = fopen(cfile, "r")) == NULL)
220 while (fgets(buf, sizeof(buf), cfp) != NULL)
270 (void) fclose(cfp);
H A Dmailstats.c56 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 Dmakemap.c106 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);
/illumos-gate/usr/src/cmd/syseventd/modules/sysevent_conf_mod/
H A Dsysevent_conf_mod.c742 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()
792 parse_conf_file(cfp->cf_conf_file); 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()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/pciex/
H A Dnpe.c514 pci_acc_cfblk_t *cfp; in npe_bus_map() local
667 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in npe_bus_map()
668 cfp->c_busnum = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in npe_bus_map()
669 cfp->c_devnum = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in npe_bus_map()
670 cfp->c_funcnum = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in npe_bus_map()
685 cfp->c_busnum < ecfginfo[2] || in npe_bus_map()
686 cfp->c_busnum > ecfginfo[3]) { in npe_bus_map()
716 pci_rp->pci_phys_low += ((cfp->c_busnum << 20) | in npe_bus_map()
717 (cfp->c_devnum) << 15 | in npe_bus_map()
718 (cfp->c_funcnum << 12)); in npe_bus_map()
/illumos-gate/usr/src/cmd/logadm/
H A Dconf.c461 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/uts/intel/os/
H A Dfpu.c1055 struct fpu_ctx *cfp; /* new fpu context */ in fp_new_lwp() local
1062 cfp = &ct->t_lwp->lwp_pcb.pcb_fpu; in fp_new_lwp()
1070 cfp->fpu_flags = FPU_EN | FPU_VALID; in fp_new_lwp()
1071 cfp->fpu_regs.kfpu_status = 0; in fp_new_lwp()
1072 cfp->fpu_regs.kfpu_xstatus = 0; in fp_new_lwp()
1083 cfx = cfp->fpu_regs.kfpu_u.kfpu_fx; in fp_new_lwp()
1090 cfp->fpu_xsave_mask = fp->fpu_xsave_mask; in fp_new_lwp()
1095 cxs = cfp->fpu_regs.kfpu_u.kfpu_xs; in fp_new_lwp()
1114 ctxop_attach(ct, fp_ctxop_allocate(cfp)); in fp_new_lwp()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/
H A Dipqosconf.c5700 FILE *cfp, in readnvpair() argument
5721 res = readtoken(cfp, &name); in readnvpair()
5739 res = readtoken(cfp, &valst); in readnvpair()
6002 res = read_enum_value(cfp, valst, enum_nvs, &val); in readnvpair()
6062 res = read_int_array(cfp, valst, &arr, size, llimit, in readnvpair()
6141 FILE *cfp, in readparams() argument
6160 res = read_curl_begin(cfp); in readparams()
6172 res = readnvpair(cfp, tfp, &params->nvlist, in readparams()
6876 FILE *cfp, in readclass() argument
6906 res = read_curl_begin(cfp); in readclass()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/
H A Dchat.c406 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/uts/common/io/scsi/targets/
H A Dses_ses.c616 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/contrib/mDNSResponder/mDNSCore/
H A DuDNS.h189 CacheRecord ***cfp, mDNSInterfaceID InterfaceID);

12