Home
last modified time | relevance | path

Searched refs:tname (Results 1 – 25 of 64) sorted by relevance

123

/titanic_51/usr/src/cmd/saf/
H A Dadmutil.c108 * args: tname - temp file name
114 open_temp(tname) in open_temp() argument
115 char *tname; in open_temp()
117 FILE *fp; /* fp associated with tname */
130 if (access(tname, 0) != -1) {
134 fp = fopen(tname, "w");
147 * tname - name of source file
152 replace(fname, tname) in replace() argument
154 char *tname;
160 if (rename(tname, bu
281 char *tname; /* name of tempfile */ do_config() local
[all...]
H A Dpmadm.c557 char *tname; /* temp file name */ local
586 tname = make_tempname(fname);
587 tfp = open_temp(tname);
590 (void) unlink(tname);
596 (void) unlink(tname);
602 (void) unlink(tname);
607 replace(fname, tname);
647 char *tname; /* temp file name */ local
678 tname = make_tempname(fname);
679 tfp = open_temp(tname);
[all...]
H A Dsacadm.c685 char *tname; /* temp file name */ local
698 tname = make_tempname("_sactab");
699 tfp = open_temp(tname);
702 (void) unlink(tname);
708 (void) unlink(tname);
714 (void) unlink(tname);
719 replace("_sactab", tname);
/titanic_51/usr/src/cmd/oamuser/group/
H A Ddel_group.c55 char tname[] = "/etc/gtmp.XXXXXX"; in del_group() local
67 if ((fd = mkstemp(tname)) == -1) in del_group()
72 (void) unlink(tname); in del_group()
83 (void) unlink(tname); in del_group()
109 (void) unlink(tname); in del_group()
115 if (rename(tname, GROUP) != 0) { in del_group()
116 (void) unlink(tname); in del_group()
121 (void) unlink(tname); in del_group()
H A Dmod_group.c54 char tname[] = "/etc/gtmp.XXXXXX"; in mod_group() local
67 if ((fd = mkstemp(tname)) == -1) in mod_group()
72 (void) unlink(tname); in mod_group()
83 (void) unlink(tname); in mod_group()
109 (void) unlink(tname); in mod_group()
114 if (rename(tname, GROUP) != 0) { in mod_group()
115 (void) unlink(tname); in mod_group()
120 (void) unlink(tname); in mod_group()
/titanic_51/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c215 char *tname; /* pathname */ in picopen() local
235 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) in picopen()
237 if ( (fp = fopen(tname, "w+")) == NULL ) in picopen()
238 error(FATAL, "can't open %s", tname); in picopen()
239 unlink(tname); in picopen()
240 free(tname); in picopen()
262 char *tname; /* temp file pathname - for *fp_pic */ in inlinepic() local
279 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) in inlinepic()
281 if ( (fp_pic = fopen(tname, "w+")) == NULL ) in inlinepic()
282 error(FATAL, "can't open in-line picture file %s", tname); in inlinepic()
[all...]
/titanic_51/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c98 static int get_field_info(char *tname, char *fname, char *dotname,
695 do_start(char *sname, char *tname) in do_start() argument
698 do_start_sizeof(tname, NULL); in do_start()
715 do_start_sizeof(char *tname, char *rtname) in do_start_sizeof() argument
722 rtname = tname; in do_start_sizeof()
727 errx(1, "Couldn't resolve type %s", tname); in do_start_sizeof()
730 errx(1, "Couldn't get size for type %s", tname); in do_start_sizeof()
732 errx(1, "Invalid type size 0 for %s", tname); in do_start_sizeof()
735 (void) snprintf(comment, sizeof (comment), "sizeof (%s)", tname); in do_start_sizeof()
740 do_scalar_field(char *tname, cha argument
761 do_array_field(char * tname,char * fname,int _sign,char * dotfield) do_array_field() argument
792 do_array_type(char * tname,char * fname,int _sign) do_array_type() argument
819 char *tname; /* top type name, i.e. the struct */ global() member
837 get_field_info(char * tname,char * fname,char * dotname,int * offp,int * tidp) get_field_info() argument
[all...]
/titanic_51/usr/src/lib/libxcurses/src/tic/
H A Dticparse.c308 char *p, *q, *first, *fn, *long_name, dir[2], tname[TERM_NAMES_LENGTH]; in dump_structure() local
314 (void) strncpy(tname, string_table + term_names, TERM_NAMES_LENGTH); in dump_structure()
315 DEBUG(7, "Terminal names are \"%s\".\n", tname); in dump_structure()
316 for (p = tname + strlen(tname); tname < p; --p) { in dump_structure()
322 if (tname == p) in dump_structure()
323 long_name = tname; in dump_structure()
324 for (p = tname; p < long_name; ++p) { in dump_structure()
326 if (tname < in dump_structure()
[all...]
/titanic_51/usr/src/lib/libzpool/common/
H A Dutil.c98 char *cname, *tname; in show_vdev_stats() local
103 tname = calloc(1, strlen(cname) + 2); in show_vdev_stats()
104 (void) strcpy(tname, cname); in show_vdev_stats()
106 tname[strlen(tname)] = '0' + np; in show_vdev_stats()
107 show_vdev_stats(tname, ctype, cnv, indent + 2); in show_vdev_stats()
108 free(tname); in show_vdev_stats()
/titanic_51/usr/src/test/libc-tests/tests/nl_langinfo/
H A Dnl_langinfo_test.c181 char tname[128]; in test_nl_langinfo_1() local
185 (void) snprintf(tname, sizeof (tname), "nl_langinfo (locale %s)", in test_nl_langinfo_1()
187 t = test_start(tname); in test_nl_langinfo_1()
213 char tname[128]; in test_nl_langinfo_l() local
218 (void) snprintf(tname, sizeof (tname), "nl_langinfo_l (locale %s)", in test_nl_langinfo_l()
220 t = test_start(tname); in test_nl_langinfo_l()
/titanic_51/usr/src/cmd/ttymon/
H A Dsttydefs.c324 char *tname = "/etc/.ttydefs"; local
346 tfp = open_temp(tname);
358 (void)unlink(tname);
363 if (rename(tname, TTYDEFS) != 0 ) {
365 (void)unlink(tname);
374 * args: tname - temp file name
378 open_temp(tname) in open_temp() argument
379 char *tname; in open_temp()
381 FILE *fp; /* fp associated with tname */
394 if (access(tname,
[all...]
/titanic_51/usr/src/lib/libnisdb/
H A Ddb_dictlog.cc52 db_dictlog_entry::db_dictlog_entry(int a, vers * v, char *tname, in db_dictlog_entry() argument
57 table_name = tname; in db_dictlog_entry()
119 char *tname; in delete_log_entry() local
122 if ((tname = lentry->get_table_name())) { in delete_log_entry()
123 delete tname; in delete_log_entry()
/titanic_51/usr/src/test/libc-tests/tests/newlocale/
H A Dnewlocale_test.c137 char *tname = "newlocale_negative"; in test_newlocale_negative() local
140 t = test_start(tname); in test_newlocale_negative()
166 char *tname = "newlocale_categories"; in test_newlocale_categories() local
169 t = test_start(tname); in test_newlocale_categories()
201 char *tname = "newlocale_composite"; in test_newlocale_composite() local
204 t = test_start(tname); in test_newlocale_composite()
/titanic_51/usr/src/cmd/avs/nsctl/
H A Dnscadm.c256 char tname[_NSC_MAXNAME + 1]; in show_maps() local
268 (void) strncpy(tname, rmap->name, _NSC_MAXNAME); in show_maps()
269 (void) strcpy(&tname[strlen(tname)], " "); in show_maps()
270 tname[_NSC_MAXNAME] = '\0'; in show_maps()
272 "%d:\tname %s\toffset 0x%x size 0x%x inuse 0x%x\n"), in show_maps()
273 i, tname, rmap->offset, rmap->size, rmap->inuse); in show_maps()
/titanic_51/usr/src/cmd/acct/lib/
H A Ddevtolin.c48 char tname[LSZ]; /* linename */ member
75 return(tp->tname);
102 CPYN(tp->tname, file_name+5);
112 CPYN(tp->tname, "?");
/titanic_51/usr/src/tools/btxld/
H A Dbtxld.c108 static const char *tname; /* Temporary output file */ variable
192 if (tname) in cleanup()
193 remove(tname); in cleanup()
260 if (!(tname = strdup(name))) in btxld()
282 err(2, "%s", tname); in btxld()
288 err(2, "%s", tname); in btxld()
289 if (rename(tname, oname)) in btxld()
290 err(2, "%s: Can't rename to %s", tname, oname); in btxld()
291 tname = NULL; in btxld()
487 err(2, "%s", tname); in writex()
[all...]
/titanic_51/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c320 static char tname[32]; in poe_tagname() local
325 (void) sprintf(tname, "Tag%d", tagtype); in poe_tagname()
326 return (tname); in poe_tagname()
337 static char tname[32]; in poe_codename() local
342 (void) sprintf(tname, "Code%d", codetype); in poe_codename()
343 return (tname); in poe_codename()
/titanic_51/usr/src/cmd/acct/
H A Dacctcon1.c60 char tname[NSZ]; /* user name */ member
373 if(tp->tname[0] != '\0') { /* Someone logged in without */ in update()
376 CPYN(cb.ct_name, tp->tname); in update()
390 CPYN(tp->tname, wb.ut_name); in update()
396 if(tp->tname[0] != '\0') { /* Someone logged off */ in update()
399 CPYN(cb.ct_name, tp->tname); in update()
409 tp->tname[0] = '\0'; in update()
H A Dacctcon.c62 char tname[NSZ]; /* user name */ member
350 if (tp->tname[0] != '\0') { in update()
352 CPYN(cb.ct_name, tp->tname); in update()
365 CPYN(tp->tname, wb.ut_name); in update()
369 if (tp->tname[0] != '\0') { /* Someone logged off */ in update()
372 CPYN(cb.ct_name, tp->tname); in update()
383 tp->tname[0] = '\0'; in update()
/titanic_51/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dmachdep.c163 char tname; in restore_tlb() local
167 tname = 'd'; in restore_tlb()
170 tname = 'i'; in restore_tlb()
181 cpu_id, tname, utp->index, utp->va_tag, in restore_tlb()
/titanic_51/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c273 char tname[NS_MAXDNAME]; in get_soa() local
285 if (ns_makecanon(dname, tname, sizeof tname) < 0) in get_soa()
287 dname = tname; in get_soa()
524 char tname[MAXDNAME]; in save_ns() local
548 tname, sizeof tname) < 0) { in save_ns()
554 nsrr->name = strdup(tname); in save_ns()
H A Dres_send.c239 char tname[MAXDNAME+1]; in res_nameinquery() local
242 n = dn_expand(buf, eom, cp, tname, sizeof tname); in res_nameinquery()
251 ns_samename(tname, name) == 1) in res_nameinquery()
290 char tname[MAXDNAME+1]; in res_queriesmatch() local
293 n = dn_expand(buf1, eom1, cp, tname, sizeof tname); in res_queriesmatch()
301 if (!res_nameinquery(tname, ttype, tclass, buf2, eom2)) in res_queriesmatch()
/titanic_51/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil_impl.h91 char *tname; member
152 #define tablecmd_tname u.table.tname
/titanic_51/usr/src/cmd/mailx/
H A Doptim.c198 char tname[300]; in unuucp() local
204 nstrcpy(tname, sizeof (tname), name); in unuucp()
205 np = strrchr(tname, '!'); in unuucp()
209 hp = strrchr(tname, '!'); in unuucp()
211 hp = tname; in unuucp()
/titanic_51/usr/src/lib/libshell/common/sh/
H A Dio.c316 char *tname; /* name used with >; */ member
914 char *tname, *sp, *ep; in io_usename() local
929 tname = sp = (char*)stakalloc((len=strlen(name)) + 5); in io_usename()
944 rename(tname,name); in io_usename()
947 unlink(tname); in io_usename()
950 return(tname); in io_usename()
970 char *tname=0, *after="", *trace = shp->st.trap[SH_DEBUGTRAP]; in sh_redirect() local
1146 tname = io_usename(fname,&perm,0); in sh_redirect()
1176 if((fd=sh_open(tname?tname:fname,o_mode,RW_ALL)) <0) in sh_redirect()
1182 chmod(tname,perm); in sh_redirect()
[all …]

123