Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/lib/libutempter/common/
H A Dutempter.c42 struct utmpx ut; in utempter_update_utmpx() local
46 (void) memset(&ut, 0, sizeof (ut)); in utempter_update_utmpx()
47 ut.ut_type = type; in utempter_update_utmpx()
48 ut.ut_pid = getpid(); in utempter_update_utmpx()
51 if (snprintf(ut.ut_id, sizeof (ut.ut_id), "f%d", fd) >= in utempter_update_utmpx()
52 sizeof (ut.ut_id)) in utempter_update_utmpx()
57 (void) strlcpy(ut.ut_user, pw->pw_name, sizeof (ut.ut_user)); in utempter_update_utmpx()
70 (void) strlcpy(ut.ut_line, ut1->ut_line, sizeof (ut.ut_line)); in utempter_update_utmpx()
80 (void) strlcpy(ut.ut_host, host, sizeof (ut.ut_host)); in utempter_update_utmpx()
81 ut.ut_syslen = strlen(ut.ut_host) + 1; in utempter_update_utmpx()
[all …]
/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/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/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/lib/libc/port/gen/
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/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/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/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/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()
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr.c102 #define DR_GET_BOARD_DEVUNIT(sb, ut, un) (&((sb)->b_dev[DEVSET_NIX(ut)][un])) argument
2662 int s, ut; in dr_check_transition() local
2671 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2689 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2707 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in dr_check_transition()
3138 int ut; in dr_board_discovery() local
3158 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
3162 cp = dr_get_cpu_unit(bp, ut); in dr_board_discovery()
3166 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
3174 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr.c96 #define DR_GET_BOARD_DEVUNIT(sb, ut, un) (&((sb)->b_dev[NIX(ut)][un])) argument
2692 int s, ut; in dr_check_transition() local
2701 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2719 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2737 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in dr_check_transition()
3181 int ut; in dr_board_discovery() local
3199 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
3203 cp = dr_get_cpu_unit(bp, ut); in dr_board_discovery()
3207 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
3215 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in dr_board_discovery()
[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/test/util-tests/tests/svr4pkg/files/data/a/
H A Dfile1.txt2 incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
3 quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
/illumos-gate/usr/src/test/util-tests/tests/svr4pkg/files/data/b/
H A Dfile2.txt2 incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
3 quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
/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/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/uts/sun4u/io/
H A Dsbd.c1750 int s, ut; in sbd_check_transition() local
1770 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
1783 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
1796 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
2859 if (ut == -1) { in sbd_get_devlist()
2866 if ((uset & (1 << ut)) == 0) in sbd_get_devlist()
2868 uset &= ~(1 << ut); in sbd_get_devlist()
4777 int ut; in sbd_board_discovery() local
4788 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) in sbd_board_discovery()
4794 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) in sbd_board_discovery()
[all …]
/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/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/test/util-tests/tests/awk/examples/awk/
H A Dt.stately1 …me|md|ma|mi|mn|ms|mo|mt|nb|nv|nh|nj|nm|ny|nc|nd|oh|ok|or|pa|ri|sc|sd|tn|tx|ut|vt|va|wa|wv|wi|-|wy)…
/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()

12