Searched defs:ut (Results 1 - 25 of 30) sorted by relevance

12

/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/cmd/rcap/rcapd/
H A Drcapd_collection_zone.c80 lcollection_update_zone(lcollection_update_type_t ut, argument
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);
/illumos-gate/usr/src/cmd/ttymon/
H A Dtmutmp.c129 struct utmpx ut; local
/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/lib/libc/port/gen/
H A Dgetut.c424 _compat_updwtmp(const char *file, struct utmp *ut) argument
439 utmp_api2frec(ut, &fut);
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/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/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/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/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/cmd/saf/
H A Dsac.c463 struct utmpx ut; local
/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);
/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/uts/common/crypto/io/
H A Dswrand.c878 clock_t ut; /* time in microseconds */ local
891 ut = 700000 + (clock_t)(srndpool[0] & 0xFFFFF);
893 TIMEOUT_INTERVAL * drv_usectohz(ut));
/illumos-gate/usr/src/lib/libast/common/comp/
H A Domitted.c967 utimes(const char* path, const struct timeval* ut) argument
974 if ((r = _utimes(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
977 r = _utimes(path = buf, ut);
985 utime(const char* path, const struct utimbuf* ut) argument
992 if ((r = _utime(path, ut)) && errno == ENOENT && execrate(path, buf, sizeof(buf), 0))
995 r = _utime(path = buf, ut);
/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/uts/common/crypto/api/
H A Dkcf_random.c885 clock_t ut; /* time in microseconds */ local
895 ut = 500000 + (clock_t)((((uint32_t)rndpool[findex]) << 12) & 0xFF000);
897 TIMEOUT_INTERVAL * drv_usectohz(ut));
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dwanboot.c262 build_request_url(url_t *req_url, enum URLtype ut, const url_t *server_url) argument
307 CGIcontent(ut), netstr, wid) >= URL_MAX_PATHLEN - plen) {
310 "the maximum of %d", CGIcontent(ut), URL_MAX_PATHLEN);
319 if (ut == URLtype_wanbootfs) {
/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...]

Completed in 90 milliseconds

12