/illumos-gate/usr/src/cmd/acct/ |
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()
|
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()
|
/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/cmd/bhyve/ |
H A D | bhyverun.c | 528 char tname[MAXCOMLEN + 1]; in fbsdrun_start_thread() local 534 snprintf(tname, sizeof(tname), "vcpu %d", vi->vcpuid); in fbsdrun_start_thread() 535 pthread_set_name_np(pthread_self(), tname); in fbsdrun_start_thread()
|
H A D | block_if.c | 560 char tname[MAXCOMLEN + 1]; in blockif_open() local 836 snprintf(tname, sizeof(tname), "blk-%s-%d", ident, i); in blockif_open() 837 pthread_set_name_np(bc->bc_btid[i], tname); in blockif_open()
|
H A D | hda_codec.c | 161 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()
|
H A D | pci_virtio_net.c | 581 char tname[MAXCOMLEN + 1]; in pci_vtnet_init() local 696 snprintf(tname, sizeof(tname), "vtnet-%d:%d tx", pi->pi_slot, in pci_vtnet_init() 698 pthread_set_name_np(sc->tx_tid, tname); in pci_vtnet_init()
|
H A D | pci_virtio_scsi.c | 653 char tname[MAXCOMLEN + 1]; in pci_vtscsi_init_queue() local 672 snprintf(tname, sizeof(tname), "vtscsi:%d-%d", num, i); in pci_vtscsi_init_queue() 673 pthread_set_name_np(worker->vsw_thread, tname); in pci_vtscsi_init_queue()
|
H A D | pci_virtio_viona.c | 698 char tname[MAXCOMLEN + 1]; in pci_viona_init() local 757 snprintf(tname, sizeof (tname), "vionapoll:%s", vnic); in pci_viona_init() 758 pthread_set_name_np(tid, tname); in pci_viona_init()
|
H A D | rfb.c | 1215 char tname[MAXCOMLEN + 1]; in rfb_client_tx_thread() local 1221 (void) snprintf(tname, sizeof (tname), "rfb%u tx", c->rc_instance); in rfb_client_tx_thread() 1222 (void) pthread_set_name_np(c->rc_tx_tid, tname); in rfb_client_tx_thread() 1245 (void) snprintf(tname, sizeof (tname), "rfb%u rx", c->rc_instance); in rfb_client_tx_thread() 1246 (void) pthread_set_name_np(c->rc_rx_tid, tname); in rfb_client_tx_thread()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
H A D | telnet.c | 759 char *tname; in gettermname() local 768 tname = (char *)env_getvalue((unsigned char *)"TERM"); in gettermname() 769 if ((tname != NULL) && (setupterm(tname, 1, &err) == 0)) { in gettermname() 770 tnamep = mklist(termbuf, tname); in gettermname() 772 if (tname && (strlen(tname) <= 40u)) { in gettermname() 773 unknown[0] = tname; in gettermname() 774 upcase(tname); in gettermname()
|
/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/ctfdump/ |
H A D | ctfdump.c | 920 char tname[MAX_NAMELEN]; in ctfsrc_object() local 922 if (ctf_type_cname(g_fp, id, tname, sizeof (tname), name) == NULL) { in ctfsrc_object() 927 (void) snprintf(tname, sizeof (tname), "unknown_t %s", name); in ctfsrc_object() 930 printf("extern %s;\n", tname); in ctfsrc_object()
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 343 char *tname; in get_nvl2str_topo() local 351 if (topo_fmri_nvl2str(topo_handle, nvl, &tname, &err) == 0) { in get_nvl2str_topo() 352 name = strdup(tname); in get_nvl2str_topo() 353 topo_hdl_strfree(topo_handle, tname); in get_nvl2str_topo()
|
/illumos-gate/usr/src/cmd/latencytop/ |
H A D | stat.c | 462 char *tname; in get_stat_c() local 464 tname = (char *)lt_zalloc(tname_size); in get_stat_c() 465 (void) snprintf(tname, tname_size, "Thread %d", tid); in get_stat_c() 468 (unsigned int)tid, tname, stat_p, NULL); in get_stat_c()
|
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/ |
H A D | dpost.c | 2673 char tname[10]; /* in case it's a single ASCII character */ in charlib() local 2697 sprintf(tname, "%.3o", lastc); in charlib() 2698 name = tname; in charlib()
|
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/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()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | modhash.c | 489 const char *tname; in modhash() local 495 tname = tbuf; in modhash() 497 tname = htep->hte_type; in modhash() 502 mdb_printf("%?s", tname); in modhash()
|
/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/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil_impl.h | 89 char *tname; member 150 #define tablecmd_tname u.table.tname
|
/illumos-gate/usr/src/cmd/ps/ |
H A D | ps.c | 259 char *tname; member 565 tty[ntty++].tname = p; in stdmain() 732 tty[ntty].tname = NULL; in stdmain() 768 tty[ntty++].tname = name; in stdmain() 769 tty[ntty].tname = NULL; in stdmain() 1320 for (ttyp = tty; ttyp->tname != NULL; ttyp++) { in prfind() 1324 if (strcmp(tp, ttyp->tname) == 0) { in prfind() 1334 other = ttyp->tname; in prfind()
|
H A D | ucbps.c | 123 char *tname; member 299 ttyp++->tname = p; in ucbmain() 339 ttyp->tname = NULL; in ucbmain() 881 for (ttyp = tty; ttyp->tname != NULL; ttyp++) { in prcom() 885 if (strcmp(tp, ttyp->tname) == 0) { in prcom() 894 other = ttyp->tname; in prcom()
|
/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; 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 …]
|