Home
last modified time | relevance | path

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

12

/mirbsd/src/usr.bin/rusers/
Drusers.c243 rusers_utmp *ut; in rusers_reply() local
260 ut = NULL; in rusers_reply()
261 else if ((ut = malloc(up->uia_cnt * sizeof(*ut))) == NULL) in rusers_reply()
263 entry->users = ut; in rusers_reply()
266 for (i = 0; i < up->uia_cnt; i++, ut++) { in rusers_reply()
267 ut->ut_user = estrndup(up->uia_arr[i]->ui_utmp.ut_name, in rusers_reply()
269 ut->ut_line = estrndup(up->uia_arr[i]->ui_utmp.ut_line, in rusers_reply()
271 ut->ut_host = estrndup(up->uia_arr[i]->ui_utmp.ut_host, in rusers_reply()
273 ut->ut_time = up->uia_arr[i]->ui_utmp.ut_time; in rusers_reply()
274 ut->ut_idle = up->uia_arr[i]->ui_idle; in rusers_reply()
[all …]
/mirbsd/src/lib/libutil/
Dlogwtmp.c51 struct utmp ut; in logwtmp() local
57 (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in logwtmp()
58 (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in logwtmp()
59 (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in logwtmp()
60 (void) time(&ut.ut_time); in logwtmp()
61 if (write(fd, &ut, sizeof(struct utmp)) != in logwtmp()
Dlogout.c52 UTMP ut; in logout() local
57 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) { in logout()
58 if (!ut.ut_name[0] || strncmp(ut.ut_line, line, UT_LINESIZE)) in logout()
60 memset(ut.ut_name, 0, UT_NAMESIZE); in logout()
61 memset(ut.ut_host, 0, UT_HOSTSIZE); in logout()
62 (void)time(&ut.ut_time); in logout()
64 (void)write(fd, &ut, sizeof(UTMP)); in logout()
/mirbsd/src/libexec/ftpd/
Dlogwtmp.c68 struct utmp ut; in ftpdlogwtmp() local
73 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line)); in ftpdlogwtmp()
74 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name)); in ftpdlogwtmp()
75 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host)); in ftpdlogwtmp()
77 ut.ut_time = tv.tv_sec; in ftpdlogwtmp()
78 if (write(fd, (char *)&ut, sizeof(struct utmp)) != in ftpdlogwtmp()
Dlogutmp.c58 ftpd_login(struct utmp *ut) in ftpd_login() argument
96 (void)write(fd, ut, sizeof(struct utmp)); in ftpd_login()
103 struct utmp ut; in ftpd_logout() local
112 while (read(fd, &ut, sizeof(struct utmp)) == sizeof(struct utmp)) { in ftpd_logout()
113 if (!ut.ut_name[0] || in ftpd_logout()
114 strncmp(ut.ut_line, line, UT_LINESIZE)) in ftpd_logout()
116 bzero(ut.ut_name, UT_NAMESIZE); in ftpd_logout()
117 bzero(ut.ut_host, UT_HOSTSIZE); in ftpd_logout()
119 ut.ut_time = tv.tv_sec; in ftpd_logout()
121 (void)write(fd, &ut, sizeof(struct utmp)); in ftpd_logout()
Dextern.h106 void ftpd_login(struct utmp *ut);
/mirbsd/src/libexec/rpc.rusersd/
Drusers_proc.c149 static utmp_array ut; in do_names_3() local
153 bzero((char *)&ut, sizeof(ut)); in do_names_3()
154 ut.utmp_array_val = &utmps[0]; in do_names_3()
190 ut.utmp_array_len = nusers; in do_names_3()
193 return (&ut); in do_names_3()
211 static struct utmpidlearr ut; in do_names_2() local
215 bzero((char *)&ut, sizeof(ut)); in do_names_2()
216 ut.uia_arr = utmp_idlep; in do_names_2()
217 ut.uia_cnt = 0; in do_names_2()
254 ut.uia_cnt = nusers; in do_names_2()
[all …]
/mirbsd/src/usr.sbin/ppp/ppp/
Did.c205 ID0login(struct utmp *ut) in ID0login() argument
208 if (logout(ut->ut_line)) { in ID0login()
209 log_Printf(LogID0, "logout(\"%s\")\n", ut->ut_line); in ID0login()
210 logwtmp(ut->ut_line, "", ""); in ID0login()
211 log_Printf(LogID0, "logwtmp(\"%s\", \"\", \"\")\n", ut->ut_line); in ID0login()
213 login(ut); in ID0login()
215 ut->ut_line, (int)(sizeof ut->ut_name), ut->ut_name); in ID0login()
222 struct utmp ut; in ID0logout() local
223 char ut_line[sizeof ut.ut_line + 1]; in ID0logout()
Did.h75 struct utmp ut; \
76 strncpy(ut.ut_line, dev, sizeof ut.ut_line - 1); \
77 ut.ut_line[sizeof ut.ut_line - 1] = '\0'; \
78 if (no || logout(ut.ut_line)) \
79 logwtmp(ut.ut_line, "", ""); \
Dphysical.c923 struct utmp ut; in physical_Login() local
927 memset(&ut, 0, sizeof ut); in physical_Login()
928 time(&ut.ut_time); in physical_Login()
929 strncpy(ut.ut_name, name, sizeof ut.ut_name); in physical_Login()
932 strncpy(ut.ut_line, PPPOTCPLINE, sizeof ut.ut_line); in physical_Login()
933 strncpy(ut.ut_host, p->name.base, sizeof ut.ut_host); in physical_Login()
934 colon = memchr(ut.ut_host, ':', sizeof ut.ut_host); in physical_Login()
938 strncpy(ut.ut_line, p->name.base, sizeof ut.ut_line); in physical_Login()
941 strncpy(ut.ut_host, connstr, sizeof ut.ut_host); in physical_Login()
942 ID0login(&ut); in physical_Login()
[all …]
/mirbsd/src/sys/kern/
Dkern_resource.c351 u_quad_t st, ut, it; local
357 ut = p->p_uticks;
361 if (st + ut + it == 0) {
374 ut = ut * 1000000 / freq;
375 up->tv_sec = ut / 1000000;
376 up->tv_usec = ut % 1000000;
Dkern_acct.c166 struct timeval ut, st, tmp; in acct_process() local
195 calcru(p, &ut, &st, NULL); in acct_process()
196 acct.ac_utime = encode_comp_t(ut.tv_sec, ut.tv_usec); in acct_process()
208 timeradd(&ut, &st, &tmp); in acct_process()
Dkern_sysctl.c1277 struct timeval ut, st; in fill_kproc2() local
1407 calcru(p, &ut, &st, 0); in fill_kproc2()
1408 ki->p_uutime_sec = ut.tv_sec; in fill_kproc2()
1409 ki->p_uutime_usec = ut.tv_usec; in fill_kproc2()
1429 &p->p_stats->p_cru.ru_stime, &ut); in fill_kproc2()
1430 ki->p_uctime_sec = ut.tv_sec; in fill_kproc2()
1431 ki->p_uctime_usec = ut.tv_usec; in fill_kproc2()
/mirbsd/src/sys/miscfs/procfs/
Dprocfs_status.c75 struct timeval ut, st; local
131 calcru(p, &ut, &st, (void *) 0);
133 (int64_t)ut.tv_sec, ut.tv_usec,
/mirbsd/src/usr.bin/finger/
Dutil.c232 enter_where(struct utmp *ut, PERSON *pn) in enter_where() argument
237 memmove(w->tty, ut->ut_line, UT_LINESIZE); in enter_where()
239 memmove(w->host, ut->ut_host, UT_HOSTSIZE); in enter_where()
241 w->loginat = (time_t)ut->ut_time; in enter_where()
/mirbsd/src/gnu/usr.bin/lynx/src/
DUCdomap.c844 const u16 *ut; in UCTransUniChar() local
865 ut = UCInfo[UChndl_out].unitable; in UCTransUniChar()
866 if (ut != UC_current_unitable) { in UCTransUniChar()
905 const u16 *ut; in UCTransUniCharStr() local
923 ut = UCInfo[UChndl_out].unitable; in UCTransUniCharStr()
924 if (ut != UC_current_unitable) { in UCTransUniCharStr()
1091 const u16 *ut; in UCTransChar() local
1117 ut = UCInfo[UChndl_out].unitable; in UCTransChar()
1119 if (ut == UC_current_unitable) { in UCTransChar()
1312 const u16 *ut; in UCReverseTransChar() local
[all …]
/mirbsd/src/usr.bin/w/
Dw.c121 FILE *ut; in main() local
180 if ((ut = fopen(_PATH_UTMP, "r")) == NULL) in main()
186 for (nusers = 0; fread(&utmp, sizeof(utmp), 1, ut);) { in main()
219 (void)fclose(ut); in main()
/mirbsd/src/usr.bin/systat/
Dvmstat.c98 static int ut; variable
114 ut = open(_PATH_UTMP, O_RDONLY); in openkre()
115 if (ut < 0) in openkre()
124 (void) close(ut); in closekre()
519 if (ut < 0) in ucount()
521 while (read(ut, &utmp, sizeof(utmp))) in ucount()
525 lseek(ut, 0, SEEK_SET); in ucount()
/mirbsd/src/gnu/usr.bin/cvs/lib/
Dstrftime.c359 # define extra_args , ut, ns
360 # define extra_args_spec , int ut, int ns
372 # define ut 0 macro
455 if (ut) in my_strftime()
1292 if (ut) in my_strftime()
1371 const struct tm *tp, int ut) in libc_hidden_def()
1373 return my_strftime (s, maxsize, format, tp, ut, 0); in libc_hidden_def()
/mirbsd/src/usr.sbin/syslogd/
Dsyslogd.c960 struct utmp ut; in wallmsg() local
961 char line[sizeof(ut.ut_line) + 1], *p; in wallmsg()
974 while (fread((char *)&ut, sizeof(ut), 1, uf) == 1) { in wallmsg()
975 if (ut.ut_name[0] == '\0') in wallmsg()
978 strncpy(line, ut.ut_line, sizeof(line) - 1); in wallmsg()
991 if (!strncmp(f->f_un.f_uname[i], ut.ut_name, in wallmsg()
/mirbsd/src/sbin/isakmpd/
Dudp.c202 udp_clone(struct transport *ut, struct sockaddr *raddr) in udp_clone() argument
204 struct udp_transport *u = (struct udp_transport *)ut; in udp_clone()
/mirbsd/src/usr.bin/ftp/
Dftp.c1162 struct utimbuf ut; in recvrequest() local
1164 ut.actime = time(NULL); in recvrequest()
1165 ut.modtime = mtime; in recvrequest()
1166 if (utime(local, &ut) == -1) in recvrequest()
/mirbsd/src/lib/libc/stdlib/
Dmalloc_mmap.c215 struct ut { struct
221 void utrace(struct ut *, int); argument
225 {struct ut u; u.p=a; u.s = b; u.r=c; utrace(&u, sizeof u);}
/mirbsd/src/etc/
DMAKEDEV.common213 __devitem(ut, ut*, UNIBUS TU45 emulations (e.g. 9700))dnl
/mirbsd/src/gnu/usr.bin/perl/pod/
Dperlpodspec.pod1507 velit, sed quia non numquam eius modi tempora incidunt ut
1525 velit, sed quia non numquam eius modi tempora incidunt ut
1539 velit, sed quia non numquam eius modi tempora incidunt ut
1555 velit, sed quia non numquam eius modi tempora incidunt ut

12