Home
last modified time | relevance | path

Searched refs:tfp (Results 1 – 23 of 23) sorted by relevance

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_file.c50 if (tfp == NULL) in topo_file_unload()
54 topo_mod_strfree(tfp->tf_mod, tfp->tf_filenm); 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
72 tfp->tf_mod = mod; in topo_file_load()
82 topo_file_unload(tfp); in topo_file_load()
86 if ((tfp->tf_tmap = topo_xml_read(mod, tfp->tf_filenm, scheme)) in topo_file_load()
91 topo_file_unload(tfp); in topo_file_load()
102 topo_file_unload(tfp); in topo_file_load()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Deftwrite.c102 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 Deftread.c77 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 Dsortbib.c42 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()
96 sortbib(FILE *fp, FILE *tfp, int i) in sortbib() argument
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()
165 deliver(FILE *fp[], FILE *tfp) in deliver() argument
178 tfp = fopen(tempfile, "r"); in deliver()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dipft_hx.c25 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 Dipft_td.c53 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 Dipft_tx.c39 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 Drepval.c459 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
586 if (fclose(tfp) != 0) { in store_retrieve_rep_vals()
640 FILE *tfp; /* temp fp */ in add_remove_contract() local
671 if (fprintf(tfp, "%llu\n", (uint64_t)ctid) <= 0) { in add_remove_contract()
672 (void) fclose(tfp); in add_remove_contract()
[all …]
/illumos-gate/usr/src/cmd/ttymon/
H A Dsttydefs.c294 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 Dqueue.c352 register SM_FILE_T *tfp; local
384 tfp = e->e_lockfp;
385 if (tfp == NULL && newid)
408 tf, (int) geteuid(), tfd, tfp);
411 e->e_lockfp = tfp;
717 printctladdr(q, tfp);
780 mcibuf.mci_out = tfp;
876 sm_io_error(tfp))
944 e->e_lockfp = tfp;
983 printctladdr(a, tfp) in printctladdr() argument
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dpmadm.c553 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 Dadmutil.c176 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 Dsacadm.c680 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 Ddocmd.c493 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 Dconf.c461 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 Dipqosconf.c1752 FILE *tfp; in diffnvlists() local
3170 FILE *tfp; in printnvlist() local
5049 FILE *tfp, in read_mapped_values() argument
5404 FILE *tfp, in read_perm_items() argument
5516 FILE *tfp, in readtype() argument
5701 FILE *tfp, in readnvpair() argument
6142 FILE *tfp, in readparams() argument
7303 FILE *tfp, in readfilter() argument
8108 if (tfp) in readaction()
8543 FILE *tfp; in readkconf() local
[all …]
/illumos-gate/usr/src/uts/common/fs/
H A Ddnlc.c1622 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 Dcrontab.c429 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 Dfilesys_rcm.c564 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 Dbootadm.c6712 FILE *tfp, argument
6786 FILE *tfp, argument
6980 FILE *tfp; local
7015 if (tfp == NULL) {
7082 ret = fclose(tfp);
7131 (void) fclose(tfp);
7145 FILE *tfp; local
7179 if (tfp == NULL) {
7681 FILE *tfp; local
7714 if (tfp == NULL) {
[all …]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_trans.c290 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 Dfakebop.c2037 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 Dmain.c79 extern int delmap(int flag, char *pkginst, PKGserver *server, VFP_T **tfp);