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

12

/freebsd-9.3-release/contrib/opie/libmissing/
H A Dpututline.c20 #include <utmp.h>
27 void pututline FUNCTION((utmp), struct utmp *utmp) argument
30 struct utmp u;
38 if (fseek(f, i * sizeof(struct utmp), SEEK_SET) < 0)
40 fwrite(utmp, sizeof(struct utmp), 1, f);
45 while(fread(&u, sizeof(struct utmp), 1, f) == 1) {
46 if (!strncmp(utmp
[all...]
H A Dgetutline.c21 #include <utmp.h>
24 static struct utmp u;
34 struct utmp *getutline FUNCTION((utmp), struct utmp *utmp) argument
44 if (fseek(f, i * sizeof(struct utmp), SEEK_SET) < 0)
46 if (fread(&u, sizeof(struct utmp), 1, f) != 1)
53 while(fread(&u, sizeof(struct utmp), 1, f) == 1) {
54 if (!strncmp(utmp
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/login/
H A Dutmp_login.c81 prepare_utmp (struct utmp *utmp, char *tty, argument
86 memset(utmp, 0, sizeof(*utmp));
87 utmp->ut_time = time(NULL);
88 strncpy(utmp->ut_line, ttyx, sizeof(utmp->ut_line));
89 strncpy(utmp->ut_name, username, sizeof(utmp->ut_name));
92 strncpy(utmp
132 struct utmp utmp; local
[all...]
H A Dlogin_protos.h49 struct utmp */*utmp*/,
H A Dutmpx_login.c23 /* utmpx_login - update utmp and wtmp after login */
55 struct utmp utmp; local
58 prepare_utmp (&utmp, line, user, host);
60 write(fd, &utmp, sizeof(struct utmp));
78 * getutxline(). Return nonzero if no utmp entry was found with our own
/freebsd-9.3-release/contrib/opie/libopie/
H A Dgetutmpentry.c23 #define utmp utmpx macro
25 #include <utmp.h>
38 struct utmp *getutline __P((struct utmp *));
41 static struct utmp u;
43 int __opiegetutmpentry FUNCTION((line, utmp), char *line AND struct utmp *utmp) argument
45 struct utmp *pu;
83 memcpy(utmp, p
[all...]
H A Dinsecure.c17 Modified by cmetz for OPIE 2.4. Do utmp checks on utmpx systems.
44 #define utmp utmpx macro
47 #include <utmp.h>
66 struct utmp utmp; variable in typeref:struct:utmp
130 memset(&utmp, 0, sizeof(struct utmp));
132 int i = __opiegetutmpentry(ttyname(0), &utmp);
134 if (!i && utmp.ut_host[0]) {
135 char host[sizeof(utmp
[all...]
H A Dlogin.c29 #define utmp utmpx macro
31 #include <utmp.h>
50 struct utmp u;
57 memset(&u, 0, sizeof(struct utmp));
82 #error No ut_name field in struct utmp? (Please send in a bug report)
106 syslog(LOG_DEBUG, "opielogin: utmp suceeded");
H A Dlogwtmp.c73 #include <utmp.h>
118 struct utmp ut;
125 memset(&ut, 0, sizeof(struct utmp));
159 if (write(fd, (char *) &ut, sizeof(struct utmp)) !=
160 sizeof(struct utmp))
/freebsd-9.3-release/crypto/openssl/crypto/asn1/
H A Dx_long.c110 unsigned long utmp; local
126 utmp = -ltmp - 1;
128 utmp = ltmp;
129 clen = BN_num_bits_word(utmp);
143 cont[i] = (unsigned char)(utmp & 0xff);
146 utmp >>= 8;
157 unsigned long utmp = 0; local
168 utmp = 0;
170 utmp <<= 8;
172 utmp |
[all...]
/freebsd-9.3-release/include/rpcsvc/
H A Drnusers.x46 struct utmp {
55 utmp ui_utmp;
59 typedef utmp utmparr<MAXUSERS>;
/freebsd-9.3-release/contrib/tcsh/
H A Dtc.who.c70 # define utmp utmpx macro
89 # include <utmp.h>
99 # define UTNAMLEN sizeof(((struct utmp *) 0)->ut_name)
100 # define UTLINLEN sizeof(((struct utmp *) 0)->ut_line)
105 # define UTHOSTLEN sizeof(((struct utmp *) 0)->ut_host)
110 struct utmp __ut;
127 # define TCSH_PATH_UTMP "/etc/utmp"
194 * Watch /etc/utmp for login/logout changes.
202 struct utmp *uptr;
206 struct utmp utm local
[all...]
/freebsd-9.3-release/contrib/groff/src/utils/afmtodit/
H A Dafmtodit.pl6251 my $utmp = $AGL_to_unicode{$field[0]};
6252 if (defined $utmp && $utmp =~ /^[0-9A-F]{4}$/) {
6253 foreach my $unicodepsname ("uni" . $utmp, "u" . $utmp) {
6290 my $utmp = ""; # temporary value
6328 $utmp = $AGL_to_unicode{$component};
6329 if ($utmp) {
6330 $utmp = "U+" . $utmp;
[all...]
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c56 #include <utmp.h>
80 struct utmp ut;
85 memset(&ut, 0, sizeof(struct utmp));
133 write(fd, &ut, sizeof(struct utmp)); /* XXX */
/freebsd-9.3-release/usr.bin/w/
H A Dw.c89 struct utmpx *utmp; variable in typeref:struct:utmpx
104 * One of these per active utmp entry.
108 struct utmpx utmp; member in struct:entry
213 for (nusers = 0; (utmp = getutxent()) != NULL;) {
214 if (utmp->ut_type != USER_PROCESS)
216 if (!(stp = ttystat(utmp->ut_line)))
227 if (!strcmp(utmp->ut_user, *user))
236 memmove(&ep->utmp, utmp, sizeof *utmp);
[all...]
/freebsd-9.3-release/contrib/lukemftpd/src/
H A Dlogutmp.c64 #include <utmp.h>
72 typedef struct utmp UTMP;
78 * Special versions of login()/logout() which hold the utmp file open,
83 ftpd_login(const struct utmp *ut)
H A Dlogwtmp.c57 #include <utmp.h>
89 struct utmp ut;
99 if (write(fd, (char *)&ut, sizeof(struct utmp)) !=
100 sizeof(struct utmp))
/freebsd-9.3-release/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c43 #include <utmp.h>
53 struct utmp wtmp;
66 #define UTMP_FILE "/etc/utmp"
732 extern struct utmp wtmp;
841 * Wait for our parent to get the utmp stuff to get done.
1135 * Cray parent will create utmp entry for child and send
1145 * Create utmp entry for child
1160 write(i, &wtmp, sizeof(struct utmp));
1283 * Create utmp entry for child
1400 * remove the utmp entr
1478 struct utmp *u, *utmp; local
1536 struct utmp utmp; local
[all...]
/freebsd-9.3-release/crypto/openssh/openbsd-compat/
H A Dbsd-cray.c43 #include <utmp.h>
103 void cray_retain_utmp(struct utmp *, int);
106 void cray_set_tmpdir(struct utmp *);
688 * Retain utmp/wtmp information - used by cray accounting.
691 cray_retain_utmp(struct utmp *ut, int pid)
694 struct utmp utmp; local
698 while (read(fd, (char *)&utmp, sizeof(utmp)) == sizeof(utmp)) {
[all...]
/freebsd-9.3-release/usr.bin/wall/
H A Dwall.c99 struct utmpx *utmp; local
146 while ((utmp = getutxent()) != NULL) {
147 if (utmp->ut_type != USER_PROCESS)
149 if (ttystat(utmp->ut_line) != 0)
153 pw = getpwnam(utmp->ut_user);
163 if (strcmp(*np, utmp->ut_user) == 0) {
173 if ((p = ttymsg(&iov, 1, utmp->ut_line, 60*5)) != NULL)
/freebsd-9.3-release/bin/ed/
H A Dundo.c75 undo_t utmp; \
76 utmp = x, x = y, y = utmp; \
/freebsd-9.3-release/release/picobsd/floppy.tree/etc/
H A Drc142 (cd /var/run && { cp /dev/null utmp; chmod 644 utmp; })
/freebsd-9.3-release/contrib/gcc/
H A Dunwind-dw2.c356 _Unwind_Word utmp;
382 p = read_uleb128 (p, &utmp);
383 ret = p + utmp;
449 _Unwind_Word result, reg, utmp;
714 op_ptr = read_uleb128 (op_ptr, &utmp);
715 result += utmp;
874 _Unwind_Word reg, utmp;
882 insn_ptr = read_uleb128 (insn_ptr, &utmp);
883 offset = (_Unwind_Sword) utmp * fs->data_align;
920 insn_ptr = read_uleb128 (insn_ptr, &utmp);
352 _Unwind_Word utmp; local
445 _Unwind_Word result, reg, utmp; local
870 _Unwind_Word reg, utmp; local
[all...]
/freebsd-9.3-release/contrib/gdb/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...]
/freebsd-9.3-release/crypto/openssh/
H A Dloginrec.c58 * (utmp and friends) and last login time retrieval.
75 * these are clearly most likely to work correctly. For utmp systems
116 * struct utmp and struct utmpx have utility functions (see
122 * write both struct utmp and utmpx in one function, whilst maintaining
188 void set_utmp_time(struct logininfo *li, struct utmp *ut);
189 void construct_utmp(struct logininfo *li, struct utmp *ut);
523 /* retrieve last login time from utmp */
622 ** utmp utility functions
624 ** These functions manipulate struct utmp, taking system differences
630 /* build the utmp structur
[all...]

Completed in 200 milliseconds

12