Home
last modified time | relevance | path

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

12

/titanic_50/usr/src/lib/libdscfg/common/
H A Dcfg.c106 dump_status(cfp_t *cfp, char *str) in dump_status() argument
111 cfp->cf_head->h_magic, cfp->cf_head->h_state); in dump_status()
114 cfp->cf_mapped, cfp->cf_head->h_parsesize, in dump_status()
115 cfp->cf_head->h_parseoff); in dump_status()
118 cfp->cf_head->h_cparse, cfp->cf_head->h_csize, in dump_status()
119 cfp->cf_head->h_acsize); in dump_status()
121 cfp->cf_head->h_ccopy1, cfp->cf_head->h_ccopy2); in dump_status()
124 cfp->cf_head->h_seq1, cfp->cf_head->h_seq2); in dump_status()
394 cfp_t *cfp; in cfg_get_cstring() local
456 for (cfp = &cfg->cf[0]; cfp <= &cfg->cf[1]; cfp++) { in cfg_get_cstring()
[all …]
H A Dcfg_local.c64 get_bsize(cfp_t *cfp, char *name) in get_bsize() argument
101 cfp->cf_flag |= CFG_NOWRVTOC; in get_bsize()
148 localcf_close(cfp_t *cfp) in localcf_close() argument
150 fsync(cfp->cf_fd); in localcf_close()
151 cfp_unlock(cfp); in localcf_close()
152 close(cfp->cf_fd); in localcf_close()
162 localcf_open(cfp_t *cfp, char *name) in localcf_open() argument
175 cfp->cf_fd = open(name, O_RDWR|O_CREAT|O_DSYNC|O_RSYNC, 0640); in localcf_open()
176 if (cfp->cf_fd == -1) { in localcf_open()
177 if ((cfp->cf_fd = open(name, O_RDONLY, 0640)) == -1) { in localcf_open()
[all …]
H A Dcfg_local.h33 char *readcfline(cfp_t *cfp, char *buf, int table_index, int offset);
34 int addcfline(cfp_t *cfp, char *line, int table_index);
35 int replacecfline(cfp_t *cfp, char *line, int table_index, int offset);
36 int remcfline(cfp_t *cfp, int table_index, int offset);
H A Dcfg_impl.h196 typedef struct cfp { struct
/titanic_50/usr/src/lib/libc/port/gen/
H A Dnsparse.c138 struct __nsw_switchconfig_v1 *cfp; in _nsw_getoneconfig_v1() local
146 if ((cfp = libc_malloc(sizeof (struct __nsw_switchconfig_v1))) in _nsw_getoneconfig_v1()
151 LIBC_STRDUP(cfp->dbase, name); in _nsw_getoneconfig_v1()
152 lkq = &cfp->lookups; in _nsw_getoneconfig_v1()
160 return (cfp); in _nsw_getoneconfig_v1()
165 freeconf_v1(cfp); in _nsw_getoneconfig_v1()
187 cfp->num_lookups++; in _nsw_getoneconfig_v1()
219 return (cfp); in _nsw_getoneconfig_v1()
289 return (cfp); in _nsw_getoneconfig_v1()
305 cfp->num_lookups++; in _nsw_getoneconfig_v1()
[all …]
/titanic_50/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 …]
/titanic_50/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 …]
/titanic_50/usr/src/cmd/sendmail/libsm/
H A Dcf.c47 SM_FILE_T *cfp; variable
55 cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, path, SM_IO_RDONLY, NULL);
56 if (cfp == NULL)
59 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
92 if (sm_io_error(cfp))
96 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
100 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/titanic_50/usr/src/lib/libsqlite/tool/
H A Dlemon.c211 struct config *cfp; /* All configurations in this set */ member
224 struct config *cfp; /* The configuration to which linked */ member
726 struct config *cfp, *bp; local
746 cfp = Configlist_return();
747 Configlist_eat(cfp);
752 cfp = Configlist_return(); /* Get a pointer to the config list */
756 stp->cfp = cfp; /* Remember the configuration closure */
772 struct config *cfp; /* For looping thru the config closure of "stp" */ local
781 for(cfp=stp->cfp; cfp; cfp=cfp->next) cfp->status = INCOMPLETE;
784 for(cfp=stp->cfp; cfp; cfp=cfp->next){
[all …]
/titanic_50/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c4298 struct csfrag *cfp; in findcsfrag() local
4303 for (cfp = *cfap; cfp; cfp = cfp->next) in findcsfrag()
4304 if (cfp->ofrag == frag) in findcsfrag()
4305 return (cfp); in findcsfrag()
4332 struct csfrag *cfp, *curr, *prev; in addcsfrag() local
4347 for (cfp = *cfap; cfp; cfp = cfp->next) { in addcsfrag()
4348 if (ino != cfp->ino) in addcsfrag()
4350 if (frag != cfp->ofrag + cfp->frags) in addcsfrag()
4352 cfp->frags++; in addcsfrag()
4353 cfp->size += sblock.fs_fsize; in addcsfrag()
[all …]
/titanic_50/usr/src/cmd/avs/dscfg/
H A Ddscfg.c249 cfp_t *cfp = FP_SUN_CLUSTER(cfg); in dump_status() local
266 cfp->cf_head->h_magic, cfp->cf_head->h_state); in dump_status()
270 cfp->cf_mapped, cfp->cf_head->h_parsesize, in dump_status()
271 cfp->cf_head->h_parseoff); in dump_status()
275 cfp->cf_head->h_cparse, cfp->cf_head->h_csize, in dump_status()
276 cfp->cf_head->h_acsize); in dump_status()
278 cfp->cf_head->h_ccopy1, in dump_status()
279 cfp->cf_head->h_ccopy2); in dump_status()
282 cfp->cf_head->h_seq1, cfp->cf_head->h_seq2); in dump_status()
658 cfp_t *cfp; local
[all …]
/titanic_50/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 …]
/titanic_50/usr/src/uts/intel/ia32/os/
H A Dfpu.c180 struct fpu_ctx *cfp; /* new fpu context */ in fp_new_lwp() local
190 cfp = &ct->t_lwp->lwp_pcb.pcb_fpu; in fp_new_lwp()
198 cfp->fpu_flags = FPU_EN | FPU_VALID; in fp_new_lwp()
199 cfp->fpu_regs.kfpu_status = 0; in fp_new_lwp()
200 cfp->fpu_regs.kfpu_xstatus = 0; in fp_new_lwp()
206 cfn = &cfp->fpu_regs.kfpu_u.kfpu_fn; in fp_new_lwp()
213 cfx = &cfp->fpu_regs.kfpu_u.kfpu_fx; in fp_new_lwp()
220 cfp->fpu_xsave_mask = fp->fpu_xsave_mask; in fp_new_lwp()
223 cxs = &cfp->fpu_regs.kfpu_u.kfpu_xs; in fp_new_lwp()
237 installctx(ct, cfp, in fp_new_lwp()
/titanic_50/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()
/titanic_50/usr/src/uts/i86pc/io/pci/
H A Dpci_common.c1501 pci_acc_cfblk_t *cfp; in pci_config_rd8() local
1509 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd8()
1511 rval = (*pci_getb_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum, in pci_config_rd8()
1537 pci_acc_cfblk_t *cfp; in pci_config_rd16() local
1545 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd16()
1547 rval = (*pci_getw_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum, in pci_config_rd16()
1573 pci_acc_cfblk_t *cfp; in pci_config_rd32() local
1581 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; in pci_config_rd32()
1583 rval = (*pci_getl_func)(cfp->c_busnum, cfp->c_devnum, in pci_config_rd32()
1584 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()
/titanic_50/usr/src/cmd/ctfconvert/
H A Dctfconvert.c118 ctfconvert_fixup_t *cfp = arg; in ctfconvert_fixup_genunix_cb() local
120 cfp->cf_lastpad = B_FALSE; in ctfconvert_fixup_genunix_cb()
122 cfp->cf_cyclic = B_TRUE; in ctfconvert_fixup_genunix_cb()
127 cfp->cf_mcpu = B_TRUE; in ctfconvert_fixup_genunix_cb()
132 cfp->cf_lastpad = B_TRUE; in ctfconvert_fixup_genunix_cb()
133 cfp->cf_padoff = off; in ctfconvert_fixup_genunix_cb()
/titanic_50/usr/src/cmd/sendmail/aux/
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);
225 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
H A Deditmap.c104 FILE *cfp; local
216 if ((cfp = fopen(cfile, "r")) == NULL)
222 while (fgets(buf, sizeof(buf), cfp) != NULL)
272 (void) fclose(cfp);
H A Dmailstats.c58 SM_FILE_T *cfp; variable
121 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY,
136 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
211 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
H A Dmakemap.c109 SM_FILE_T *cfp; local
240 if ((cfp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, cfile, SM_IO_RDONLY,
247 while (sm_io_fgets(cfp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL)
299 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
/titanic_50/usr/src/uts/i86pc/io/pciex/
H A Dnpe.c425 pci_acc_cfblk_t *cfp; in npe_bus_map() local
577 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; in npe_bus_map()
578 cfp->c_busnum = PCI_REG_BUS_G(pci_rp->pci_phys_hi); in npe_bus_map()
579 cfp->c_devnum = PCI_REG_DEV_G(pci_rp->pci_phys_hi); in npe_bus_map()
580 cfp->c_funcnum = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); in npe_bus_map()
595 cfp->c_busnum < ecfginfo[2] || in npe_bus_map()
596 cfp->c_busnum > ecfginfo[3]) { in npe_bus_map()
610 pci_rp->pci_phys_low += ((cfp->c_busnum << 20) | in npe_bus_map()
611 (cfp->c_devnum) << 15 | in npe_bus_map()
612 (cfp->c_funcnum << 12)); in npe_bus_map()
/titanic_50/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 …]
/titanic_50/usr/src/cmd/logadm/
H A Dconf.c446 FILE *cfp = NULL, *tfp = NULL; in conf_close() local
480 if ((cfp = fdopen(cfd, "w")) == NULL) in conf_close()
484 cfp = fopen("/dev/null", "w"); in conf_close()
503 conf_print(cfp, tfp); in conf_close()
504 if (fclose(cfp) < 0) in conf_close()
/titanic_50/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 …]

12