Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c111 open_temp(tname) in open_temp() argument
112 char *tname; in open_temp()
127 if (access(tname, 0) != -1) {
131 fp = fopen(tname, "w");
149 replace(fname, tname) in replace() argument
151 char *tname;
159 (void) unlink(tname);
307 ofp = open_temp(tname); in do_config()
310 (void) unlink(tname); in do_config()
317 (void) unlink(tname); in do_config()
[all …]
H A Dpmadm.c585 tfp = open_temp(tname);
588 (void) unlink(tname);
594 (void) unlink(tname);
600 (void) unlink(tname);
605 replace(fname, tname);
677 tfp = open_temp(tname);
680 (void) unlink(tname);
692 (void) unlink(tname);
740 (void) unlink(tname);
746 (void) unlink(tname);
[all …]
/illumos-gate/usr/src/cmd/oamuser/group/
H A Ddel_group.c52 char tname[] = "/etc/gtmp.XXXXXX"; in del_group() local
64 if ((fd = mkstemp(tname)) == -1) in del_group()
69 (void) unlink(tname); in del_group()
80 (void) unlink(tname); in del_group()
106 (void) unlink(tname); in del_group()
112 if (rename(tname, GROUP) != 0) { in del_group()
113 (void) unlink(tname); in del_group()
118 (void) unlink(tname); in del_group()
H A Dmod_group.c51 char tname[] = "/etc/gtmp.XXXXXX"; in mod_group() local
64 if ((fd = mkstemp(tname)) == -1) in mod_group()
69 (void) unlink(tname); in mod_group()
80 (void) unlink(tname); in mod_group()
106 (void) unlink(tname); in mod_group()
111 if (rename(tname, GROUP) != 0) { in mod_group()
112 (void) unlink(tname); in mod_group()
117 (void) unlink(tname); in mod_group()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c732 do_start(char *sname, char *tname) in do_start() argument
735 do_start_sizeof(tname, NULL); in do_start()
752 do_start_sizeof(char *tname, char *rtname) in do_start_sizeof() argument
759 rtname = tname; in do_start_sizeof()
764 errx(1, "Couldn't resolve type %s", tname); in do_start_sizeof()
798 do_array_field(char *tname, char *fname, in do_array_field() argument
836 errx(1, "Couldn't find type %s", tname); in do_array_type()
838 errx(1, "Couldn't resolve type %s", tname); in do_array_type()
883 errx(1, "Couldn't find type %s", tname); in get_field_info()
885 errx(1, "Couldn't resolve type %s", tname); in get_field_info()
[all …]
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Dpictures.c212 char *tname; /* pathname */ in picopen() local
232 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) in picopen()
234 if ( (fp = fopen(tname, "w+")) == NULL ) in picopen()
235 error(FATAL, "can't open %s", tname); in picopen()
236 unlink(tname); in picopen()
237 free(tname); in picopen()
259 char *tname; /* temp file pathname - for *fp_pic */ in inlinepic() local
276 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL ) in inlinepic()
278 if ( (fp_pic = fopen(tname, "w+")) == NULL ) in inlinepic()
279 error(FATAL, "can't open in-line picture file %s", tname); in inlinepic()
[all …]
/illumos-gate/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()
/illumos-gate/usr/src/tools/btxld/
H A Dbtxld.c183 if (tname != NULL) { in main()
190 if (rename(tname, oname)) in main()
192 free((void *)(intptr_t)tname); in main()
193 tname = NULL; in main()
204 if (tname) { in cleanup()
205 (void) remove(tname); in cleanup()
207 tname = NULL; in cleanup()
297 err(2, "%s", tname); in btxld()
303 err(2, "%s", tname); in btxld()
499 err(2, "%s", tname); in writex()
[all …]
/illumos-gate/usr/src/lib/libzpool/common/
H A Dutil.c118 char *cname, *tname; in show_vdev_stats() local
123 tname = calloc(1, strlen(cname) + 2); in show_vdev_stats()
124 (void) strcpy(tname, cname); in show_vdev_stats()
126 tname[strlen(tname)] = '0' + np; in show_vdev_stats()
127 show_vdev_stats(tname, ctype, cnv, indent + 2); in show_vdev_stats()
128 free(tname); in show_vdev_stats()
/illumos-gate/usr/src/cmd/ttymon/
H A Dsttydefs.c297 char *tname = "/etc/.ttydefs"; in remove_entry() local
320 tfp = open_temp(tname); in remove_entry()
332 (void) unlink(tname); in remove_entry()
337 if (rename(tname, TTYDEFS) != 0) { in remove_entry()
339 (void) unlink(tname); in remove_entry()
352 open_temp(char *tname) in open_temp() argument
367 if (access(tname, 0) != -1) { in open_temp()
371 fp = fopen(tname, "w"); in open_temp()
/illumos-gate/usr/src/lib/libnisdb/
H A Ddb_dictlog.cc50 db_dictlog_entry::db_dictlog_entry(int a, vers * v, char *tname, in db_dictlog_entry() argument
55 table_name = tname; in db_dictlog_entry()
117 char *tname; in delete_log_entry() local
120 if ((tname = lentry->get_table_name())) { in delete_log_entry()
121 delete tname; in delete_log_entry()
/illumos-gate/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()
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c47 char tname[LSZ]; /* linename */ member
75 return (tp->tname); in devtolin()
107 CPYN(tp->tname, file_name+5); in devtolin()
119 CPYN(tp->tname, "?"); in devtolin()
/illumos-gate/usr/src/lib/smbclnt/libfksmbfs/common/
H A Dfake_rename.c87 char *tname = NULL; in fake_rename() local
95 if ((error = fake_lookup_dir(topath, &tdvp, &tname)) != 0) in fake_rename()
114 error = VOP_RENAME(fdvp, fname, tdvp, tname, CRED(), NULL, 0); in fake_rename()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c318 static char tname[32]; in poe_tagname() local
323 (void) sprintf(tname, "Tag%d", tagtype); in poe_tagname()
324 return (tname); in poe_tagname()
335 static char tname[32]; in poe_codename() local
340 (void) sprintf(tname, "Code%d", codetype); in poe_codename()
341 return (tname); in poe_codename()
/illumos-gate/usr/src/cmd/acct/
H A Dacctcon1.c60 char tname[NSZ]; /* user name */ member
374 if(tp->tname[0] != '\0') { /* Someone logged in without */ in update()
377 CPYN(cb.ct_name, tp->tname); in update()
391 CPYN(tp->tname, wb.ut_name); in update()
397 if(tp->tname[0] != '\0') { /* Someone logged off */ in update()
400 CPYN(cb.ct_name, tp->tname); in update()
410 tp->tname[0] = '\0'; in update()
H A Dacctcon.c60 char tname[NSZ]; /* user name */ member
349 if (tp->tname[0] != '\0') { in update()
351 CPYN(cb.ct_name, tp->tname); in update()
364 CPYN(tp->tname, wb.ut_name); in update()
368 if (tp->tname[0] != '\0') { /* Someone logged off */ in update()
371 CPYN(cb.ct_name, tp->tname); in update()
382 tp->tname[0] = '\0'; in update()
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlauxlib.c166 static int typeerror (lua_State *L, int narg, const char *tname) { in typeerror() argument
168 tname, luaL_typename(L, narg)); in typeerror()
233 LUALIB_API int luaL_newmetatable (lua_State *L, const char *tname) { in luaL_newmetatable() argument
234 luaL_getmetatable(L, tname); /* try to get metatable */ in luaL_newmetatable()
245 LUALIB_API void luaL_setmetatable (lua_State *L, const char *tname) { in luaL_setmetatable() argument
246 luaL_getmetatable(L, tname); in luaL_setmetatable()
251 LUALIB_API void *luaL_testudata (lua_State *L, int ud, const char *tname) { in luaL_testudata() argument
255 luaL_getmetatable(L, tname); /* get correct metatable */ in luaL_testudata()
266 LUALIB_API void *luaL_checkudata (lua_State *L, int ud, const char *tname) { in luaL_checkudata() argument
267 void *p = luaL_testudata(L, ud, tname); in luaL_checkudata()
[all …]
H A Dlauxlib.h53 LUALIB_API int (luaL_newmetatable) (lua_State *L, const char *tname);
54 LUALIB_API void (luaL_setmetatable) (lua_State *L, const char *tname);
55 LUALIB_API void *(luaL_testudata) (lua_State *L, int ud, const char *tname);
56 LUALIB_API void *(luaL_checkudata) (lua_State *L, int ud, const char *tname);
/illumos-gate/usr/src/psm/stand/cpr/sparcv9/sun4u/
H A Dmachdep.c162 char tname; in restore_tlb() local
166 tname = 'd'; in restore_tlb()
169 tname = 'i'; in restore_tlb()
180 cpu_id, tname, utp->index, utp->va_tag, in restore_tlb()
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_findzonecut.c269 char tname[NS_MAXDNAME]; in get_soa() local
281 if (ns_makecanon(dname, tname, sizeof tname) < 0) in get_soa()
283 dname = tname; in get_soa()
520 char tname[MAXDNAME]; in save_ns() local
544 tname, sizeof tname) < 0) { in save_ns()
550 nsrr->name = strdup(tname); in save_ns()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_print_lines.c214 const char *tname = 0; in print_include_directory_details() local
222 &tname); in print_include_directory_details()
224 tname = "<unknown type>"; in print_include_directory_details()
229 " %-20s\n",(char *)tname); in print_include_directory_details()
365 const char *tname = 0; in print_file_entry_details() local
372 res = dwarf_get_LNCT_name(valpair->up_first,&tname); in print_file_entry_details()
374 tname = "<unknown type>"; in print_file_entry_details()
380 " %-20s\n",(char *)tname); in print_file_entry_details()
/illumos-gate/usr/src/cmd/bhyve/
H A Dhda_codec.c161 static int hda_audio_ctxt_init(struct hda_audio_ctxt *actx, const char *tname,
881 hda_audio_ctxt_init(struct hda_audio_ctxt *actx, const char *tname, in hda_audio_ctxt_init() argument
887 assert(tname); in hda_audio_ctxt_init()
898 if (strlen(tname) < sizeof(actx->name)) in hda_audio_ctxt_init()
899 memcpy(actx->name, tname, strlen(tname) + 1); in hda_audio_ctxt_init()
912 pthread_set_name_np(actx->tid, tname); in hda_audio_ctxt_init()
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil_impl.h89 char *tname; member
150 #define tablecmd_tname u.table.tname
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c195 char tname[300]; in unuucp() local
201 nstrcpy(tname, sizeof (tname), name); in unuucp()
202 np = strrchr(tname, '!'); in unuucp()
206 hp = strrchr(tname, '!'); in unuucp()
208 hp = tname; in unuucp()

123