Searched refs:tname (Results 1 - 25 of 62) sorted by path

123

/illumos-gate/usr/src/cmd/acct/
H A Dacctcon.c60 char tname[NSZ]; /* user name */ member in struct:tbuf
349 if (tp->tname[0] != '\0') {
351 CPYN(cb.ct_name, tp->tname);
364 CPYN(tp->tname, wb.ut_name);
368 if (tp->tname[0] != '\0') { /* Someone logged off */
371 CPYN(cb.ct_name, tp->tname);
382 tp->tname[0] = '\0';
H A Dacctcon1.c60 char tname[NSZ]; /* user name */ member in struct:tbuf
374 if(tp->tname[0] != '\0') { /* Someone logged in without */
377 CPYN(cb.ct_name, tp->tname);
391 CPYN(tp->tname, wb.ut_name);
397 if(tp->tname[0] != '\0') { /* Someone logged off */
400 CPYN(cb.ct_name, tp->tname);
410 tp->tname[0] = '\0';
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c47 char tname[LSZ]; /* linename */ member in struct:tlist
75 return (tp->tname);
107 CPYN(tp->tname, file_name+5);
119 CPYN(tp->tname, "?");
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dtelnet.c759 char *tname; local
768 tname = (char *)env_getvalue((unsigned char *)"TERM");
769 if ((tname != NULL) && (setupterm(tname, 1, &err) == 0)) {
770 tnamep = mklist(termbuf, tname);
772 if (tname && (strlen(tname) <= 40u)) {
773 unknown[0] = tname;
774 upcase(tname);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dcommon.c320 static char tname[32]; local
325 (void) sprintf(tname, "Tag%d", tagtype);
326 return (tname);
337 static char tname[32]; local
342 (void) sprintf(tname, "Code%d", codetype);
343 return (tname);
/illumos-gate/usr/src/cmd/ctfdump/
H A Dctfdump.c919 char tname[MAX_NAMELEN]; local
921 if (ctf_type_cname(g_fp, id, tname, sizeof (tname), name) == NULL) {
926 (void) snprintf(tname, sizeof (tname), "unknown_t %s", name);
929 printf("extern %s;\n", tname);
/illumos-gate/usr/src/cmd/fm/fmadm/common/
H A Dfaulty.c343 char *tname; local
351 if (topo_fmri_nvl2str(topo_handle, nvl, &tname, &err) == 0) {
352 name = strdup(tname);
353 topo_hdl_strfree(topo_handle, tname);
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dstat.c462 char *tname; local
464 tname = (char *)lt_zalloc(tname_size);
465 (void) snprintf(tname, tname_size, "Thread %d", tid);
468 (unsigned int)tid, tname, stat_p, NULL);
/illumos-gate/usr/src/cmd/lp/filter/postscript/dpost/
H A Ddpost.c2676 char tname[10]; /* in case it's a single ASCII character */ local
2700 sprintf(tname, "%.3o", lastc);
2701 name = tname;
H A Dpictures.c215 char *tname; /* pathname */ local
235 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL )
237 if ( (fp = fopen(tname, "w+")) == NULL )
238 error(FATAL, "can't open %s", tname);
239 unlink(tname);
240 free(tname);
262 char *tname; /* temp file pathname - for *fp_pic */ local
279 if ( (tname = tempnam(TEMPDIR, "dpost")) == NULL )
281 if ( (fp_pic = fopen(tname, "w+")) == NULL )
282 error(FATAL, "can't open in-line picture file %s", tname);
[all...]
/illumos-gate/usr/src/cmd/mailx/
H A Doptim.c198 char tname[300]; local
204 nstrcpy(tname, sizeof (tname), name);
205 np = strrchr(tname, '!');
209 hp = strrchr(tname, '!');
211 hp = tname;
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmodhash.c489 const char *tname; local
495 tname = tbuf;
497 tname = htep->hte_type;
502 mdb_printf("%?s", tname);
/illumos-gate/usr/src/cmd/oamuser/group/
H A Ddel_group.c55 char tname[] = "/etc/gtmp.XXXXXX"; local
67 if ((fd = mkstemp(tname)) == -1)
72 (void) unlink(tname);
83 (void) unlink(tname);
109 (void) unlink(tname);
115 if (rename(tname, GROUP) != 0) {
116 (void) unlink(tname);
121 (void) unlink(tname);
H A Dmod_group.c54 char tname[] = "/etc/gtmp.XXXXXX"; local
67 if ((fd = mkstemp(tname)) == -1)
72 (void) unlink(tname);
83 (void) unlink(tname);
109 (void) unlink(tname);
114 if (rename(tname, GROUP) != 0) {
115 (void) unlink(tname);
120 (void) unlink(tname);
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/
H A Dpicld_pluginutil_impl.h91 char *tname; member in struct:__anon1120
152 #define tablecmd_tname u.table.tname
/illumos-gate/usr/src/cmd/ps/
H A Dps.c259 char *tname; member in struct:tty
565 tty[ntty++].tname = p;
732 tty[ntty].tname = NULL;
768 tty[ntty++].tname = name;
769 tty[ntty].tname = NULL;
1324 for (ttyp = tty; ttyp->tname != NULL; ttyp++) {
1328 if (strcmp(tp, ttyp->tname) == 0) {
1338 other = ttyp->tname;
H A Ducbps.c123 char *tname; member in struct:tty
300 ttyp++->tname = p;
340 ttyp->tname = NULL;
879 for (ttyp = tty; ttyp->tname != NULL; ttyp++) {
883 if (strcmp(tp, ttyp->tname) == 0) {
892 other = ttyp->tname;
/illumos-gate/usr/src/cmd/saf/
H A Dadmutil.c108 * args: tname - temp file name
114 open_temp(tname)
115 char *tname;
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)
154 char *tname;
160 if (rename(tname, bu
281 char *tname; /* name of tempfile */ 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);
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c100 static int get_field_info(char *tname, char *fname, char *dotname,
720 do_start(char *sname, char *tname) argument
723 do_start_sizeof(tname, NULL);
740 do_start_sizeof(char *tname, char *rtname) argument
747 rtname = tname;
752 errx(1, "Couldn't resolve type %s", tname);
755 errx(1, "Couldn't get size for type %s", tname);
757 errx(1, "Invalid type size 0 for %s", tname);
760 (void) snprintf(comment, sizeof (comment), "sizeof (%s)", tname);
765 do_scalar_field(char *tname, cha argument
786 do_array_field(char *tname, char *fname, int _sign, char *dotfield) argument
817 do_array_type(char *tname, char *fname, int _sign) argument
844 char *tname; /* top type name, i.e. the struct */ member in struct:gfinfo
862 get_field_info(char *tname, char *fname, char *dotname, int *offp, int *tidp) argument
[all...]
/illumos-gate/usr/src/cmd/stat/common/
H A Dacquire_iodevs.c686 get_lti(char *s, char *lname, int *l, char *tname, int *t, char *iname, int *i) argument
691 tname, t, iname, i);
711 char tname[KSTAT_STRLEN], iname[KSTAT_STRLEN]; local
715 (void) get_lti(io->is_name, lname, &l1, tname, &t1, iname, &i1);
724 lname, l1, tname, t1, iname, i1);
/illumos-gate/usr/src/cmd/tar/
H A Dtar.c617 static char *tname; variable
1072 if ((tname = calloc(1, strlen(tmpdir) +
1077 (void) strcpy(tname, tmpdir);
1078 (void) strcat(tname, tmp_suffix);
1080 if ((tnum = mkstemp(tname)) == -1)
1081 vperror(1, "%s", tname);
1083 vperror(1, "%s", tname);
1313 * tmpdir string, plus 6 times the size of the tname
1317 int buflen = strlen(tmpdir) + (6 * strlen(tname)) + 100;
1328 tmpdir, tname, tnam
[all...]
/illumos-gate/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)
379 char *tname;
381 FILE *fp; /* fp associated with tname */
394 if (access(tname,
[all...]
/illumos-gate/usr/src/cmd/zfs/
H A Dzfs_main.c1072 const char *tname = zfs_get_name(cbp->cb_target); local
1075 if (strncmp(tname, name, strlen(tname)) == 0 &&
1076 (name[strlen(tname)] == '/' || name[strlen(tname)] == '@')) {

Completed in 101 milliseconds

123