/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_file.c | 47 topo_file_unload(topo_file_t *tfp) in topo_file_unload() argument 50 if (tfp == NULL) in topo_file_unload() 53 if (tfp->tf_filenm != NULL) in topo_file_unload() 54 topo_mod_strfree(tfp->tf_mod, tfp->tf_filenm); in topo_file_unload() 56 if (tfp->tf_tmap != NULL) in topo_file_unload() 57 tf_info_free(tfp->tf_mod, tfp->tf_tmap); in topo_file_unload() 59 topo_mod_free(tfp->tf_mod, tfp, sizeof (topo_file_t)); in topo_file_unload() 66 topo_file_t *tfp; in topo_file_load() local 69 if ((tfp = topo_mod_zalloc(mod, sizeof (topo_file_t))) == NULL) in topo_file_load() 72 tfp->tf_mod = mod; in topo_file_load() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | eftwrite.c | 102 FILE *tfp; in eftwrite() local 108 if ((tfp = tmpfile()) == NULL) in eftwrite() 113 out_altfp(tfp); in eftwrite() 116 rewind(tfp); in eftwrite() 143 while ((cc = fread(buf, 1, BUFLEN, tfp)) > 0) { in eftwrite() 149 if (ferror(tfp)) in eftwrite() 151 rewind(tfp); in eftwrite() 172 while ((cc = fread(buf, 1, BUFLEN, tfp)) > 0) { in eftwrite() 181 if (ferror(tfp)) in eftwrite() 183 (void) fclose(tfp); in eftwrite()
|
H A D | eftread.c | 77 FILE *tfp; in eftread_fopen() local 166 if ((tfp = tmpfile()) == NULL) in eftread_fopen() 176 if (cc != fwrite(buf, 1, cc, tfp) || ferror(tfp)) in eftread_fopen() 186 (void) fclose(tfp); in eftread_fopen() 197 rewind(tfp); in eftread_fopen() 199 return (tfp); in eftread_fopen()
|
/illumos-gate/usr/src/cmd/refer/ |
H A D | sortbib.c | 42 FILE *fp[MXFILES], *tfp; in main() local 80 if ((tfp = fopen(tempfile, "w")) == NULL) { in main() 85 sortbib(fp[i], tfp, i); in main() 86 fclose(tfp); in main() 87 deliver(fp, tfp); /* do disk seeks and read from biblio files */ in main() 96 sortbib(FILE *fp, FILE *tfp, int i) in sortbib() argument 129 fprintf(tfp, "%d %d %d : %s %s %s %s\n", in sortbib() 132 if (ferror(tfp)) { in sortbib() 154 fprintf(tfp, "%d %d %d : %s %s %s %s\n", in sortbib() 156 if (ferror(tfp)) { in sortbib() [all …]
|
/illumos-gate/usr/src/cmd/ipf/lib/ |
H A D | ipft_hx.c | 25 static FILE *tfp = NULL; variable 31 if (tfp && tfd != -1) { 32 rewind(tfp); 38 tfp = stdin; 42 tfp = fdopen(tfd, "r"); 74 while (fgets(line, sizeof(line)-1, tfp)) {
|
H A D | ipft_td.c | 53 static FILE *tfp = NULL; variable 65 tfp = stdin; 68 tfp = fdopen(tfd, "r"); 76 (void) fclose(tfp); in tcpd_close() 103 if (!fgets(lbuf, sizeof(lbuf) - 1, tfp))
|
H A D | ipft_tx.c | 39 static FILE *tfp = NULL; variable 121 if (tfp && tfd != -1) { 122 rewind(tfp); 128 tfp = stdin; 132 tfp = fdopen(tfd, "r"); 155 while (fgets(line, sizeof(line)-1, tfp)) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | repval.c | 459 FILE *tfp; /* temp fp */ in repvals_to_file() local 479 if ((tfp = fdopen(tfd, "w")) == NULL) { in repvals_to_file() 487 if (fprintf(tfp, "%lld\n", spval->val) <= 0) { in repvals_to_file() 488 (void) fclose(tfp); in repvals_to_file() 493 if (fclose(tfp) != 0) { in repvals_to_file() 534 FILE *tfp; /* temp fp */ in store_retrieve_rep_vals() local 560 if ((tfp = fopen(genfmri_filename, "r")) == NULL) { in store_retrieve_rep_vals() 569 while ((fscanf_ret = fscanf(tfp, "%lld", &tval)) == 1) { in store_retrieve_rep_vals() 586 if (fclose(tfp) != 0) { in store_retrieve_rep_vals() 640 FILE *tfp; /* temp fp */ in add_remove_contract() local [all …]
|
/illumos-gate/usr/src/cmd/ttymon/ |
H A D | sttydefs.c | 294 FILE *tfp; /* file pointer for temp file */ in remove_entry() local 320 tfp = open_temp(tname); in remove_entry() 322 if (copy_file(fp, tfp, 1, line - 1)) { in remove_entry() 326 if (copy_file(fp, tfp, line + 1, -1)) { in remove_entry() 331 if (fclose(tfp) == EOF) { in remove_entry() 391 copy_file(FILE *fp, FILE *tfp, int start, int finish) in copy_file() argument 420 if (fputs(dummy, tfp) == EOF) in copy_file() 431 if (fputs(dummy, tfp) == EOF) in copy_file()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | queue.c | 352 register SM_FILE_T *tfp; local 384 tfp = e->e_lockfp; 385 if (tfp == NULL && newid) 399 (tfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, 408 tf, (int) geteuid(), tfd, tfp); 411 e->e_lockfp = tfp; 468 if (tfd < 0 || (tfp = sm_io_open(SmFtStdiofd, SM_TIME_DEFAULT, 499 dumpfd(sm_io_getinfo(tfp, SM_IO_WHAT_FD, NULL), true, false); 610 (void) sm_io_fprintf(tfp, SM_TIME_DEFAULT, "V%d\n", QF_VERSION); 613 (void) sm_io_fprintf(tfp, SM_TIME_DEFAULT, "T%ld\n", (long) e->e_ctime); [all …]
|
/illumos-gate/usr/src/cmd/saf/ |
H A D | pmadm.c | 553 FILE *tfp; /* file pointer for temp file */ local 585 tfp = open_temp(tname); 587 if (copy_file(fp, tfp, 1, line - 1)) { 593 if (copy_file(fp, tfp, line + 1, -1)) { 599 if (fclose(tfp) == EOF) { 641 FILE *tfp; /* file pointer for temp file */ local 677 tfp = open_temp(tname); 679 if (copy_file(fp, tfp, 1, line - 1)) { 737 (void) fprintf(tfp, "%s", tbuf); 739 if (copy_file(fp, tfp, line + 1, -1)) { [all …]
|
H A D | admutil.c | 176 copy_file(FILE *fp, FILE *tfp, int start, int finish) in copy_file() argument 205 if (fputs(dummy, tfp) == EOF) in copy_file() 217 if (fputs(dummy, tfp) == EOF) in copy_file()
|
H A D | sacadm.c | 680 FILE *tfp; /* file pointer for temp file */ local 696 tfp = open_temp(tname); 698 if (copy_file(fp, tfp, 1, line - 1)) { 704 if (copy_file(fp, tfp, line + 1, -1)) { 710 if (fclose(tfp) == EOF) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | docmd.c | 493 FILE *tfp; variable 525 tfp = NULL; in dodcolon() 527 if ((tfp = fopen(Tmpfile, "w")) == NULL) { in dodcolon() 548 if (tfp != NULL) in dodcolon() 549 (void) fclose(tfp); in dodcolon() 605 log(tfp, "new: %s\n", name); in cmptime()
|
/illumos-gate/usr/src/cmd/logadm/ |
H A D | conf.c | 461 FILE *cfp = NULL, *tfp = NULL; in conf_close() local 514 if ((tfp = fdopen(tfd, "w")) == NULL) in conf_close() 518 conf_print(cfp, tfp); in conf_close() 521 if (tfp != NULL && fclose(tfp) < 0) in conf_close()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipqosconf/ |
H A D | ipqosconf.c | 1752 FILE *tfp; in diffnvlists() local 1766 tfp = validmod(module_name, &openerr); in diffnvlists() 1767 if (tfp == NULL) { in diffnvlists() 1795 res = readtype(tfp, module_name, SHORT_NAME(nme), &type, in diffnvlists() 2065 (void) fclose(tfp); in diffnvlists() 2083 (void) fclose(tfp); in diffnvlists() 3170 FILE *tfp; in printnvlist() local 3186 tfp = validmod(module, &openerr); in printnvlist() 3187 if (tfp == NULL) { in printnvlist() 3221 ret = readtype(tfp, module, param, &type, &enum_nvs, dfltst, in printnvlist() [all …]
|
/illumos-gate/usr/src/uts/common/fs/ |
H A D | dnlc.c | 1622 dcfree_t **prevpp, *tfp; in dnlc_dir_rem_space_by_len() local 1654 tfp = *prevpp; in dnlc_dir_rem_space_by_len() 1659 tfp); in dnlc_dir_rem_space_by_len() 1687 dcfree_t **prevpp, *tfp; in dnlc_dir_rem_space_by_handle() local 1714 tfp = *prevpp; in dnlc_dir_rem_space_by_handle() 1718 kmem_cache_free(dnlc_dir_space_cache, tfp); in dnlc_dir_rem_space_by_handle() 1936 dcfree_t **newhash, *dfp, **nhp, *tfp; in dnlc_dir_adjust_fhash() local 1966 tfp = dfp; in dnlc_dir_adjust_fhash() 1968 nhp = &newhash[DDFHASH(tfp->df_handle, dcp)]; in dnlc_dir_adjust_fhash() 1969 tfp->df_next = *nhp; in dnlc_dir_adjust_fhash() [all …]
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | crontab.c | 429 FILE *tfp; in copycron() local 450 if ((tfp = fdopen(t, "w")) == NULL) { in copycron() 564 if (fputs(line, tfp) == EOF) { in copycron() 570 fclose(tfp); in copycron()
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | filesys_rcm.c | 564 FILE *tfp; in disable_vfstab_entry() local 579 tfp = fopen(tmp, "w"); in disable_vfstab_entry() 580 if (tfp == NULL) { in disable_vfstab_entry() 616 if (fputs(l, tfp) == EOF) { in disable_vfstab_entry() 627 if (tfp) in disable_vfstab_entry() 628 (void) fclose(tfp); in disable_vfstab_entry()
|
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 6560 check_add_ufs_sign_to_list(FILE *tfp, char *mntpt) argument 6590 len = fputs(signline, tfp); 6611 process_slice_common(char *slice, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument 6627 if (check_add_ufs_sign_to_list(tfp, mntpt) == -1) 6694 ret = check_add_ufs_sign_to_list(tfp, tmpmnt); 6712 FILE *tfp, argument 6774 if (process_slice_common(slice, tfp, mhp, tmpmnt) == -1) { 6786 FILE *tfp, argument 6848 if (process_slice_common(slice, tfp, mhp, tmpmnt) == -1) { 6860 process_slice0(char *s0, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument [all …]
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_trans.c | 290 struct nfslog_trans_file *tfp; in nfslog_trans_file_find() local 292 for (tfp = trans_file_head; tfp != NULL; tfp = tfp->next) { in nfslog_trans_file_find() 293 if ((strcmp(path, tfp->path) == 0) && in nfslog_trans_file_find() 294 (output_type == tfp->trans_output_type) && in nfslog_trans_file_find() 295 (transtolog == tfp->trans_to_log)) { in nfslog_trans_file_find() 298 (tfp->refcnt)++; in nfslog_trans_file_find() 299 return (tfp); in nfslog_trans_file_find()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fakebop.c | 2037 bop_trap(ulong_t *tfp) in bop_trap() argument 2039 struct trapframe *tf = (struct trapframe *)tfp; in bop_trap() 2055 tf = (struct trapframe *)(tfp - 1); in bop_trap() 2068 fakeframe.old_frame = (bop_frame_t *)*(tfp - 3); in bop_trap()
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | main.c | 79 extern int delmap(int flag, char *pkginst, PKGserver *server, VFP_T **tfp);
|