/illumos-gate/usr/src/cmd/saf/ |
H A D | admutil.c | 111 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; 157 if (rename(tname, buf) < 0) { 159 (void) unlink(tname); 278 char *tname; /* name of tempfile */ in do_config() local 305 tname = make_tempname(basename); in do_config() [all …]
|
H A D | pmadm.c | 555 char *tname; /* temp file name */ local 584 tname = make_tempname(fname); 585 tfp = open_temp(tname); 588 (void) unlink(tname); 594 (void) unlink(tname); 600 (void) unlink(tname); 605 replace(fname, tname); 645 char *tname; /* temp file name */ local 676 tname = make_tempname(fname); 677 tfp = open_temp(tname); [all …]
|
/illumos-gate/usr/src/cmd/oamuser/group/ |
H A D | del_group.c | 52 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 D | mod_group.c | 51 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 D | gen_struct_layout.c | 103 static int get_field_info(char *tname, char *fname, char *dotname, 749 do_start(char *sname, char *tname) in do_start() argument 752 do_start_sizeof(tname, NULL); in do_start() 769 do_start_sizeof(char *tname, char *rtname) in do_start_sizeof() argument 776 rtname = tname; in do_start_sizeof() 781 errx(1, "Couldn't resolve type %s", tname); in do_start_sizeof() 784 errx(1, "Couldn't get size for type %s", tname); in do_start_sizeof() 786 errx(1, "Invalid type size 0 for %s", tname); in do_start_sizeof() 789 (void) snprintf(comment, sizeof (comment), "sizeof (%s)", tname); in do_start_sizeof() 794 do_scalar_field(char *tname, char *fname, int _sign, char *dotfield) in do_scalar_field() argument [all …]
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | pictures.c | 212 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 D | nl_langinfo_test.c | 181 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 D | btxld.c | 107 static const char *tname; /* Temporary output file */ variable 183 if (tname != NULL) { in main() 184 add_version(tname, oname, version); in main() 190 if (rename(tname, oname)) in main() 191 err(2, "%s: Can't rename to %s", 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() 206 free((void *)(intptr_t)tname); in cleanup() [all …]
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | util.c | 118 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 D | sttydefs.c | 297 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 D | db_dictlog.cc | 50 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 D | newlocale_test.c | 137 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 D | devtolin.c | 47 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 D | fake_rename.c | 87 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 D | common.c | 318 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 D | acctcon1.c | 60 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 D | acctcon.c | 60 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 D | lauxlib.c | 166 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() 240 lua_setfield(L, LUA_REGISTRYINDEX, tname); /* registry.name = 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 [all …]
|
H A D | lauxlib.h | 53 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 D | machdep.c | 162 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/test/bhyve-tests/tests/common/ |
H A D | in_guest.c | 368 test_initialize_opts(const char *tname, uint64_t create_flags, bool is_plain) in test_initialize_opts() argument 377 test_name = strdup(tname); in test_initialize_opts() 419 test_initialize(const char *tname) in test_initialize() argument 421 return (test_initialize_opts(tname, 0, false)); in test_initialize() 425 test_initialize_plain(const char *tname) in test_initialize_plain() argument 427 return (test_initialize_opts(tname, 0, true)); in test_initialize_plain() 431 test_initialize_flags(const char *tname, uint64_t create_flags) in test_initialize_flags() argument 433 return (test_initialize_opts(tname, create_flags, false)); in test_initialize_flags()
|
/illumos-gate/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_findzonecut.c | 269 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 D | dwarf_print_lines.c | 214 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/common/ |
H A D | hda_codec.c | 160 static int hda_audio_ctxt_init(struct hda_audio_ctxt *actx, const char *tname, 880 hda_audio_ctxt_init(struct hda_audio_ctxt *actx, const char *tname, in hda_audio_ctxt_init() argument 886 assert(tname); in hda_audio_ctxt_init() 897 if (strlen(tname) < sizeof(actx->name)) in hda_audio_ctxt_init() 898 memcpy(actx->name, tname, strlen(tname) + 1); in hda_audio_ctxt_init() 911 pthread_set_name_np(actx->tid, tname); in hda_audio_ctxt_init()
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | optim.c | 195 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()
|