Searched refs:ut (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/libbc/inc/include/
H A Dutmp.h47 #define nonuser(ut) ((ut).ut_host[0] == 0 && \
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'))
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c87 struct compat_utmp *ut; local
91 ut = (struct compat_utmp *)buf;
94 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line));
95 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name));
96 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host));
97 ut->ut_time = utx->ut_tv.tv_sec;
99 ut
[all...]
H A Dwrite.c100 struct compat_utmp *ut; local
104 ut = (struct compat_utmp *) buf;
106 while ((char *)ut < (buf + len)) {
107 (void) strcpy(utx->ut_user, ut->ut_name);
109 (void) strcpy(utx->ut_line, ut->ut_line);
118 utx->ut_tv.tv_sec = ut->ut_time;
121 utx->ut_syslen = sizeof (ut->ut_name) + 1;
122 (void) strcpy(utx->ut_host, ut->ut_host);
123 ut++;
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c82 struct compat_utmp *ut; local
86 ut = (struct compat_utmp *)buf;
89 (void) strncpy(ut->ut_line, utx->ut_line, sizeof (ut->ut_line));
90 (void) strncpy(ut->ut_name, utx->ut_user, sizeof (ut->ut_name));
91 (void) strncpy(ut->ut_host, utx->ut_host, sizeof (ut->ut_host));
92 ut->ut_time = utx->ut_tv.tv_sec;
94 ut
[all...]
H A Dwrite.c88 struct compat_utmp *ut; local
92 ut = (struct compat_utmp *) buf;
94 while ((char *)ut < (buf + len)) {
95 (void) strcpy(utx->ut_user, ut->ut_name);
97 (void) strcpy(utx->ut_line, ut->ut_line);
106 utx->ut_tv.tv_sec = ut->ut_time;
109 utx->ut_syslen = sizeof (ut->ut_name) + 1;
110 (void) strcpy(utx->ut_host, ut->ut_host);
111 ut++;
/illumos-gate/usr/src/lib/libcmd/common/
H A Duname.c146 uname(register struct utsname* ut) argument
169 if (gethostname(ut->nodename, sizeof(ut->nodename) - 1))
172 strncpy(ut->nodename, "local", sizeof(ut->nodename) - 1);
175 if (!(ut->sysname = sys))
177 if (!*(ut->sysname = SYSNAME))
178 ut->sysname = ut->nodename;
180 if (!(ut
262 struct utsname ut; local
[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
434 struct utmpx ut; local
[all...]
/illumos-gate/usr/src/cmd/svc/startd/
H A Dutmpx.c65 struct utmpx ut, *oldu; local
81 (void) memset(&ut, 0, sizeof (ut));
82 (void) strncpy(ut.ut_user, ".startd", sizeof (ut.ut_user));
83 ut.ut_pid = pid;
85 ut.ut_id[0] = ut.ut_id[1] = ut.ut_id[2] = ut
[all...]
/illumos-gate/usr/src/head/
H A Dutmp.h150 #define nonuser(ut) ((ut).ut_exit.e_exit == NONROOT_USR ? 1 : 0)
151 #define setuser(ut) ((ut).ut_exit.e_exit = NONROOT_USR)
/illumos-gate/usr/src/cmd/w/
H A Dw.c158 struct utmpx *ut; local
245 if ((ut = malloc(size)) == NULL) {
253 utmpbegin = ut;
257 while ((ut < utmpend) && ((utp = getutxent()) != NULL))
258 (void) memcpy(ut++, utp, sizeof (*ut));
265 for (ut = utmpbegin; ut < utmpend; ut++) {
266 if (ut
[all...]
/illumos-gate/usr/src/cmd/whodo/
H A Dwhodo.c162 struct utmpx *ut; local
240 if ((ut = malloc(size)) == NULL) {
248 utmpbegin = ut;
253 while ((ut < utmpend) && ((utp = getutxent()) != NULL))
254 (void) memcpy(ut++, utp, sizeof (*ut));
262 for (ut = utmpbegin; ut < utmpend; ut++) {
263 if (ut
[all...]
/illumos-gate/usr/src/cmd/psradm/
H A Dpsradm.c49 static struct utmpx ut; /* structure for logging to /etc/wtmpx. */ variable in typeref:struct:utmpx
169 ut.ut_pid = getpid();
170 ut.ut_type = USER_PROCESS;
171 (void) strncpy(ut.ut_user, "psradm", sizeof (ut.ut_user) - 1);
179 (void) snprintf(ut.ut_line, sizeof (ut.ut_line), PSRADM_MSG,
182 ut.ut_xtime = now;
183 updwtmpx(WTMPX_FILE, &ut);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetutx.c890 updwtmp(const char *file, struct utmp *ut) argument
898 getutmpx(ut, &utmpx);
901 _compat_updwtmp(file, ut);
1148 struct futmpx *ut; /* "current" utmpx being examined */ local
1170 while (ut = getoneutx(&offset))
1171 if (idcmp(utmp->ut_id, ut->ut_id)) {
1179 if (ut->ut_type == DEAD_PROCESS)
1182 (void) memcpy(saveid, ut->ut_id,
1186 if (ut) {
1192 (void) memcpy((caddr_t)utmp->ut_id, ut
1361 getutmpx(const struct utmp *ut, struct utmpx *utx) argument
1385 getutmp(const struct utmpx *utx, struct utmp *ut) argument
[all...]
/illumos-gate/usr/src/cmd/rcap/rcapd/
H A Drcapd_collection_project.c124 lcollection_update_project(lcollection_update_type_t ut, argument
127 switch (ut) {
H A Drcapd_collection.c59 lcollection_update(lcollection_update_type_t ut) argument
61 lcollection_update_zone(ut, lcollection_update_notification_cb);
62 lcollection_update_project(ut, lcollection_update_notification_cb);
H A Drcapd_collection_zone.c80 lcollection_update_zone(lcollection_update_type_t ut, argument
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dauth_time.c204 char ut[INET6_ADDRSTRLEN]; local
469 (void) sprintf(ut, "%d.%d.%d.%d.0.37",
476 if (strlen(useua) >= sizeof (ut)) {
480 (void) strcpy(ut, useua);
483 if ((dot = strrchr(ut, '.')) != 0) {
485 if ((dot = strrchr(ut, '.')) != 0)
493 if ((len = strlen(ut))+strlen(port) >=
494 sizeof (ut)) {
498 (void) strcat(ut + len, port);
502 addr = uaddr2taddr(nc, ut);
[all...]
/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]))
2661 int s, ut; local
2670 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) {
2671 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0)
2674 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut);
2677 DEVSET_DEL(devset, SBD_COMP_CPU, ut);
2682 DEVSET_DEL(devset, SBD_COMP_CPU, ut);
3137 int ut; local
[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]))
2691 int s, ut; local
2700 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut++) {
2701 if (DEVSET_IN_SET(devset, SBD_COMP_CPU, ut) == 0)
2704 cp = dr_get_common_unit(bp, SBD_COMP_CPU, ut);
2707 DEVSET_DEL(devset, SBD_COMP_CPU, ut);
2712 DEVSET_DEL(devset, SBD_COMP_CPU, ut);
3180 int ut; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rlogind.c1142 struct utmpx ut; local
1145 (void) memset(&ut, 0, sizeof (ut));
1146 (void) strncpy(ut.ut_user, ".rlogin", sizeof (ut.ut_user));
1147 (void) strncpy(ut.ut_line, line, sizeof (ut.ut_line));
1148 ut.ut_pid = getpid();
1149 ut.ut_id[0] = 'r';
1150 ut
[all...]
/illumos-gate/usr/src/cmd/zlogin/
H A Dzlogin.c1382 struct utmpx ut; local
1384 bzero(&ut, sizeof (ut));
1385 (void) strncpy(ut.ut_user, ".zlogin", sizeof (ut.ut_user));
1386 (void) strncpy(ut.ut_line, slavename, sizeof (ut.ut_line));
1387 ut.ut_pid = getpid();
1388 ut.ut_id[0] = 'z';
1389 ut
[all...]
/illumos-gate/usr/src/uts/sun4u/io/
H A Dsbd.c1762 int s, ut; local
1782 for (ut = 0; ut < MAX_MEM_UNITS_PER_BOARD; ut++) {
1783 if (DEVSET_IN_SET(devset, SBD_COMP_MEM, ut) == 0)
1785 s = (int)SBD_DEVICE_STATE(sbp, SBD_COMP_MEM, ut);
1789 DEVSET_DEL(devset, SBD_COMP_MEM, ut);
1795 for (ut = 0; ut < MAX_CPU_UNITS_PER_BOARD; ut
2842 int ut, is_present, is_attached; local
4801 int ut; local
[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/cmd/rexd/
H A Dunix_login.c418 struct utmpx ut; local
420 char user[sizeof (ut.ut_user) + 1];
421 char ttyn[sizeof (ut.ut_line) + 1];
422 char rhost[sizeof (ut.ut_host) + 1];
/illumos-gate/usr/src/cmd/dumpadm/
H A Ddconf.c91 struct utsname ut; local
101 if (uname(&ut) != -1) {
103 (void) strcat(dcp->dc_savdir, ut.nodename);

Completed in 237 milliseconds

12