/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | cf.c | 47 SM_FILE_T *cfp; local 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);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_systemfile.c | 349 FILE *cfp = NULL; local 368 if ((cfp = fopen(cname, "r")) == NULL) { 396 while (((p = fgets(buf, sizeof (buf), cfp)) != NULL) && 421 while ((p = fgets(buf, sizeof (buf), cfp)) != NULL) { 465 if (fclose(cfp) != 0) { 466 cfp = NULL; 470 cfp = NULL; 486 if (cfp != NULL) 487 (void) fclose(cfp);
|
H A D | meta_mh.c | 711 FILE *cfp; /* config file pointer */ local 719 if ((cfp = fopen(METADEVPATH, "r")) != NULL) { 727 while (fgets(buf, BUFSIZ, cfp) != NULL) { 771 (void) fclose(cfp);
|
H A D | meta_db.c | 432 FILE *cfp = NULL; local 448 if ((cfp = fopen(META_DBCONFTMP, "w+")) == NULL) { 470 if ((cfp = fopen(tname, "w+")) == NULL) 474 if (fchmod(fileno(cfp), (sbuf.st_mode & 0666)) != 0) 476 if (fchown(fileno(cfp), sbuf.st_uid, sbuf.st_gid) != 0) 481 if (fprintf(cfp, "#metadevice database location file ") == EOF) 483 if (fprintf(cfp, "do not hand edit\n") < 0) 485 if (fprintf(cfp, 516 if (fprintf(cfp, "%s\t%lu\t%ld\t%s\t%d\n", 525 if (fflush(cfp) ! [all...] |
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_nswparse.c | 95 freeconf_v1(struct __nsw_switchconfig_v1 *cfp) argument 97 if (cfp) { 98 if (cfp->dbase) 99 free(cfp->dbase); 100 if (cfp->lookups) { 102 for (cur = cfp->lookups; cur; cur = nex) { 108 free(cfp); 185 struct __nsw_switchconfig_v1 *cfp; local 193 if ((cfp = calloc(1, sizeof (struct __nsw_switchconfig_v1))) 198 cfp [all...] |
/illumos-gate/usr/src/cmd/sendmail/aux/ |
H A D | mailstats.c | 58 SM_FILE_T *cfp; local 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 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); 225 (void) sm_io_close(cfp, SM_TIME_DEFAULT);
|
H A D | editmap.c | 104 FILE *cfp; local 216 if ((cfp = fopen(cfile, "r")) == NULL) 222 while (fgets(buf, sizeof(buf), cfp) != NULL) 272 (void) fclose(cfp);
|
H A D | makemap.c | 109 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);
|
/illumos-gate/usr/src/uts/intel/ia32/os/ |
H A D | fpu.c | 180 struct fpu_ctx *cfp; /* new fpu context */ local 190 cfp = &ct->t_lwp->lwp_pcb.pcb_fpu; 198 cfp->fpu_flags = FPU_EN | FPU_VALID; 199 cfp->fpu_regs.kfpu_status = 0; 200 cfp->fpu_regs.kfpu_xstatus = 0; 206 cfn = &cfp->fpu_regs.kfpu_u.kfpu_fn; 213 cfx = &cfp->fpu_regs.kfpu_u.kfpu_fx; 220 cfp->fpu_xsave_mask = fp->fpu_xsave_mask; 223 cxs = &cfp->fpu_regs.kfpu_u.kfpu_xs; 237 installctx(ct, cfp, [all...] |
/illumos-gate/usr/src/uts/sparc/v9/fpu/ |
H A D | fpu.c | 88 kfpu_t *cfp, *pfp; local 91 cfp = lwptofpu(clwp); 97 cfp->fpu_qcnt = pfp->fpu_qcnt; 99 cfp->fpu_q[i] = pfp->fpu_q[i]; 104 cfp->fpu_fprs = pfp->fpu_fprs; 106 fp_fksave(cfp); 109 cfp->fpu_fr.fpu_regs[i] = pfp->fpu_fr.fpu_regs[i]; 111 cfp->fpu_fr.fpu_dregs[i] = pfp->fpu_fr.fpu_dregs[i]; 113 cfp->fpu_en = 1;
|
/illumos-gate/usr/src/lib/libdscfg/common/ |
H A D | cfg_local.c | 64 get_bsize(cfp_t *cfp, char *name) argument 101 cfp->cf_flag |= CFG_NOWRVTOC; 148 localcf_close(cfp_t *cfp) argument 150 fsync(cfp->cf_fd); 151 cfp_unlock(cfp); 152 close(cfp->cf_fd); 159 * Sets file descriptor in cfp->cf_fd for use by other routines 162 localcf_open(cfp_t *cfp, char *name) argument 175 cfp->cf_fd = open(name, O_RDWR|O_CREAT|O_DSYNC|O_RSYNC, 0640); 176 if (cfp 227 localcf_seekblk(cfp_t *cfp, int off, int mode) argument 239 localcf_readblk(cfp_t *cfp, void *buf, int size) argument 251 localcf_writeblk(cfp_t *cfp, void *buf, int size) argument 263 localcf_seek(cfp_t *cfp, int off, int mode) argument 282 localcf_read(cfp_t *cfp, void *buf, int size) argument 303 localcf_write(cfp_t *cfp, void *buf, int size) argument 332 addcfline(cfp_t *cfp, char *line, int table_index) argument 418 remcfline(cfp_t *cfp, int table_offset, int setnum) argument 503 readcfline(cfp_t *cfp, char *buf, int table_offset, int num) argument 537 replacecfline(cfp_t *cfp, char *line, int table_offset, int num) argument [all...] |
H A D | cfg_impl.h | 74 * disk layout | | contains cfp->cf_head->h_cfg[4].l_size. 80 * cfp->cf_head->h_ccopy1>| | 84 * cfp->cf_head->h_ccopy2>| | 88 * cfp->cf_head->h_sizes1>| | here is where lists of sizes go for each 92 * cfp->cf_head->h_sizes2>| | these numbers are used to rebuild l_nentry 99 * Data is read into cfp->cf_head->h_ccopy1 and cfp->cf_head->h_ccopy2 100 * along with thier corresponding size metadata in cfp->cf_head->h_sizes1 101 * and cfp->cf_head->h_sizes2. This infomation is used to rebuild the 196 typedef struct cfp { struct [all...] |
H A D | cfg.c | 106 dump_status(cfp_t *cfp, char *str) argument 111 cfp->cf_head->h_magic, cfp->cf_head->h_state); 114 cfp->cf_mapped, cfp->cf_head->h_parsesize, 115 cfp->cf_head->h_parseoff); 118 cfp->cf_head->h_cparse, cfp->cf_head->h_csize, 119 cfp->cf_head->h_acsize); 121 cfp 394 cfp_t *cfp; local 688 cfp_t *cfp; local 1463 cfg_set_memorymap(cfp_t *cfp) argument 1482 cfg_init_header(cfp_t *cfp) argument 1509 cfg_read(cfp_t *cfp) argument 1681 cfp_t *cfp; local 1860 cfp_unlock(cfp_t *cfp) argument 1902 cfp_t *cfp; local 1955 cfp_t *cfp; local 2077 cfp_t *cfp; local 2369 cfp_t *cfp; local 2452 cfg_read_parser_config(cfp_t *cfp) argument 2573 cfg_map_cfglists(cfp_t *cfp) argument 2661 cfg_replace_lists(cfp_t *cfp) argument 2744 cfg_free_cfglist(cfp_t *cfp) argument 2799 cfp_t *cfp; local 2913 cfp_t *cfp; local 3074 cfp_t *cfp; local 3099 cfp_t *cfp; local 3135 cfp_t *cfp; local 3251 cfp_t *cfp = FP_SUN_CLUSTER(cfg); local 3335 cfp_t *cfp; local 3545 cfg_hdrcmp(cfp_t *cfp) argument [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uucp.c | 485 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/lib/libc/port/gen/ |
H A D | nsparse.c | 138 struct __nsw_switchconfig_v1 *cfp; local 146 if ((cfp = libc_malloc(sizeof (struct __nsw_switchconfig_v1))) 151 LIBC_STRDUP(cfp->dbase, name); 152 lkq = &cfp->lookups; 160 return (cfp); 165 freeconf_v1(cfp); 187 cfp->num_lookups++; 219 return (cfp); 289 return (cfp); 305 cfp 332 struct __nsw_switchconfig *cfp; local 516 struct __nsw_switchconfig_v1 *cfp, *retp = NULL; local 614 struct __nsw_switchconfig *cfp, *retp = NULL; local 732 freeconf_v1(struct __nsw_switchconfig_v1 *cfp) argument 750 freeconf(struct __nsw_switchconfig *cfp) argument 852 add_concell_v1(struct __nsw_switchconfig_v1 *cfp) argument 868 add_concell(struct __nsw_switchconfig *cfp) argument [all...] |
/illumos-gate/usr/src/cmd/avs/dscfg/ |
H A D | dscfg.c | 249 cfp_t *cfp = FP_SUN_CLUSTER(cfg); local 266 cfp->cf_head->h_magic, cfp->cf_head->h_state); 270 cfp->cf_mapped, cfp->cf_head->h_parsesize, 271 cfp->cf_head->h_parseoff); 275 cfp->cf_head->h_cparse, cfp->cf_head->h_csize, 276 cfp->cf_head->h_acsize); 278 cfp 658 cfp_t *cfp; local [all...] |
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_module.c | 418 fmd_conf_formal_t *cfp = mp->mod_argv; local 474 for (i = 0; i < mp->mod_argc; i++, cfp++) { 475 fmd_strfree((char *)cfp->cf_name); 476 fmd_strfree((char *)cfp->cf_default);
|
H A D | fmd_conf.c | 676 fmd_conf_exec_setprop(fmd_conf_t *cfp, int argc, char *argv[]) argument 681 return (fmd_conf_setprop(cfp, argv[0], argv[1])); 685 fmd_conf_exec_subscribe(fmd_conf_t *cfp, int argc, char *argv[]) argument 690 return (fmd_conf_setprop(cfp, FMD_PROP_SUBSCRIPTIONS, argv[0])); 694 fmd_conf_exec_dictionary(fmd_conf_t *cfp, int argc, char *argv[]) argument 699 return (fmd_conf_setprop(cfp, FMD_PROP_DICTIONARIES, argv[0])); 703 fmd_conf_parse(fmd_conf_t *cfp, const char *file) argument 747 if (vp->cv_exec(cfp, tokc - 1, tokv + 1) != 0) { 764 fmd_conf_fill(fmd_conf_t *cfp, fmd_conf_param_t *ppbuf, argument 772 ulong_t h = fmd_strhash(name) % cfp 808 fmd_conf_t *cfp = fmd_alloc(sizeof (fmd_conf_t), FMD_SLEEP); local 836 fmd_conf_merge(fmd_conf_t *cfp, const char *file) argument 863 fmd_conf_close(fmd_conf_t *cfp) argument 889 fmd_conf_getparam(fmd_conf_t *cfp, const char *name) argument 909 fmd_conf_getnzstr(fmd_conf_t *cfp, const char *name) argument 933 fmd_conf_gettype(fmd_conf_t *cfp, const char *name) argument 953 fmd_conf_getprop(fmd_conf_t *cfp, const char *name, void *data) argument 970 fmd_conf_setdefer(fmd_conf_t *cfp, const char *name, const char *value) argument 1000 fmd_conf_setprop(fmd_conf_t *cfp, const char *name, const char *value) argument 1020 fmd_conf_delprop(fmd_conf_t *cfp, const char *name, const char *value) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/io/pci/ |
H A D | pci.c | 343 pci_acc_cfblk_t *cfp; local 477 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; 478 cfp->c_busnum = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 479 cfp->c_devnum = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 480 cfp->c_funcnum = PCI_REG_FUNC_G(pci_rp->pci_phys_hi);
|
H A D | pci_common.c | 1501 pci_acc_cfblk_t *cfp; local 1509 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; 1511 rval = (*pci_getb_func)(cfp->c_busnum, cfp->c_devnum, cfp->c_funcnum, 1537 pci_acc_cfblk_t *cfp; local 1545 cfp = (pci_acc_cfblk_t *)&hdlp->ahi_common.ah_bus_private; 1547 rval = (*pci_getw_func)(cfp->c_busnum, cfp->c_devnum, cfp 1573 pci_acc_cfblk_t *cfp; local 1610 pci_acc_cfblk_t *cfp; local 1643 pci_acc_cfblk_t *cfp; local 1676 pci_acc_cfblk_t *cfp; local [all...] |
/illumos-gate/usr/src/uts/i86pc/io/pciex/ |
H A D | npe.c | 425 pci_acc_cfblk_t *cfp; local 578 cfp = (pci_acc_cfblk_t *)&hp->ah_bus_private; 579 cfp->c_busnum = PCI_REG_BUS_G(pci_rp->pci_phys_hi); 580 cfp->c_devnum = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 581 cfp->c_funcnum = PCI_REG_FUNC_G(pci_rp->pci_phys_hi); 596 cfp->c_busnum < ecfginfo[2] || 597 cfp->c_busnum > ecfginfo[3]) { 611 pci_rp->pci_phys_low += ((cfp->c_busnum << 20) | 612 (cfp->c_devnum) << 15 | 613 (cfp [all...] |
/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.c | 454 FILE *cfp = NULL, *tfp = NULL; local 488 if ((cfp = fdopen(cfd, "w")) == NULL) 492 cfp = fopen("/dev/null", "w"); 511 conf_print(cfp, tfp); 512 if (fclose(cfp) < 0)
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/chat/ |
H A D | chat.c | 412 FILE *cfp; local 414 cfp = fopen (chat_file, "r"); 415 if (cfp == NULL) 421 while (fgets(buf, STR_LEN, cfp) != NULL) { 469 fclose (cfp);
|
/illumos-gate/usr/src/uts/common/io/scsi/targets/ |
H A D | ses_ses.c | 617 ses_cfghdr(uchar_t *buffer, int buflen, SesCfgHdr *cfp) argument 621 gget8(buffer, 1, cfp->Nsubenc); 622 gget32(buffer, 4, cfp->GenCode);
|