/titanic_50/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_file.c | 49 topo_file_unload(topo_file_t *tfp) in topo_file_unload() argument 52 if (tfp == NULL) in topo_file_unload() 55 if (tfp->tf_filenm != NULL) in topo_file_unload() 56 topo_mod_strfree(tfp->tf_mod, tfp->tf_filenm); in topo_file_unload() 58 if (tfp->tf_tmap != NULL) in topo_file_unload() 59 tf_info_free(tfp->tf_mod, tfp->tf_tmap); in topo_file_unload() 61 topo_mod_free(tfp->tf_mod, tfp, sizeof (topo_file_t)); in topo_file_unload() 68 topo_file_t *tfp; in topo_file_load() local 71 if ((tfp = topo_mod_zalloc(mod, sizeof (topo_file_t))) == NULL) in topo_file_load() 74 tfp->tf_mod = mod; in topo_file_load() [all …]
|
/titanic_50/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 | 79 FILE *tfp; in eftread_fopen() local 168 if ((tfp = tmpfile()) == NULL) in eftread_fopen() 178 if (cc != fwrite(buf, 1, cc, tfp) || ferror(tfp)) in eftread_fopen() 188 (void) fclose(tfp); in eftread_fopen() 199 rewind(tfp); in eftread_fopen() 201 return (tfp); in eftread_fopen()
|
/titanic_50/usr/src/cmd/refer/ |
H A D | sortbib.c | 44 FILE *fp[MXFILES], *tfp; in main() local 82 if ((tfp = fopen(tempfile, "w")) == NULL) { in main() 87 sortbib(fp[i], tfp, i); in main() 88 fclose(tfp); in main() 89 deliver(fp, tfp); /* do disk seeks and read from biblio files */ in main() 98 sortbib(FILE *fp, FILE *tfp, int i) in sortbib() argument 131 fprintf(tfp, "%d %d %d : %s %s %s %s\n", in sortbib() 134 if (ferror(tfp)) { in sortbib() 156 fprintf(tfp, "%d %d %d : %s %s %s %s\n", in sortbib() 158 if (ferror(tfp)) { in sortbib() [all …]
|
/titanic_50/usr/src/cmd/ipf/lib/common/ |
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 | 41 static FILE *tfp = NULL; variable 123 if (tfp && tfd != -1) { 124 rewind(tfp); 130 tfp = stdin; 134 tfp = fdopen(tfd, "r"); 157 while (fgets(line, sizeof(line)-1, tfp)) {
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | repval.c | 461 FILE *tfp; /* temp fp */ in repvals_to_file() local 481 if ((tfp = fdopen(tfd, "w")) == NULL) { in repvals_to_file() 489 if (fprintf(tfp, "%lld\n", spval->val) <= 0) { in repvals_to_file() 490 (void) fclose(tfp); in repvals_to_file() 495 if (fclose(tfp) != 0) { in repvals_to_file() 536 FILE *tfp; /* temp fp */ in store_retrieve_rep_vals() local 562 if ((tfp = fopen(genfmri_filename, "r")) == NULL) { in store_retrieve_rep_vals() 571 while ((fscanf_ret = fscanf(tfp, "%lld", &tval)) == 1) { in store_retrieve_rep_vals() 588 if (fclose(tfp) != 0) { in store_retrieve_rep_vals() 642 FILE *tfp; /* temp fp */ in add_remove_contract() local [all …]
|
/titanic_50/usr/src/cmd/ttymon/ |
H A D | sttydefs.c | 321 FILE *tfp; /* file pointer for temp file */ local 346 tfp = open_temp(tname); 348 if (copy_file(fp, tfp, 1, line - 1)) { 352 if (copy_file(fp, tfp, line + 1, -1)) { 357 if (fclose(tfp) == EOF) { 418 copy_file(fp, tfp, start, finish) in copy_file() argument 420 FILE *tfp; 451 if (fputs(dummy, tfp) == EOF) 463 if (fputs(dummy, tfp) == EOF)
|
/titanic_50/usr/src/cmd/saf/ |
H A D | pmadm.c | 555 FILE *tfp; /* file pointer for temp file */ local 587 tfp = open_temp(tname); 589 if (copy_file(fp, tfp, 1, line - 1)) { 595 if (copy_file(fp, tfp, line + 1, -1)) { 601 if (fclose(tfp) == EOF) { 643 FILE *tfp; /* file pointer for temp file */ local 679 tfp = open_temp(tname); 681 if (copy_file(fp, tfp, 1, line - 1)) { 739 (void) fprintf(tfp, "%s", tbuf); 741 if (copy_file(fp, tfp, line + 1, -1)) { [all …]
|
H A D | admutil.c | 179 copy_file(FILE *fp, FILE *tfp, int start, int finish) in copy_file() argument 208 if (fputs(dummy, tfp) == EOF) in copy_file() 220 if (fputs(dummy, tfp) == EOF) in copy_file()
|
H A D | sacadm.c | 683 FILE *tfp; /* file pointer for temp file */ local 699 tfp = open_temp(tname); 701 if (copy_file(fp, tfp, 1, line - 1)) { 707 if (copy_file(fp, tfp, line + 1, -1)) { 713 if (fclose(tfp) == EOF) {
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.bin/rdist/ |
H A D | docmd.c | 508 FILE *tfp; variable 544 tfp = NULL; 546 if ((tfp = fopen(Tmpfile, "w")) == NULL) { 567 if (tfp != NULL) 568 (void) fclose(tfp); 625 log(tfp, "new: %s\n", name);
|
/titanic_50/usr/src/cmd/logadm/ |
H A D | conf.c | 446 FILE *cfp = NULL, *tfp = NULL; in conf_close() local 499 if ((tfp = fdopen(tfd, "w")) == NULL) in conf_close() 503 conf_print(cfp, tfp); in conf_close() 506 if (tfp != NULL && fclose(tfp) < 0) in conf_close()
|
/titanic_50/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 …]
|
/titanic_50/usr/src/cmd/cron/ |
H A D | crontab.c | 411 FILE *tfp; local 430 if ((tfp = fdopen(t, "w")) == NULL) { 502 if (fputs(line, tfp) == EOF) { 508 fclose(tfp);
|
/titanic_50/usr/src/uts/common/fs/ |
H A D | dnlc.c | 1623 dcfree_t **prevpp, *tfp; in dnlc_dir_rem_space_by_len() local 1655 tfp = *prevpp; in dnlc_dir_rem_space_by_len() 1660 tfp); in dnlc_dir_rem_space_by_len() 1688 dcfree_t **prevpp, *tfp; in dnlc_dir_rem_space_by_handle() local 1715 tfp = *prevpp; in dnlc_dir_rem_space_by_handle() 1719 kmem_cache_free(dnlc_dir_space_cache, tfp); in dnlc_dir_rem_space_by_handle() 1937 dcfree_t **newhash, *dfp, **nhp, *tfp; in dnlc_dir_adjust_fhash() local 1967 tfp = dfp; in dnlc_dir_adjust_fhash() 1969 nhp = &newhash[DDFHASH(tfp->df_handle, dcp)]; in dnlc_dir_adjust_fhash() 1970 tfp->df_next = *nhp; in dnlc_dir_adjust_fhash() [all …]
|
/titanic_50/usr/src/cmd/rcm_daemon/common/ |
H A D | filesys_rcm.c | 566 FILE *tfp; in disable_vfstab_entry() local 581 tfp = fopen(tmp, "w"); in disable_vfstab_entry() 582 if (tfp == NULL) { in disable_vfstab_entry() 618 if (fputs(l, tfp) == EOF) { in disable_vfstab_entry() 629 if (tfp) in disable_vfstab_entry() 630 (void) fclose(tfp); in disable_vfstab_entry()
|
/titanic_50/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 6152 check_add_ufs_sign_to_list(FILE *tfp, char *mntpt) argument 6181 len = fputs(signline, tfp); 6200 process_slice_common(char *slice, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument 6216 if (check_add_ufs_sign_to_list(tfp, mntpt) == -1) 6280 ret = check_add_ufs_sign_to_list(tfp, tmpmnt); 6298 FILE *tfp, argument 6355 if (process_slice_common(slice, tfp, mhp, tmpmnt) == -1) { 6367 FILE *tfp, argument 6424 if (process_slice_common(slice, tfp, mhp, tmpmnt) == -1) { 6436 process_slice0(char *s0, FILE *tfp, mhash_t *mhp, char *tmpmnt) argument [all …]
|
/titanic_50/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslog_trans.c | 292 struct nfslog_trans_file *tfp; in nfslog_trans_file_find() local 294 for (tfp = trans_file_head; tfp != NULL; tfp = tfp->next) { in nfslog_trans_file_find() 295 if ((strcmp(path, tfp->path) == 0) && in nfslog_trans_file_find() 296 (output_type == tfp->trans_output_type) && in nfslog_trans_file_find() 297 (transtolog == tfp->trans_to_log)) { in nfslog_trans_file_find() 300 (tfp->refcnt)++; in nfslog_trans_file_find() 301 return (tfp); in nfslog_trans_file_find()
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | fakebop.c | 1766 bop_trap(ulong_t *tfp) in bop_trap() argument 1768 struct trapframe *tf = (struct trapframe *)tfp; in bop_trap() 1784 tf = (struct trapframe *)(tfp - 1); in bop_trap() 1798 fakeframe.old_frame = (bop_frame_t *)*(tfp - 3); in bop_trap()
|
/titanic_50/usr/src/cmd/svr4pkg/pkgremove/ |
H A D | main.c | 75 extern int delmap(int flag, char *pkginst, PKGserver *server, VFP_T **tfp);
|