Home
last modified time | relevance | path

Searched refs:ut (Results 1 – 25 of 36) sorted by path

12

/illumos-gate/usr/src/cmd/bnu/
H A Din.uucpd.c368 struct utmpx ut; local
379 (void) memset((char *)&ut, 0, sizeof (ut));
382 ut.ut_id[0] = 'u';
383 ut.ut_id[1] = 'u';
392 ut.ut_syslen = 1;
432 struct utmpx ut; local
442 (void) memset((void *)&ut, 0, sizeof (ut));
445 ut.ut_id[0] = 'u';
446 ut.ut_id[1] = 'u';
452 ut.ut_pid = getpid();
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1142 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()
1153 ut.ut_type = LOGIN_PROCESS; in doit()
1155 ut.ut_exit.e_exit = 0; in doit()
[all …]
H A Din.telnetd.c3140 struct utmpx ut; in doit() local
3141 (void) memset((char *)&ut, 0, sizeof (ut)); in doit()
3142 (void) strncpy(ut.ut_user, ".telnet", sizeof (ut.ut_user)); in doit()
3143 (void) strncpy(ut.ut_line, line, sizeof (ut.ut_line)); in doit()
3144 ut.ut_pid = getpid(); in doit()
3145 ut.ut_id[0] = 't'; in doit()
3146 ut.ut_id[1] = (char)SC_WILDC; in doit()
3147 ut.ut_id[2] = (char)SC_WILDC; in doit()
3149 ut.ut_type = LOGIN_PROCESS; in doit()
3151 ut.ut_exit.e_exit = 0; in doit()
[all …]
/illumos-gate/usr/src/cmd/dumpadm/
H A Ddconf.c93 struct utsname ut; in dconf_init() local
103 if (uname(&ut) != -1) { in dconf_init()
105 (void) strcat(dcp->dc_savdir, ut.nodename); in dconf_init()
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/
H A Dstorage.esc112 event ereport.chassis.sensor.temp.ut@controller;
113 event ereport.chassis.sensor.temp.ut@fanmodule;
114 event ereport.chassis.sensor.temp.ut@psu;
222 ereport.chassis.sensor.temp.ut@controller;
226 ereport.chassis.sensor.temp.ut@fanmodule;
230 ereport.chassis.sensor.temp.ut@psu;
/illumos-gate/usr/src/cmd/psradm/
H A Dpsradm.c52 static struct utmpx ut; /* structure for logging to /etc/wtmpx. */ variable
175 ut.ut_pid = getpid(); in psr_set_state()
176 ut.ut_type = USER_PROCESS; in psr_set_state()
177 (void) strncpy(ut.ut_user, "psradm", sizeof (ut.ut_user) - 1); in psr_set_state()
185 (void) snprintf(ut.ut_line, sizeof (ut.ut_line), PSRADM_MSG, in psr_set_state()
188 ut.ut_xtime = now; in psr_set_state()
189 updwtmpx(WTMPX_FILE, &ut); in psr_set_state()
/illumos-gate/usr/src/cmd/rcap/rcapd/
H A Drcapd_collection.c57 lcollection_update(lcollection_update_type_t ut) in lcollection_update() argument
59 lcollection_update_zone(ut, lcollection_update_notification_cb); in lcollection_update()
60 lcollection_update_project(ut, lcollection_update_notification_cb); in lcollection_update()
H A Drcapd_collection_project.c122 lcollection_update_project(lcollection_update_type_t ut, in lcollection_update_project() argument
125 switch (ut) { in lcollection_update_project()
H A Drcapd_collection_zone.c78 lcollection_update_zone(lcollection_update_type_t ut, in lcollection_update_zone() argument
/illumos-gate/usr/src/cmd/saf/
H A Dsac.c460 struct utmpx ut; in cleanutx() local
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c65 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()
90 ut.ut_type = INIT_PROCESS; in utmpx_mark_init()
101 bcopy(oldu->ut_line, ut.ut_line, sizeof (ut.ut_line)); in utmpx_mark_init()
102 bcopy(oldu->ut_host, ut.ut_host, sizeof (ut.ut_host)); in utmpx_mark_init()
103 ut.ut_syslen = (tmplen = strlen(ut.ut_host)) ? in utmpx_mark_init()
107 if (makeutx(&ut) != NULL) in utmpx_mark_init()
[all …]
/illumos-gate/usr/src/cmd/w/
H A Dw.c149 struct utmpx *ut; in main() local
278 utmpbegin = ut; in main()
283 (void) memcpy(ut++, utp, sizeof (*ut)); in main()
290 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
292 if (!nonuserx(*ut)) in main()
478 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
500 &ut->ut_line[4])); in main()
503 ut->ut_line)); in main()
509 time_t tim = ut->ut_xtime; in main()
514 idle = findidle(ut->ut_line); in main()
[all …]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c182 struct utmpx *ut; in main() local
301 utmpbegin = ut; in main()
306 (void) memcpy(ut++, utp, sizeof (*ut)); in main()
314 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
318 uptime = now - ut->ut_xtime; in main()
528 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
538 ut->ut_name); in main()
542 ut->ut_line); in main()
545 tim = ut->ut_xtime; in main()
549 idle = findidle(ut->ut_line); in main()
[all …]
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1383 struct utmpx ut; in setup_utmpx() local
1385 bzero(&ut, sizeof (ut)); in setup_utmpx()
1386 (void) strncpy(ut.ut_user, ".zlogin", sizeof (ut.ut_user)); in setup_utmpx()
1387 (void) strncpy(ut.ut_line, slavename, sizeof (ut.ut_line)); in setup_utmpx()
1388 ut.ut_pid = getpid(); in setup_utmpx()
1389 ut.ut_id[0] = 'z'; in setup_utmpx()
1390 ut.ut_id[1] = ut.ut_id[2] = ut.ut_id[3] = (char)SC_WILDC; in setup_utmpx()
1391 ut.ut_type = LOGIN_PROCESS; in setup_utmpx()
1392 (void) time(&ut.ut_tv.tv_sec); in setup_utmpx()
1394 if (makeutx(&ut) == NULL) { in setup_utmpx()
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/
H A Dproto.c174 time_t ut[2]; local
188 ut[0] = st.st_atime;
189 ut[1] = st.st_mtime;
190 preserve = utime(oldfile, ut);
/illumos-gate/usr/src/contrib/ast/src/lib/libast/comp/
H A Domitted.c1050 utimes(const char* path, const struct timeval* ut) in utimes() argument
1057 if ((r = sysutimes(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0)) in utimes()
1060 r = sysutimes(path = buf, ut); in utimes()
1068 utime(const char* path, const struct utimbuf* ut) in utime() argument
1075 if ((r = sysutime(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0)) in utime()
1078 r = sysutime(path = buf, ut); in utime()
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duname.c169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1)) in uname()
172 strncpy(ut->nodename, "local", sizeof(ut->nodename) - 1); in uname()
178 ut->sysname = ut->nodename; in uname()
232 if ((char*)&ut.m[sizeof(ut.m)] > last) \
233 last = (char*)&ut.m[sizeof(ut.m)]; \
262 struct utsname ut; in b_uname() local
380 memzero(&ut, sizeof(ut)); in b_uname()
389 s = ut.nodename; in b_uname()
398 s = ut.machine; in b_uname()
459 s = ut.m_type; in b_uname()
[all …]
/illumos-gate/usr/src/data/terminfo/
H A Dtermcap.src666 :ut:\
678 :ut:\
1623 :ut:\
2709 :ut:\
3353 :ut:\
4252 :ut:\
4377 :ut:\
4380 :ut:\
4383 :ut:\
4386 :ut:\
[all …]
/illumos-gate/usr/src/head/
H A Dutmp.h150 #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
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetut.c424 _compat_updwtmp(const char *file, struct utmp *ut) in _compat_updwtmp() argument
439 utmp_api2frec(ut, &fut); in _compat_updwtmp()
H A Dgetutx.c897 getutmpx(ut, &utmpx); in updwtmp()
900 _compat_updwtmp(file, ut); in updwtmp()
1185 if (ut) { in makeutx()
1362 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx()
1365 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line)); in getutmpx()
1368 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id)); in getutmpx()
1369 utx->ut_pid = ut->ut_pid; in getutmpx()
1370 utx->ut_type = ut->ut_type; in getutmpx()
1386 (void) memcpy(ut->ut_user, utx->ut_user, sizeof (ut->ut_user)); in getutmp()
1387 (void) memcpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line)); in getutmp()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dcaps69 back_color_erase, "bce" "ut" Erases screen with current background
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_die_deliv.c189 is_unknown_UT_value(int ut) in is_unknown_UT_value() argument
191 switch(ut) { in is_unknown_UT_value()
H A Ddwarf_loc.c588 int ut = context->cc_unit_type; in context_is_cu_not_tu() local
590 if (ut == DW_UT_type || ut == DW_UT_split_type ) { in context_is_cu_not_tu()
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_time.c202 char ut[INET6_ADDRSTRLEN]; in __rpc_get_time_offset() local
467 (void) sprintf(ut, "%d.%d.%d.%d.0.37", in __rpc_get_time_offset()
474 if (strlen(useua) >= sizeof (ut)) { in __rpc_get_time_offset()
478 (void) strcpy(ut, useua); in __rpc_get_time_offset()
481 if ((dot = strrchr(ut, '.')) != 0) { in __rpc_get_time_offset()
483 if ((dot = strrchr(ut, '.')) != 0) in __rpc_get_time_offset()
491 if ((len = strlen(ut))+strlen(port) >= in __rpc_get_time_offset()
492 sizeof (ut)) { in __rpc_get_time_offset()
496 (void) strcat(ut + len, port); in __rpc_get_time_offset()
500 addr = uaddr2taddr(nc, ut); in __rpc_get_time_offset()

12