/titanic_50/usr/src/cmd/ttymon/ |
H A D | tmutmp.c | 70 up->ut_user[0] = '.'; 71 (void) strncpy(&up->ut_user[1], Tag, sizeof (up->ut_user)-1); 140 strncpy(user, up->ut_user, sizeof (up->ut_user)); 141 user[sizeof (up->ut_user)] = '\0'; 197 (void) strncpy(u->ut_user, "LOGIN", 198 sizeof (u->ut_user));
|
/titanic_50/usr/src/cmd/utmp_update/ |
H A D | utmp_update.c | 249 (void) strncpy(entryx->ut_user, user, sizeof (entryx->ut_user)); in load_utmpx_struct() 319 user = malloc(sizeof (entryx->ut_user) +1); in check_utmpx() 320 (void) strncpy(user, entryx->ut_user, sizeof (entryx->ut_user)); in check_utmpx() 321 user[sizeof (entryx->ut_user)] = '\0'; in check_utmpx() 341 entryx->ut_user, uid, getuid()); in check_utmpx() 346 dprintf("Bad user name: %s \n", entryx->ut_user); in check_utmpx() 447 #define SUTMPX_USER (sizeof (eutmpx->ut_user)) in invalid_utmpx() 451 strncmp(eutmpx->ut_user, rutmpx->ut_user, SUTMPX_USER) != 0); in invalid_utmpx() 572 printf("ut_user = \"%-32.32s\" \n", rutmpx->ut_user); in fputmpx()
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 144 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user)); in utmpx_frec2api() 165 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user)); in utmpx_api2frec() 506 (void) strncpy(user, entryx->ut_user, sizeof (entryx->ut_user)); in invoke_utmp_update() 507 user[sizeof (entryx->ut_user)] = '\0'; in invoke_utmp_update() 1363 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx() 1364 (void) bzero(&utx->ut_user[sizeof (ut->ut_user)], in getutmpx() 1365 sizeof (utx->ut_user) - sizeof (ut->ut_user)); in getutmpx() 1387 (void) memcpy(ut->ut_user, utx->ut_user, sizeof (ut->ut_user)); in getutmp()
|
H A D | getlogin.c | 77 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 100 if (ubuf.ut_user[0] == '\0') in getl_r_common() 104 ulen = strnlen(ubuf.ut_user, maxlen); in getl_r_common() 117 (void) strncpy(answer, ubuf.ut_user, ulen); in getl_r_common()
|
H A D | getut.c | 108 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user)); in utmp_frec2api() 124 (void) strncpy(dst->ut_user, src->ut_user, sizeof (dst->ut_user)); in utmp_api2frec()
|
/titanic_50/usr/src/cmd/last/ |
H A D | last.c | 63 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 124 char *ut_user; in main() local 257 if (want(bp, &ut_host, &ut_user)) { in main() 276 ut_user, NMAX+1); in main() 281 bp->ut_line, ut_host, ut_user)) { in main() 469 *user = bp->ut_user; in want() 474 *user = bp->ut_user; in want() 482 (void) strcpy(bp->ut_user, "reboot"); in want() 488 if (bp->ut_user[0] == '.') in want() 529 if ((bp->ut_type == USER_PROCESS && bp->ut_user[0] != '\0') || in record_time()
|
/titanic_50/usr/src/cmd/who/ |
H A D | who.c | 105 #define NMAX (sizeof (utmpp->ut_user)) 122 static char nameval[sizeof (utmpp->ut_user) + 1]; /* invoker's name */ 140 static char user[sizeof (utmpp->ut_user) + 1]; /* holds user name */ 492 if (utmpp->ut_user[0] == '\0') in dump() 495 (void) strncpy(user, utmpp->ut_user, sizeof (user)); in dump() 727 utmpp->ut_user, utmpp->ut_id, utmpp->ut_line, utmpp->ut_type); in process() 734 if (strncmp(myname, utmpp->ut_user, in process() 735 sizeof (utmpp->ut_user)) == 0 && in process() 760 (strcmp(utmpp->ut_user, in process() 785 while (i < (int)sizeof (utmpt.ut_user) && in process() [all …]
|
/titanic_50/usr/src/cmd/svc/startd/ |
H A D | utmpx.c | 82 (void) strncpy(ut.ut_user, ".startd", sizeof (ut.ut_user)); in utmpx_mark_init() 255 bcopy(oup->ut_user, u.ut_user, sizeof (u.ut_user)); in utmpx_set_runlevel() 327 bcopy(oup->ut_user, u.ut_user, sizeof (u.ut_user)); in utmpx_write_entry()
|
/titanic_50/usr/src/lib/librpcsvc/common/ |
H A D | rusers_simple.c | 71 rutp->ut_user = (char *)malloc(sizeof 76 rutp->ut_user == NULL || 81 free(rutp->ut_user); 91 strncpy(rutp->ut_user,
|
/titanic_50/usr/src/head/ |
H A D | utmp.h | 54 #define ut_name ut_user 80 char ut_user[8]; /* User login name */ member 102 char ut_user[8]; /* User login name */ member
|
H A D | utmpx.h | 56 #define ut_name ut_user 68 char ut_user[32]; /* user login name */ member 104 char ut_user[32]; /* user login name */ member
|
/titanic_50/usr/src/cmd/write/ |
H A D | write.c | 91 char ownname[sizeof (self.ut_user) + 1]; in main() 187 if (strncmp(receipient, &ubuf->ut_user[0], in main() 188 sizeof (ubuf->ut_user)) == 0) { in main() 280 (void) strlcpy(&ownname[0], self.ut_user, in main() 281 sizeof (self.ut_user)); in main() 324 strncpy(&ownname[0], self.ut_user, sizeof (self.ut_user)); in main()
|
/titanic_50/usr/src/cmd/rpcsvc/ |
H A D | rpc.rusersd.c | 205 if (utent->ut_line[0] == '\0' || utent->ut_user[0] == '\0') 244 uav[cnt].ut_user = s_malodup(utent->ut_user, 245 sizeof (utent->ut_user)); 260 uav[cnt].ut_line, uav[cnt].ut_user, 389 if (uap->ut_user) in free_ua_entry() 390 free(uap->ut_user); in free_ua_entry()
|
H A D | rusers.c | 342 iconvert->utmp_array_val[i].ut_user = in print_info() 438 uap->utmp_array_val[i].ut_user); in print_info_3() 466 entry[curentry].users.utmp_array_val[i].ut_user = in print_info_3() 467 strdup(uap->utmp_array_val[i].ut_user); in print_info_3() 505 entry[i].users.utmp_array_val[j].ut_user); in printnames() 582 (void) printf("%-*.*s ", NMAX, NMAX, rup->ut_user); in putline_3()
|
/titanic_50/usr/src/cmd/oamuser/user/ |
H A D | isbusy.c | 56 if ((strncmp(login, utxptr->ut_user, in isbusy() 57 sizeof (utxptr->ut_user)) == 0) && \ in isbusy()
|
/titanic_50/usr/src/cmd/bnu/ |
H A D | ct.c | 601 && EQUALS(u->ut_user, "LOGIN") ) { 603 CDEBUG(7, "ut_user %s, ", u->ut_user); 629 zero (&u -> ut_user[0], sizeof (u -> ut_user)); in startat() 649 strncpy (&u -> ut_user[0], "ttymon", sizeof (u -> ut_user)); in startat() 684 zero (&u -> ut_user[0], sizeof (u -> ut_user));
|
/titanic_50/usr/src/cmd/saf/ |
H A D | sac.c | 310 if (uxp->ut_user[sizeof (uxp->ut_user) - 1] == '\0') { in readutmpx() 316 sp = findpm(uxp->ut_user); in readutmpx() 333 if (strncmp(uxp->ut_user, sp->sc_tag, in readutmpx() 334 sizeof (uxp->ut_user)) == 0) { in readutmpx() 466 char user[sizeof (up->ut_user) + 1]; in cleanutx() 490 strncpy(user, up->ut_user, sizeof (up->ut_user)); in cleanutx() 491 user[sizeof (up->ut_user)] = '\0'; in cleanutx() 541 (void) strncpy(up->ut_user, sp->sc_tag, sizeof (up->ut_user)); in account()
|
/titanic_50/usr/src/cmd/wall/ |
H A D | wall.c | 67 #define NMAX (sizeof (((struct utmpx *)0)->ut_user)) 377 if (!chkgrp(p->ut_user)) in sendmes() 388 NMAX, p->ut_user, s); in sendmes() 414 NMAX, &p->ut_user[0], s); in sendmes() 426 (void) fprintf(f, "DEBUG: To %.*s on %s\n", NMAX, p->ut_user, s); in sendmes()
|
/titanic_50/usr/src/cmd/krb5/kwarn/ |
H A D | kwarnd_send.c | 112 if (strncmp(rcp3, ubuf->ut_user, in warn_send() 113 sizeof (ubuf->ut_user)) == 0) { in warn_send()
|
/titanic_50/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | write.c | 95 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 99 if ((strcmp(utx->ut_user, "") == 0) && in conv2utmpx()
|
/titanic_50/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | write.c | 107 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 111 if ((strcmp(utx->ut_user, "") == 0) && in conv2utmpx()
|
/titanic_50/usr/src/cmd/rexd/ |
H A D | unix_login.c | 380 (void) strcpy(set_utmp.ut_user, user); in LoginUser() 420 char user[sizeof (ut.ut_user) + 1]; in LogoutUser() 443 strncpy(user, up->ut_user, sizeof (up->ut_user)); in LogoutUser() 444 user[sizeof (up->ut_user)] = '\0'; in LogoutUser()
|
/titanic_50/usr/src/cmd/acct/ |
H A D | wtmpfix.c | 229 w->ut_line, w->ut_user, (long)w->ut_xtime); in winp() 633 if ((strcmp(Ut.ut_user, "psradm") == 0) && in inrange() 643 if ((Ut.ut_user[0] == '\0') && in inrange() 655 if (Ut.ut_user[0] == '\0') { in inrange()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/ |
H A D | process.c | 194 strncmp(ubuf->ut_user, name, sizeof (ubuf->ut_user)) == 0) { in find_user()
|
/titanic_50/usr/src/lib/libbc/libc/sys/common/ |
H A D | compat.h | 67 char ut_user[32]; /* user login name */ member
|