HomeSort by: relevance | last modified time | path
    Searched refs:ut (Results 1 - 25 of 115) sorted by relevancy

1 2 3 4 5

  /src/lib/libutil/
logwtmpx.c 59 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.ut_type = type
    [all...]
logout.c 57 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_CUR)
    [all...]
loginx.c 50 loginx(const struct utmpx *ut)
52 (void)pututxline(ut);
53 (void)updwtmpx(_PATH_WTMPX, ut);
logwtmp.c 56 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))
login.c 53 login(const struct utmp *ut)
58 _DIAGASSERT(ut != NULL);
63 (void)write(fd, ut, sizeof(struct utmp));
67 (void)write(fd, ut, sizeof(struct utmp));
logoutx.c 58 struct utmpx *utp, ut; local
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
  /src/lib/libc/compat/include/
utmp.h 51 utmp_to_utmp50(const struct utmp *ut, struct utmp50 *ut50)
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)
60 (void)memcpy(ut, ut50, sizeof(*ut50));
61 ut->ut_time = ut50->ut_time;
utmpx.h 63 utmpx50_to_utmpx(const struct utmpx50 *ut50, struct utmpx *ut)
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)
72 (void)memcpy(ut50, ut, sizeof(*ut50));
73 timeval_to_timeval50(&ut->ut_tv, &ut50->ut_tv);
  /src/libexec/ftpd/
logwtmp.c 89 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...]
logutmp.c 91 ftpd_login(const struct utmp *ut)
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, sizeof(UTMP))
    [all...]
  /src/lib/libc/gen/
utmp.c 47 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...]
utmpx.c 60 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.ut_user, vers, sizeof(vers))
    [all...]
  /src/external/bsd/tmux/usr.bin/tmux/
utempter.c 63 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.ut_line))
100 struct utmp ut; local
    [all...]
  /src/lib/libutil/compat/
compat_login.c 64 struct utmp ut; local
66 utmp50_to_utmp(ut50, &ut);
71 (void)write(fd, &ut, sizeof(ut));
75 (void)write(fd, &ut, sizeof(ut));
compat_loginx.c 58 struct utmpx ut; local
59 utmpx50_to_utmpx(ut50, &ut);
60 (void)__pututxline50(&ut);
61 (void)__updwtmpx50(_PATH_WTMPX, &ut);
compat_logoutx.c 58 struct utmpx *utp, ut; local
59 (void)strlcpy(ut.ut_line, line, sizeof(ut.ut_line));
60 if ((utp = getutxline(&ut)) == NULL) {
  /src/distrib/utils/libhack/
utmp.c 14 login(ut)
15 const struct utmp *ut;
20 loginx(ut)
21 const struct utmpx *ut;
  /src/lib/libc/compat/gen/
compat_utmp.c 53 cvt(struct utmp *ut)
55 struct utmp50 *ut50 = (void *)ut;
56 if (ut == NULL)
58 ut50->ut_time = (int32_t)ut->ut_time;
compat_utmpx.c 69 cvt(struct utmpx *ut)
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
    [all...]
  /src/crypto/external/cpl/trousers/dist/src/tcsd/
platform.c 43 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...]
  /src/external/gpl2/gettext/dist/gettext-tools/gnulib-lib/
copy-file.c 91 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...]
  /src/external/bsd/ntp/dist/libntp/
systime.c 407 struct utmp ut; local
414 ZERO(ut);
428 ut.ut_type = OLD_TIME;
429 strlcpy(ut.ut_line, OTIME_MSG, sizeof(ut.ut_line));
430 ut.ut_time = tvlast.tv_sec;
432 pututline(&ut);
433 ut.ut_type = NEW_TIME;
434 strlcpy(ut.ut_line, NTIME_MSG, sizeof(ut.ut_line))
    [all...]
  /src/libexec/rpc.rusersd/
rusers_proc.c 194 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.uia_arr = utmp_idlep
    [all...]
  /src/external/bsd/libarchive/dist/libarchive/
archive_time.c 81 time_t ut = unix_time; local
86 if (sizeof(time_t) < sizeof(int64_t) && (int64_t)ut != unix_time) {
87 ut = (time_t)(unix_time > 0 ? INT32_MAX : INT32_MIN);
91 t = localtime_s(&tmbuf, &ut) ? NULL : &tmbuf;
93 t = localtime_r(&ut, &tmbuf);
95 t = localtime(&ut);
  /src/usr.bin/who/
utmpentry.c 181 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 98 milliseconds

1 2 3 4 5