Searched refs:ut_line (Results 1 - 25 of 65) sorted by relevance

123

/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dutmp.h38 char ut_line[8]; /* tty name */ member in struct:utmp
48 strncmp((ut).ut_line, "tty", 3) == 0 && ((ut).ut_line[3] == 'p' \
49 || (ut).ut_line[3] == 'q' \
50 || (ut).ut_line[3] == 'r' \
51 || (ut).ut_line[3] == 's'))
/illumos-gate/usr/src/cmd/acct/
H A Dacctwtmp.c54 (void) strncpy(wb.ut_line, argv[1], sizeof (wb.ut_line));
55 wb.ut_line[11] = NULL;
H A Dacctcon1.c139 sizeof (wb.ut_line),
140 wb.ut_line,
162 strcpy(wb.ut_line, "acctcon1");
226 sizeof (wb.ut_line),
227 wb.ut_line,
245 if(wb.ut_line[0] == '\0' ) /* It's an init admin process */
280 wb.ut_line,
287 * bump count, looking up wb.ut_line in sy table
294 for (i = 0; i < nsys && !EQN(wb.ut_line, sy[i].sname); i++)
303 CPYN(sy[i].sname, wb.ut_line);
[all...]
H A Dfwtmp.c87 Ut.ut_line,
131 u->ut_line[i] = *p++;
133 if (u->ut_line[i] == ' ')
134 u->ut_line[i] = '\0';
H A Dwtmpfix.c58 * argument to acctwtmp(1M), to be propagated into ut_line fields. Additional
64 * We shall use the fact that ut_line[RLVLMSG_LEN] will extract the char
67 * be used with strcmp() even when ut_line is not.
223 * If input was corrupt, neither ut_line nor ut_user can be
228 "ut_line \"%-12.12s\" ut_user \"%-8.8s\" ut_xtime %ld\n",
229 w->ut_line, w->ut_user, (long)w->ut_xtime);
456 if (Ut.ut_line[RLVLMSG_LEN] == 'S')
458 else if ((Ut.ut_line[RLVLMSG_LEN] == '2') ||
459 (Ut.ut_line[RLVLMSG_LEN] == '3') ||
460 (Ut.ut_line[RLVLMSG_LE
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dcompat.h52 char ut_line[8]; /* tty name */ member in struct:compat_utmp
69 char ut_line[32]; /* device name (console, lnxx) */ member in struct:utmpx
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c72 (void) strncpy(up->ut_line, lastname(line), sizeof (up->ut_line));
100 (void) strncpy(buf, lastname(line), sizeof (u->ut_line));
101 buf[sizeof (u->ut_line)] = '\0';
107 strncpy(ttyn, u->ut_line, sizeof (u->ut_line));
108 ttyn[sizeof (u->ut_line)] = '\0';
142 strncpy(ttyn, up->ut_line, sizeof (up->ut_line));
143 ttyn[sizeof (up->ut_line)]
[all...]
/illumos-gate/usr/src/lib/librpcsvc/common/
H A Drusers_simple.c69 rutp->ut_line = (char *)malloc(sizeof
70 (forsize.ut_line)+1);
75 if (rutp->ut_line == NULL ||
80 free(rutp->ut_line);
88 strncpy(rutp->ut_line,
89 up.uia_arr[i]->ui_utmp.ut_line,
90 sizeof (forsize.ut_line)+1);
H A Drusersxdr.c60 len = (int)sizeof (up->ut_line);
63 if (len != sizeof (up->ut_line)) {
66 if (!xdr_opaque(xdrsp, (char *)up->ut_line, len)) {
/illumos-gate/usr/src/cmd/rpcsvc/
H A Drpc.rusersd.c205 if (utent->ut_line[0] == '\0' || utent->ut_user[0] == '\0')
221 (*q)->ui_idle = findidle(utent->ut_line,
222 sizeof (utent->ut_line), now);
223 if (strncmp(utent->ut_line, "console",
231 sizeof (utent->ut_line),
232 utent->ut_line,
246 uav[cnt].ut_line = s_malodup(utent->ut_line,
247 sizeof (utent->ut_line));
250 uav[cnt].ut_idle = findidle(utent->ut_line,
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dttyslot.c76 if (strncmp(utx.ut_line, p, sizeof (utx.ut_line)) == 0) {
/illumos-gate/usr/src/head/rpcsvc/
H A Drusers.x37 string ut_line<RUSERS_MAXLINELEN>; /* device */
96 % char ut_line[8]; /* tty name */
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c94 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line));
H A Dwrite.c109 (void) strcpy(utx->ut_line, ut->ut_line);
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c89 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line));
/illumos-gate/usr/src/lib/libmail/common/
H A Dnotifyu.c66 char tty[sizeof (utmpx.ut_line)+1];
72 for (i = 0; i < sizeof (utmpx.ut_line); i++)
73 tty[i] = utmpx.ut_line[i];
/illumos-gate/usr/src/cmd/who/
H A Dwho.c106 #define LMAX (sizeof (utmpp->ut_line))
479 char device[sizeof (utmpp->ut_line) + 1];
483 char path[sizeof (utmpp->ut_line) + 6];
535 if (utmpp->ut_line[0] == '\0')
538 (void) strncpy(device, utmpp->ut_line,
539 sizeof (utmpp->ut_line));
540 device[sizeof (utmpp->ut_line)] = '\0';
550 (void) strncpy(path + 5, utmpp->ut_line,
551 sizeof (utmpp->ut_line));
552 path[5 + sizeof (utmpp->ut_line)]
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Dprocess.c199 sizeof (ubuf->ut_line), ubuf->ut_line);
207 sizeof (ubuf->ut_line), ubuf->ut_line);
222 (void) strlcpy(tty, ubuf->ut_line, TTY_SIZE);
227 if (strcmp(ubuf->ut_line, tty) == 0) {
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c101 bcopy(oldu->ut_line, ut.ut_line, sizeof (ut.ut_line));
219 sscanf(up->ut_line, RUNLVL_MSG, &rl) == 1)
254 bcopy(oup->ut_line, u.ut_line, sizeof (u.ut_line));
289 (void) sprintf(u.ut_line, RUNLVL_MSG, runlevel);
328 bcopy(oup->ut_line, u.ut_line, sizeo
[all...]
/illumos-gate/usr/src/cmd/last/
H A Dlast.c64 #define LMAX (sizeof (((struct utmpx *)0)->ut_line))
266 * If bp->ut_line is longer than LMAX,
271 (void) strlcpy(ttnames[i], bp->ut_line,
281 bp->ut_line, ut_host, ut_user)) {
289 if (strncmp(bp->ut_line, "ftp", 3) == 0)
290 bp->ut_line[3] = '\0';
291 if (strncmp(bp->ut_line, "uucp", 4) == 0)
292 bp->ut_line[4] = '\0';
297 LINE_WIDTH, LMAX, bp->ut_line);
305 if (!lineq(bp->ut_line, "syste
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dttyslot.c84 strncmp(p, ubuf.ut_line,
85 sizeof (ubuf.ut_line)) == 0) {
H A Dgetutx.c145 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
166 (void) strncpy(dst->ut_line, src->ut_line, sizeof (dst->ut_line));
431 strncmp(&entry->ut_line[0], &fubuf.ut_line[0],
432 sizeof (fubuf.ut_line)) == 0) {
510 (void) strncpy(line, entryx->ut_line, sizeo
[all...]
/illumos-gate/usr/src/head/
H A Dutmp.h82 char ut_line[12]; /* device name (console, lnxx) */ member in struct:utmp
104 char ut_line[12]; /* device name (console, lnxx) */ member in struct:futmp
135 /* Special strings or formats used in the "ut_line" field when */
137 /* No string for the ut_line field can be more than 11 chars + */
H A Dutmpx.h70 char ut_line[32]; /* device name (console, lnxx) */ member in struct:utmpx
106 char ut_line[32]; /* device name (console, lnxx) */ member in struct:futmpx
/illumos-gate/usr/src/cmd/write/
H A Dwrite.c92 static char rterminal[sizeof ("/dev/") + sizeof (self.ut_line)] =
182 if (strncmp(&ubuf->ut_line[0], oterminal,
183 sizeof (ubuf->ut_line)) == 0) self = *ubuf;
194 if (strncmp(terminal, &ubuf->ut_line[0],
195 sizeof (ubuf->ut_line)) == 0) {
196 strlcpy(rterm, &ubuf->ut_line[0],
214 strlcpy(rterm, &ubuf->ut_line[0],
245 fwrite(&ubuf->ut_line[0], sizeof (ubuf->ut_line),

Completed in 1484 milliseconds

123