/titanic_41/usr/src/cmd/ssh/sshd/ |
H A D | loginrec.c | 185 void set_utmp_time(struct logininfo *li, struct utmp *ut); 186 void construct_utmp(struct logininfo *li, struct utmp *ut); 190 void set_utmpx_time(struct logininfo *li, struct utmpx *ut); 191 void construct_utmpx(struct logininfo *li, struct utmpx *ut); 590 set_utmp_time(struct logininfo *li, struct utmp *ut) in set_utmp_time() argument 593 ut->ut_tv.tv_sec = li->tv_sec; in set_utmp_time() 594 ut->ut_tv.tv_usec = li->tv_usec; in set_utmp_time() 597 ut->ut_time = li->tv_sec; in set_utmp_time() 604 struct utmp *ut) in construct_utmp() argument 606 (void) memset(ut, '\0', sizeof(*ut)); in construct_utmp() [all …]
|
/titanic_41/usr/src/lib/libcmd/common/ |
H A D | uname.c | 146 uname(register struct utsname* ut) in uname() argument 169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1)) in uname() 172 strncpy(ut->nodename, "local", sizeof(ut->nodename) - 1); in uname() 175 if (!(ut->sysname = sys)) in uname() 177 if (!*(ut->sysname = SYSNAME)) in uname() 178 ut->sysname = ut->nodename; in uname() 180 if (!(ut->machine = arch)) in uname() 182 ut->machine = MACHINE; in uname() 183 ut->release = RELEASE; in uname() 184 ut->version = VERSION; in uname() [all …]
|
/titanic_41/usr/src/cmd/bnu/ |
H A D | in.uucpd.c | 370 struct utmpx ut; local 381 (void) memset((char *)&ut, 0, sizeof (ut)); 384 ut.ut_id[0] = 'u'; 385 ut.ut_id[1] = 'u'; 386 ut.ut_id[2] = SC_WILDC; 387 ut.ut_id[3] = SC_WILDC; 388 sprintf(ut.ut_line, "uucp%.4d", pid); 389 ut.ut_pid = getpid(); 390 ut.ut_type = DEAD_PROCESS; 391 ut.ut_exit.e_termination = status & 0xFF; [all …]
|
/titanic_41/usr/src/lib/libbc/libc/sys/sys5/ |
H A D | read.c | 82 struct compat_utmp *ut; in to_utmp() local 86 ut = (struct compat_utmp *)buf; in to_utmp() 89 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in to_utmp() 90 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name)); in to_utmp() 91 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host)); in to_utmp() 92 ut->ut_time = utx->ut_tv.tv_sec; in to_utmp() 94 ut++; in to_utmp()
|
H A D | write.c | 88 struct compat_utmp *ut; in conv2utmpx() local 92 ut = (struct compat_utmp *) buf; in conv2utmpx() 94 while ((char *)ut < (buf + len)) { in conv2utmpx() 95 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 97 (void) strcpy(utx->ut_line, ut->ut_line); in conv2utmpx() 106 utx->ut_tv.tv_sec = ut->ut_time; in conv2utmpx() 109 utx->ut_syslen = sizeof (ut->ut_name) + 1; in conv2utmpx() 110 (void) strcpy(utx->ut_host, ut->ut_host); in conv2utmpx() 111 ut++; in conv2utmpx()
|
/titanic_41/usr/src/lib/libbc/libc/sys/4.2/ |
H A D | read.c | 87 struct compat_utmp *ut; in to_utmp() local 91 ut = (struct compat_utmp *)buf; in to_utmp() 94 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in to_utmp() 95 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name)); in to_utmp() 96 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host)); in to_utmp() 97 ut->ut_time = utx->ut_tv.tv_sec; in to_utmp() 99 ut++; in to_utmp()
|
H A D | write.c | 100 struct compat_utmp *ut; in conv2utmpx() local 104 ut = (struct compat_utmp *) buf; in conv2utmpx() 106 while ((char *)ut < (buf + len)) { in conv2utmpx() 107 (void) strcpy(utx->ut_user, ut->ut_name); in conv2utmpx() 109 (void) strcpy(utx->ut_line, ut->ut_line); in conv2utmpx() 118 utx->ut_tv.tv_sec = ut->ut_time; in conv2utmpx() 121 utx->ut_syslen = sizeof (ut->ut_name) + 1; in conv2utmpx() 122 (void) strcpy(utx->ut_host, ut->ut_host); in conv2utmpx() 123 ut++; in conv2utmpx()
|
/titanic_41/usr/src/cmd/svc/startd/ |
H A D | utmpx.c | 65 struct utmpx ut, *oldu; in utmpx_mark_init() local 81 (void) memset(&ut, 0, sizeof (ut)); in utmpx_mark_init() 82 (void) strncpy(ut.ut_user, ".startd", sizeof (ut.ut_user)); in utmpx_mark_init() 83 ut.ut_pid = pid; in utmpx_mark_init() 85 ut.ut_id[0] = ut.ut_id[1] = ut.ut_id[2] = ut.ut_id[3] = (char)SC_WILDC; in utmpx_mark_init() 88 ut.ut_id[ret] = prefix[ret]; in utmpx_mark_init() 90 ut.ut_type = INIT_PROCESS; in utmpx_mark_init() 91 (void) time(&ut.ut_tv.tv_sec); in utmpx_mark_init() 97 if ((oldu = getutxid(&ut)) != NULL) { in utmpx_mark_init() 101 bcopy(oldu->ut_line, ut.ut_line, sizeof (ut.ut_line)); in utmpx_mark_init() [all …]
|
/titanic_41/usr/src/lib/libbc/inc/include/ |
H A D | utmp.h | 47 #define nonuser(ut) ((ut).ut_host[0] == 0 && \ argument 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'))
|
/titanic_41/usr/src/cmd/w/ |
H A D | w.c | 158 struct utmpx *ut; in main() local 245 if ((ut = malloc(size)) == NULL) { in main() 253 utmpbegin = ut; in main() 257 while ((ut < utmpend) && ((utp = getutxent()) != NULL)) in main() 258 (void) memcpy(ut++, utp, sizeof (*ut)); in main() 265 for (ut = utmpbegin; ut < utmpend; ut++) { in main() 266 if (ut->ut_type == USER_PROCESS) { in main() 267 if (!nonuserx(*ut)) in main() 269 } else if (ut->ut_type == BOOT_TIME) { in main() 270 uptime = now - ut->ut_xtime; in main() [all …]
|
/titanic_41/usr/src/cmd/whodo/ |
H A D | whodo.c | 162 struct utmpx *ut; in main() local 240 if ((ut = malloc(size)) == NULL) { in main() 248 utmpbegin = ut; in main() 253 while ((ut < utmpend) && ((utp = getutxent()) != NULL)) in main() 254 (void) memcpy(ut++, utp, sizeof (*ut)); in main() 262 for (ut = utmpbegin; ut < utmpend; ut++) { in main() 263 if (ut->ut_type == USER_PROCESS) { in main() 265 } else if (ut->ut_type == BOOT_TIME) { in main() 266 uptime = now - ut->ut_xtime; in main() 281 ut = utmpbegin; /* rewind utmp data */ in main() [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | getutx.c | 890 updwtmp(const char *file, struct utmp *ut) in updwtmp() argument 898 getutmpx(ut, &utmpx); in updwtmp() 901 _compat_updwtmp(file, ut); in updwtmp() 1148 struct futmpx *ut; /* "current" utmpx being examined */ in makeutx() local 1170 while (ut = getoneutx(&offset)) in makeutx() 1171 if (idcmp(utmp->ut_id, ut->ut_id)) { in makeutx() 1179 if (ut->ut_type == DEAD_PROCESS) in makeutx() 1182 (void) memcpy(saveid, ut->ut_id, in makeutx() 1186 if (ut) { in makeutx() 1192 (void) memcpy((caddr_t)utmp->ut_id, ut->ut_id, IDLEN); in makeutx() [all …]
|
/titanic_41/usr/src/cmd/psradm/ |
H A D | psradm.c | 49 static struct utmpx ut; /* structure for logging to /etc/wtmpx. */ variable 169 ut.ut_pid = getpid(); in psr_set_state() 170 ut.ut_type = USER_PROCESS; in psr_set_state() 171 (void) strncpy(ut.ut_user, "psradm", sizeof (ut.ut_user) - 1); in psr_set_state() 179 (void) snprintf(ut.ut_line, sizeof (ut.ut_line), PSRADM_MSG, in psr_set_state() 182 ut.ut_xtime = now; in psr_set_state() 183 updwtmpx(WTMPX_FILE, &ut); in psr_set_state()
|
/titanic_41/usr/src/head/ |
H A D | utmp.h | 150 #define nonuser(ut) ((ut).ut_exit.e_exit == NONROOT_USR ? 1 : 0) argument 151 #define setuser(ut) ((ut).ut_exit.e_exit = NONROOT_USR) argument
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | auth_time.c | 204 char ut[INET6_ADDRSTRLEN]; in __rpc_get_time_offset() local 469 (void) sprintf(ut, "%d.%d.%d.%d.0.37", in __rpc_get_time_offset() 476 if (strlen(useua) >= sizeof (ut)) { in __rpc_get_time_offset() 480 (void) strcpy(ut, useua); in __rpc_get_time_offset() 483 if ((dot = strrchr(ut, '.')) != 0) { in __rpc_get_time_offset() 485 if ((dot = strrchr(ut, '.')) != 0) in __rpc_get_time_offset() 493 if ((len = strlen(ut))+strlen(port) >= in __rpc_get_time_offset() 494 sizeof (ut)) { in __rpc_get_time_offset() 498 (void) strcat(ut + len, port); in __rpc_get_time_offset() 502 addr = uaddr2taddr(nc, ut); in __rpc_get_time_offset()
|
/titanic_41/usr/src/uts/i86pc/io/dr/ |
H A D | dr.c | 102 #define DR_GET_BOARD_DEVUNIT(sb, ut, un) (&((sb)->b_dev[DEVSET_NIX(ut)][un])) argument 2661 int s, ut; in dr_check_transition() local 2670 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_check_transition() 2671 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in dr_check_transition() 2674 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut); in dr_check_transition() 2677 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition() 2682 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition() 2688 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition() 2689 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in dr_check_transition() 2692 cp = dr_get_common_unit(bp, SBD_COMP_MEM, ut); in dr_check_transition() [all …]
|
/titanic_41/usr/src/uts/sun4u/ngdr/io/ |
H A D | dr.c | 96 #define DR_GET_BOARD_DEVUNIT(sb, ut, un) (&((sb)->b_dev[NIX(ut)][un])) argument 2691 int s, ut; in dr_check_transition() local 2700 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_check_transition() 2701 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in dr_check_transition() 2704 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut); in dr_check_transition() 2707 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition() 2712 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition() 2718 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition() 2719 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in dr_check_transition() 2722 cp = dr_get_common_unit(bp, SBD_COMP_MEM, ut); in dr_check_transition() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.rlogind.c | 1142 struct utmpx ut; in doit() local 1145 (void) memset(&ut, 0, sizeof (ut)); in doit() 1146 (void) strncpy(ut.ut_user, ".rlogin", sizeof (ut.ut_user)); in doit() 1147 (void) strncpy(ut.ut_line, line, sizeof (ut.ut_line)); in doit() 1148 ut.ut_pid = getpid(); in doit() 1149 ut.ut_id[0] = 'r'; in doit() 1150 ut.ut_id[1] = (char)SC_WILDC; in doit() 1151 ut.ut_id[2] = (char)SC_WILDC; in doit() 1152 ut.ut_id[3] = (char)SC_WILDC; in doit() 1153 ut.ut_type = LOGIN_PROCESS; in doit() [all …]
|
/titanic_41/usr/src/cmd/ssh/libopenbsd-compat/common/ |
H A D | bsd-cray.c | 685 cray_retain_utmp(struct utmp *ut, int pid) in cray_retain_utmp() argument 693 ut->ut_jid = utmp.ut_jid; in cray_retain_utmp() 694 strncpy(ut->ut_tpath, utmp.ut_tpath, sizeof(utmp.ut_tpath)); in cray_retain_utmp() 695 strncpy(ut->ut_host, utmp.ut_host, sizeof(utmp.ut_host)); in cray_retain_utmp() 696 strncpy(ut->ut_name, utmp.ut_name, sizeof(utmp.ut_name)); in cray_retain_utmp() 788 cray_set_tmpdir(struct utmp *ut) in cray_set_tmpdir() argument 799 ut->ut_jid = jid; in cray_set_tmpdir() 800 strncpy(ut->ut_tpath, cray_tmpdir, TPATHSIZ); in cray_set_tmpdir()
|
/titanic_41/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1382 struct utmpx ut; in setup_utmpx() local 1384 bzero(&ut, sizeof (ut)); in setup_utmpx() 1385 (void) strncpy(ut.ut_user, ".zlogin", sizeof (ut.ut_user)); in setup_utmpx() 1386 (void) strncpy(ut.ut_line, slavename, sizeof (ut.ut_line)); in setup_utmpx() 1387 ut.ut_pid = getpid(); in setup_utmpx() 1388 ut.ut_id[0] = 'z'; in setup_utmpx() 1389 ut.ut_id[1] = ut.ut_id[2] = ut.ut_id[3] = (char)SC_WILDC; in setup_utmpx() 1390 ut.ut_type = LOGIN_PROCESS; in setup_utmpx() 1391 (void) time(&ut.ut_tv.tv_sec); in setup_utmpx() 1393 if (makeutx(&ut) == NULL) { in setup_utmpx()
|
/titanic_41/usr/src/cmd/rcap/rcapd/ |
H A D | rcapd_collection.c | 59 lcollection_update(lcollection_update_type_t ut) in lcollection_update() argument 61 lcollection_update_zone(ut, lcollection_update_notification_cb); in lcollection_update() 62 lcollection_update_project(ut, lcollection_update_notification_cb); in lcollection_update()
|
H A D | rcapd_collection_project.c | 124 lcollection_update_project(lcollection_update_type_t ut, in lcollection_update_project() argument 127 switch (ut) { in lcollection_update_project()
|
/titanic_41/usr/src/uts/sun4u/io/ |
H A D | sbd.c | 1762 int s, ut; in sbd_check_transition() local 1782 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in sbd_check_transition() 1783 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in sbd_check_transition() 1785 s = (int)SBD_DEVICE_STATE(sbp, SBD_COMP_MEM, ut); in sbd_check_transition() 1789 DEVSET_DEL(devset, SBD_COMP_MEM, ut); in sbd_check_transition() 1795 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in sbd_check_transition() 1796 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in sbd_check_transition() 1798 s = (int)SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, ut); in sbd_check_transition() 1802 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in sbd_check_transition() 1808 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in sbd_check_transition() [all …]
|
/titanic_41/usr/src/cmd/rexd/ |
H A D | unix_login.c | 418 struct utmpx ut; in LogoutUser() local 420 char user[sizeof (ut.ut_user) + 1]; in LogoutUser() 421 char ttyn[sizeof (ut.ut_line) + 1]; in LogoutUser() 422 char rhost[sizeof (ut.ut_host) + 1]; in LogoutUser()
|
/titanic_41/usr/src/lib/libast/common/comp/ |
H A D | omitted.c | 967 utimes(const char* path, const struct timeval* ut) in utimes() argument 974 if ((r = _utimes(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0)) in utimes() 977 r = _utimes(path = buf, ut); in utimes() 985 utime(const char* path, const struct utimbuf* ut) in utime() argument 992 if ((r = _utime(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0)) in utime() 995 r = _utime(path = buf, ut); in utime()
|