Searched refs:utmp (Results 1 - 25 of 53) sorted by relevance

123

/openbsd-current/libexec/ftpd/
H A Dlogutmp.c42 #include <utmp.h>
54 * Special versions of login()/logout() which hold the utmp file open,
59 ftpd_login(struct utmp *ut)
61 struct utmp ubuf;
79 (void)lseek(fd, (off_t)topslot * sizeof(struct utmp), SEEK_SET);
82 if (read(fd, &ubuf, sizeof(struct utmp)) ==
83 sizeof(struct utmp)) {
85 (void)lseek(fd, -(off_t)sizeof(struct utmp),
91 (void)lseek(fd, (off_t)topslot * sizeof(struct utmp),
97 (void)write(fd, ut, sizeof(struct utmp));
[all...]
H A Dlogwtmp.c39 #include <utmp.h>
61 struct utmp ut;
71 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
72 sizeof(struct utmp))
H A Dextern.h101 struct utmp;
102 void ftpd_login(struct utmp *ut);
/openbsd-current/lib/libutil/
H A Dlogin.c36 #include <utmp.h>
43 login(struct utmp *utp)
45 struct utmp old_ut;
57 pos = (off_t)tty * sizeof(struct utmp);
59 pread(fd, &old_ut, sizeof(struct utmp), pos) ==
60 sizeof(struct utmp) &&
65 (void)pwrite(fd, utp, sizeof(struct utmp), pos);
69 (void)write(fd, utp, sizeof(struct utmp));
H A Dlogwtmp.c38 #include <utmp.h>
46 struct utmp ut;
56 if (write(fd, &ut, sizeof(struct utmp)) !=
57 sizeof(struct utmp))
H A Dlogout.c35 #include <utmp.h>
42 typedef struct utmp UTMP;
H A Dutil.h79 struct utmp;
84 void login(struct utmp *);
/openbsd-current/usr.bin/users/
H A Dusers.c40 #include <utmp.h>
53 struct utmp utmp; local
75 while (fread((char *)&utmp, sizeof(utmp), 1, stdin) == 1) {
76 if (*utmp.ut_name) {
92 (void)strncpy(names[ncnt], utmp.ut_name, UT_NAMESIZE);
/openbsd-current/include/
H A Dutmp.h1 /* $OpenBSD: utmp.h,v 1.6 2014/01/08 06:50:57 guenther Exp $ */
2 /* $NetBSD: utmp.h,v 1.6 1994/10/26 00:56:40 cgd Exp $ */
37 * @(#)utmp.h 8.2 (Berkeley) 1/21/94
43 #define _PATH_UTMP "/var/run/utmp"
62 struct utmp { struct
/openbsd-current/usr.bin/wall/
H A Dwall.c53 #include <utmp.h>
83 struct utmp utmp; local
85 char line[sizeof(utmp.ut_line) + 1];
86 char username[sizeof(utmp.ut_name) + 1];
131 while (fread(&utmp, sizeof(utmp), 1, fp) == 1) {
132 if (!utmp.ut_name[0])
136 strncpy(username, utmp.ut_name, sizeof(utmp
[all...]
/openbsd-current/usr.bin/w/
H A Dw.c63 #include <utmp.h>
68 struct utmp utmp; variable in typeref:struct:utmp
84 * One of these per active utmp entry.
88 struct utmp utmp; member in struct:entry
181 for (nusers = 0; fread(&utmp, sizeof(utmp), 1, ut);) {
182 if (utmp.ut_name[0] == '\0')
186 strncmp(utmp
[all...]
/openbsd-current/usr.bin/finger/
H A Dextern.h44 void enter_where(struct utmp *, PERSON *);
H A Dfinger.h37 #include <utmp.h>
/openbsd-current/libexec/comsat/
H A Dcomsat.c53 #include <utmp.h>
63 struct utmp *utmp = NULL; variable in typeref:struct:utmp
69 void notify(struct utmp *, off_t);
176 static u_int utmpsize; /* last malloced size for utmp */
177 static time_t utmpmtime; /* last modification time for utmp */
187 if (statbf.st_size > INT_MAX - 10 * sizeof(struct utmp)) {
188 syslog(LOG_ALERT, "utmp file excessively large");
193 sizeof(struct utmp);
194 struct utmp *
[all...]
/openbsd-current/regress/usr.sbin/syslogd/
H A Dttylog.c33 #include <utmp.h>
149 struct utmp utmp; local
167 memset(&utmp, 0, sizeof(utmp));
168 strlcpy(utmp.ut_line, tty, sizeof(utmp.ut_line));
169 strlcpy(utmp.ut_name, username, sizeof(utmp.ut_name));
170 time(&utmp
[all...]
/openbsd-current/bin/ed/
H A Dundo.c71 undo_t utmp; \
72 utmp = x, x = y, y = utmp; \
/openbsd-current/gnu/usr.bin/gcc/gcc/
H A Dunwind-dw2.c289 _Unwind_Word utmp;
312 p = read_uleb128 (p, &utmp);
313 ret = p + utmp;
370 _Unwind_Word result, reg, utmp;
628 op_ptr = read_uleb128 (op_ptr, &utmp);
629 result += utmp;
784 _Unwind_Word reg, utmp;
792 insn_ptr = read_uleb128 (insn_ptr, &utmp);
793 offset = (_Unwind_Sword) utmp * fs->data_align;
824 insn_ptr = read_uleb128 (insn_ptr, &utmp);
284 _Unwind_Word utmp; local
365 _Unwind_Word result, reg, utmp; local
779 _Unwind_Word reg, utmp; local
[all...]
/openbsd-current/usr.bin/login/
H A Dlogin.c95 #include <utmp.h>
151 struct utmp utmp; local
183 * host to login so that it may be placed in utmp and wtmp
658 memset(&utmp, 0, sizeof(utmp));
659 (void)time(&utmp.ut_time);
660 (void)strncpy(utmp.ut_name, username, sizeof(utmp.ut_name));
662 (void)strncpy(utmp
[all...]
/openbsd-current/usr.bin/who/
H A Dwho.c40 #include <utmp.h>
48 void output(struct utmp *);
69 struct utmp usr;
201 struct utmp usr;
204 /* search through the utmp and find an entry for this tty */
224 output(struct utmp *up)
/openbsd-current/gnu/gcc/gcc/
H A Dunwind-dw2.c383 _Unwind_Word utmp;
409 p = read_uleb128 (p, &utmp);
410 ret = p + utmp;
476 _Unwind_Word result, reg, utmp;
741 op_ptr = read_uleb128 (op_ptr, &utmp);
742 result += utmp;
901 _Unwind_Word reg, utmp;
909 insn_ptr = read_uleb128 (insn_ptr, &utmp);
910 offset = (_Unwind_Sword) utmp * fs->data_align;
947 insn_ptr = read_uleb128 (insn_ptr, &utmp);
379 _Unwind_Word utmp; local
472 _Unwind_Word result, reg, utmp; local
897 _Unwind_Word reg, utmp; local
[all...]
/openbsd-current/usr.bin/systat/
H A Dmain.c52 #include <utmp.h>
200 struct utmp utmp; local
205 while (read(ut, &utmp, sizeof(utmp)))
206 if (utmp.ut_name[0] != '\0')
481 warn("No utmp");
/openbsd-current/usr.sbin/ac/
H A Dac.c36 #include <utmp.h>
44 struct utmp usr;
90 struct utmp_list *log_in(struct utmp_list *, struct utmp *);
91 struct utmp_list *log_out(struct utmp_list *, struct utmp *);
311 log_out(struct utmp_list *head, struct utmp *up)
351 log_in(struct utmp_list *head, struct utmp *up)
381 memmove((char *)&lp->usr, (char *)up, sizeof (struct utmp));
399 struct utmp usr;
/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Ddwarf2-frame.c281 ULONGEST utmp, reg;
289 insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
290 offset = utmp * fs->data_align;
312 utmp = extract_unsigned_integer (insn_ptr, 1);
313 fs->pc += utmp * fs->code_align;
317 utmp = extract_unsigned_integer (insn_ptr, 2);
318 fs->pc += utmp * fs->code_align;
322 utmp = extract_unsigned_integer (insn_ptr, 4);
323 fs->pc += utmp * fs->code_align;
329 insn_ptr = read_uleb128 (insn_ptr, insn_end, &utmp);
278 ULONGEST utmp, reg; local
[all...]
/openbsd-current/usr.bin/find/
H A Dls.c41 #include <utmp.h>
/openbsd-current/share/man/man5/
H A DMakefile17 spamd.conf.5 sysctl.conf.5 utmp.5 wsconsctl.conf.5

Completed in 191 milliseconds

123