Home
last modified time | relevance | path

Searched refs:ut (Results 1 – 25 of 37) 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.c370 struct utmpx ut; local
381 (void) memset((char *)&ut, 0, sizeof (ut));
384 ut.ut_id[0] = 'u';
385 ut.ut_id[1] = 'u';
394 ut.ut_syslen = 1;
434 struct utmpx ut; local
444 (void) memset((void *)&ut, 0, sizeof (ut));
447 ut.ut_id[0] = 'u';
448 ut.ut_id[1] = 'u';
454 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.c898 getutmpx(ut, &utmpx); in updwtmp()
901 _compat_updwtmp(file, ut); in updwtmp()
1186 if (ut) { in makeutx()
1363 (void) memcpy(utx->ut_user, ut->ut_user, sizeof (ut->ut_user)); in getutmpx()
1366 (void) memcpy(utx->ut_line, ut->ut_line, sizeof (ut->ut_line)); in getutmpx()
1369 (void) memcpy(utx->ut_id, ut->ut_id, sizeof (ut->ut_id)); in getutmpx()
1370 utx->ut_pid = ut->ut_pid; in getutmpx()
1371 utx->ut_type = ut->ut_type; in getutmpx()
1387 (void) memcpy(ut->ut_user, utx->ut_user, sizeof (ut->ut_user)); in getutmp()
1388 (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.c204 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()
/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.c59 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 Drcapd_collection_project.c124 lcollection_update_project(lcollection_update_type_t ut, in lcollection_update_project() argument
127 switch (ut) { in lcollection_update_project()
H A Drcapd_collection_zone.c80 lcollection_update_zone(lcollection_update_type_t ut, in lcollection_update_zone() argument
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd.c1762 int s, ut; in sbd_check_transition() local
1782 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
1795 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
1808 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
2874 if (ut == -1) { in sbd_get_devlist()
2881 if ((uset & (1 << ut)) == 0) in sbd_get_devlist()
2883 uset &= ~(1 << ut); in sbd_get_devlist()
4801 int ut; in sbd_board_discovery() local
4812 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) in sbd_board_discovery()
4818 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