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()
49 ut.ut_session = getsid(0); in utempter_update_utmpx()
50 (void) gettimeofday(&ut.ut_tv, NULL); 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()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Duname.c146 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 …]
/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';
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 …]
/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()
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 …]
/illumos-gate/usr/src/cmd/w/
H A Dw.c149 struct utmpx *ut; in main() local
273 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
278 utmpbegin = ut; in main()
282 while ((ut < utmpend) && ((utp = getutxent()) != NULL)) in main()
283 (void) memcpy(ut++, utp, sizeof (*ut)); in main()
290 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
291 if (ut->ut_type == USER_PROCESS) { in main()
292 if (!nonuserx(*ut)) in main()
294 } else if (ut->ut_type == BOOT_TIME) { in main()
295 uptime = now - ut->ut_xtime; in main()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c889 updwtmp(const char *file, struct utmp *ut) in updwtmp() argument
897 getutmpx(ut, &utmpx); in updwtmp()
900 _compat_updwtmp(file, ut); in updwtmp()
1147 struct futmpx *ut; /* "current" utmpx being examined */ in makeutx() local
1169 while ((ut = getoneutx(&offset)) != NULL) in makeutx()
1170 if (idcmp(utmp->ut_id, ut->ut_id)) { in makeutx()
1178 if (ut->ut_type == DEAD_PROCESS) in makeutx()
1181 (void) memcpy(saveid, ut->ut_id, in makeutx()
1185 if (ut) { in makeutx()
1191 (void) memcpy((caddr_t)utmp->ut_id, ut->ut_id, IDLEN); in makeutx()
[all …]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c182 struct utmpx *ut; in main() local
296 if ((ut = calloc(entries, sizeof (struct utmpx))) == NULL) in main()
301 utmpbegin = ut; in main()
305 while ((ut < utmpend) && ((utp = getutxent()) != NULL)) in main()
306 (void) memcpy(ut++, utp, sizeof (*ut)); in main()
314 for (ut = utmpbegin; ut < utmpend; ut++) { in main()
315 if (ut->ut_type == USER_PROCESS) { in main()
317 } else if (ut->ut_type == BOOT_TIME) { in main()
318 uptime = now - ut->ut_xtime; in main()
333 ut = utmpbegin; /* rewind utmp data */ 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()
2672 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in dr_check_transition()
2675 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut); in dr_check_transition()
2678 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition()
2683 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition()
2689 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2690 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in dr_check_transition()
2693 cp = dr_get_common_unit(bp, SBD_COMP_MEM, ut); in dr_check_transition()
[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()
2702 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in dr_check_transition()
2705 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut); in dr_check_transition()
2708 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition()
2713 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in dr_check_transition()
2719 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) { in dr_check_transition()
2720 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in dr_check_transition()
2723 cp = dr_get_common_unit(bp, SBD_COMP_MEM, ut); in dr_check_transition()
[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()
1152 ut.ut_id[3] = (char)SC_WILDC; in doit()
1153 ut.ut_type = LOGIN_PROCESS; 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()
3148 ut.ut_id[3] = (char)SC_WILDC; in doit()
3149 ut.ut_type = LOGIN_PROCESS; in doit()
[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/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/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()
1771 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0) in sbd_check_transition()
1773 s = (int)SBD_DEVICE_STATE(sbp, SBD_COMP_MEM, ut); in sbd_check_transition()
1777 DEVSET_DEL(devset, SBD_COMP_MEM, ut); in sbd_check_transition()
1783 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
1784 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0) in sbd_check_transition()
1786 s = (int)SBD_DEVICE_STATE(sbp, SBD_COMP_CPU, ut); in sbd_check_transition()
1790 DEVSET_DEL(devset, SBD_COMP_CPU, ut); in sbd_check_transition()
1796 for (ut = 0; ut < MAX_IO_UNITS_PER_BOARD; ut++) { in sbd_check_transition()
[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.c94 struct utsname ut; in dconf_init() local
104 if (uname(&ut) != -1) { in dconf_init()
106 (void) strcat(dcp->dc_savdir, ut.nodename); in dconf_init()

12