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

12345

/netbsd-current/lib/libutil/
H A Dlogwtmpx.c59 struct utmpx ut; local
65 (void)memset(&ut, 0, sizeof(ut));
66 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
67 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name));
68 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
69 ut
[all...]
H A Dlogout.c57 struct utmp ut; local
64 while (read(fd, &ut, sizeof(ut)) == sizeof(ut)) {
65 if (!ut.ut_name[0] || strncmp(ut.ut_line, line,
68 memset(ut.ut_name, 0, (size_t)UT_NAMESIZE);
69 memset(ut.ut_host, 0, (size_t)UT_HOSTSIZE);
70 (void)time(&ut.ut_time);
71 (void)lseek(fd, -(off_t)sizeof(ut), SEEK_CU
[all...]
H A Dloginx.c50 loginx(const struct utmpx *ut) argument
52 (void)pututxline(ut);
53 (void)updwtmpx(_PATH_WTMPX, ut);
H A Dlogwtmp.c56 struct utmp ut; local
67 (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line));
68 (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name));
69 (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host));
70 (void) time(&ut.ut_time);
71 if (write(fd, &ut, sizeof(struct utmp)) != sizeof(struct utmp))
H A Dlogin.c53 login(const struct utmp *ut) argument
58 _DIAGASSERT(ut != NULL);
63 (void)write(fd, ut, sizeof(struct utmp));
67 (void)write(fd, ut, sizeof(struct utmp));
H A Dlogoutx.c58 struct utmpx *utp, ut; local
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
/netbsd-current/lib/libc/compat/include/
H A Dutmp.h51 utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50) argument
53 (void)memcpy(ut50, ut, sizeof(*ut50));
54 ut50->ut_time = (int32_t)ut->ut_time;
58 utmp50_to_utmp(const struct utmp50 *ut50, struct utmp *ut) argument
60 (void)memcpy(ut, ut50, sizeof(*ut50));
61 ut->ut_time = ut50->ut_time;
H A Dutmpx.h63 utmpx50_to_utmpx(const struct utmpx50 *ut50, struct utmpx *ut) argument
65 (void)memcpy(ut, ut50, sizeof(*ut));
66 timeval50_to_timeval(&ut50->ut_tv, &ut->ut_tv);
70 utmpx_to_utmpx50(const struct utmpx *ut, struct utmpx50 *ut50) argument
72 (void)memcpy(ut50, ut, sizeof(*ut50));
73 timeval_to_timeval50(&ut->ut_tv, &ut50->ut_tv);
/netbsd-current/libexec/ftpd/
H A Dlogwtmp.c89 struct utmp ut; local
95 (void)strncpy(ut.ut_line, line, sizeof(ut.ut_line));
96 (void)strncpy(ut.ut_name, name, sizeof(ut.ut_name));
97 (void)strncpy(ut.ut_host, host, sizeof(ut.ut_host));
98 (void)time(&ut.ut_time);
99 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
121 struct utmpx ut; local
[all...]
H A Dlogutmp.c91 ftpd_login(const struct utmp *ut) argument
127 (void)write(fd, ut, sizeof(UTMP));
133 UTMP ut; local
142 while (read(fd, &ut, sizeof(UTMP)) == sizeof(UTMP)) {
143 if (!ut.ut_name[0]
144 || strncmp(ut.ut_line, line, UT_LINESIZE))
146 memset(ut.ut_name, 0, UT_NAMESIZE);
147 memset(ut.ut_host, 0, UT_HOSTSIZE);
148 (void)time(&ut.ut_time);
150 (void)write(fd, &ut, sizeo
162 ftpd_loginx(const struct utmpx *ut) argument
[all...]
/netbsd-current/lib/libc/gen/
H A Dutmp.c47 static FILE *ut; variable
53 if (ut == NULL)
55 (void)fseeko(ut, (off_t)0, SEEK_SET);
61 if (ut == NULL) {
64 if ((ut = fopen(utfile, "re")) == NULL)
66 if (fstat(fileno(ut), &st) == -1)
75 if (fread(&utmp, sizeof(utmp), 1, ut) == 1)
78 (void)fclose(ut);
85 if (ut != NULL) {
86 (void)fclose(ut);
[all...]
H A Dutmpx.c60 static struct utmpx ut; variable in typeref:struct:utmpx
97 (void)memset(&ut, 0, sizeof(ut));
100 (void)fseeko(fp, (off_t)sizeof(ut), SEEK_SET);
108 (void)memset(&ut, 0, sizeof(ut));
139 (void)memset(&ut, 0, sizeof(ut));
140 ut.ut_type = SIGNATURE;
141 (void)memcpy(ut
[all...]
/netbsd-current/external/bsd/tmux/usr.bin/tmux/
H A Dutempter.c63 struct utmpx ut; local
66 (void)memset(&ut, 0, sizeof(ut));
67 ut.ut_tv = *now;
68 (void)strncpy(ut.ut_name, username, sizeof(ut.ut_name));
70 (void)strncpy(ut.ut_host, hostname, sizeof(ut.ut_host));
71 (void)strncpy(ut.ut_line, tty, sizeof(ut
100 struct utmp ut; local
[all...]
/netbsd-current/lib/libutil/compat/
H A Dcompat_login.c64 struct utmp ut; local
66 utmp50_to_utmp(ut50, &ut);
71 (void)write(fd, &ut, sizeof(ut));
75 (void)write(fd, &ut, sizeof(ut));
H A Dcompat_loginx.c58 struct utmpx ut; local
59 utmpx50_to_utmpx(ut50, &ut);
60 (void)__pututxline50(&ut);
61 (void)__updwtmpx50(_PATH_WTMPX, &ut);
H A Dcompat_logoutx.c58 struct utmpx *utp, ut; local
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
/netbsd-current/distrib/utils/libhack/
H A Dutmp.c14 login(ut)
15 const struct utmp *ut;
20 loginx(ut)
21 const struct utmpx *ut;
/netbsd-current/lib/libc/compat/gen/
H A Dcompat_utmp.c53 cvt(struct utmp *ut) argument
55 struct utmp50 *ut50 = (void *)ut;
56 if (ut == NULL)
58 ut50->ut_time = (int32_t)ut->ut_time;
H A Dcompat_utmpx.c69 cvt(struct utmpx *ut) argument
71 if (ut == NULL)
73 timeval_to_timeval50(&ut->ut_tv, (void *)&ut->ut_tv);
74 return (void *)ut;
104 struct utmpx ut; local
105 utmpx50_to_utmpx(ut50, &ut);
106 return cvt(__getutxid50(&ut));
112 struct utmpx ut; local
113 utmpx50_to_utmpx(ut50, &ut);
120 struct utmpx ut; local
128 struct utmpx ut; local
181 getutmp(const struct utmpx50 *utx50, struct utmp *ut) argument
189 getutmpx(const struct utmp *ut, struct utmpx50 *utx50) argument
[all...]
/netbsd-current/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
H A Dcopy-file.c91 struct utimbuf ut; local
93 ut.actime = statbuf.st_atime;
94 ut.modtime = statbuf.st_mtime;
95 utime (dest_filename, &ut);
99 struct timeval ut[2]; local
101 ut[0].tv_sec = statbuf.st_atime; ut[0].tv_usec = 0;
102 ut[1].tv_sec = statbuf.st_mtime; ut[1].tv_usec = 0;
103 utimes (dest_filename, &ut);
[all...]
/netbsd-current/crypto/external/cpl/trousers/dist/src/tcsd/
H A Dplatform.c43 struct utmp ut, save, *next = NULL; local
49 memset(&ut, 0, sizeof(struct utmp));
53 ut.ut_type = RUN_LVL;
56 next = getutid(&ut);
70 next = getutid(&ut);
117 struct utmpx ut, *utp = NULL; local
121 memset(&ut, 0, sizeof(ut));
122 ut.ut_type = RUN_LVL;
125 utp = getutxid(&ut);
[all...]
/netbsd-current/external/bsd/ntp/dist/libntp/
H A Dsystime.c408 struct utmp ut; local
415 ZERO(ut);
429 ut.ut_type = OLD_TIME;
430 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line));
431 ut.ut_time = tvlast.tv_sec;
433 pututline(&ut);
434 ut.ut_type = NEW_TIME;
435 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut
[all...]
/netbsd-current/external/bsd/ntp/dist/tests/sandbox/
H A DMakefile.am55 run-ut-2803.c \
56 ut-2803.c \
59 $(srcdir)/run-ut-2803.c: $(srcdir)/ut-2803.c $(std_unity_list)
61 BUILT_SOURCES += run-ut-2803.c
/netbsd-current/libexec/rpc.rusersd/
H A Drusers_proc.c194 static utmp_array ut; local
202 (void)memset(&ut, 0, sizeof(ut));
203 ut.utmp_array_val = utmps;
217 ut.utmp_array_len = nu;
219 return &ut;
241 static struct utmpidlearr ut; local
248 (void)memset(&ut, 0, sizeof(ut));
249 ut
[all...]
/netbsd-current/usr.bin/who/
H A Dutmpentry.c181 struct utmp *ut; local
217 while ((what & 2) && (ut = getutent()) != NULL) {
218 if (fname == NULL && (*ut->ut_name == '\0' ||
219 *ut->ut_line == '\0'))
223 if (strncmp(ep->line, ut->ut_line,
224 sizeof(ut->ut_line)) == 0)
233 getentry(ep, ut);

Completed in 305 milliseconds

12345