Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 25 of 75) sorted by relevance

123

/freebsd/crypto/heimdal/appl/login/
H A Dutmp_login.c85 prepare_utmp (struct utmp *utmp, char *tty, in prepare_utmp() argument
90 memset(utmp, 0, sizeof(*utmp)); in prepare_utmp()
91 utmp->ut_time = time(NULL); in prepare_utmp()
92 strncpy(utmp->ut_line, ttyx, sizeof(utmp->ut_line)); in prepare_utmp()
93 strncpy(utmp->ut_name, username, sizeof(utmp->ut_name)); in prepare_utmp()
96 strncpy(utmp->ut_user, username, sizeof(utmp->ut_user)); in prepare_utmp()
103 memcpy(&utmp->ut_addr, he->h_addr_list[0], in prepare_utmp()
104 sizeof(utmp->ut_addr)); in prepare_utmp()
109 shrink_hostname (hostname, utmp->ut_host, sizeof(utmp->ut_host)); in prepare_utmp()
113 utmp->ut_type = USER_PROCESS; in prepare_utmp()
[all …]
H A Dutmpx_login.c55 struct utmp utmp; in utmpx_update() local
58 prepare_utmp (&utmp, line, user, host); in utmpx_update()
60 write(fd, &utmp, sizeof(struct utmp)); in utmpx_update()
H A Dlogin-protos.h49 struct utmp */*utmp*/,
/freebsd/crypto/openssl/crypto/asn1/
H A Dx_int64.c52 uint64_t utmp; in uint64_i2c() local
58 memcpy(&utmp, cp, sizeof(utmp)); in uint64_i2c()
61 && utmp == 0) in uint64_i2c()
64 && (int64_t)utmp < 0) { in uint64_i2c()
66 utmp = 0 - utmp; in uint64_i2c()
70 return ossl_i2c_uint64_int(cont, utmp, neg); in uint64_i2c()
76 uint64_t utmp = 0; in uint64_c2i() local
94 if (!ossl_c2i_uint64_int(&utmp, &neg, &cont, len)) in uint64_c2i()
101 && !neg && utmp > INT64_MAX) { in uint64_c2i()
107 utmp = 0 - utmp; in uint64_c2i()
[all …]
H A Dx_long.c89 unsigned long utmp, sign; in long_i2c() local
102 utmp = 0 - (unsigned long)ltmp - 1; in long_i2c()
105 utmp = ltmp; in long_i2c()
107 clen = num_bits_ulong(utmp); in long_i2c()
121 cont[i] = (unsigned char)(utmp ^ sign); in long_i2c()
122 utmp >>= 8; in long_i2c()
133 unsigned long utmp = 0, sign = 0x100; in long_c2i() local
169 utmp = 0; in long_c2i()
171 utmp <<= 8; in long_c2i()
172 utmp |= cont[i] ^ sign; in long_c2i()
[all …]
/freebsd/contrib/tcsh/
H A Dtc.who.c68 # define utmp utmpx macro
97 # define UTNAMLEN sizeof(((struct utmp *) 0)->ut_name)
98 # define UTLINLEN sizeof(((struct utmp *) 0)->ut_line)
103 # define UTHOSTLEN sizeof(((struct utmp *) 0)->ut_host)
108 struct utmp __ut;
200 struct utmp *uptr;
204 struct utmp utmp; local
214 USE(utmp);
288 memcpy(&utmp, uptr, sizeof (utmp));
290 while (xread(utmpfd, &utmp, sizeof utmp) == sizeof utmp) {
[all …]
/freebsd/usr.bin/w/
H A Dw.c79 static struct utmpx *utmp; variable
99 struct utmpx utmp; member
204 for (nusers = 0; (utmp = getutxent()) != NULL;) { in main()
212 if (utmp->ut_type != USER_PROCESS) in main()
214 if (!(stp = ttystat(utmp->ut_line))) in main()
225 if (!strcmp(utmp->ut_user, *user)) in main()
234 memmove(&ep->utmp, utmp, sizeof *utmp); in main()
247 if (touched < ep->utmp.ut_tv.tv_sec) { in main()
249 touched = ep->utmp.ut_tv.tv_sec; in main()
254 save_p = p = *ep->utmp.ut_host ? ep->utmp.ut_host : "-"; in main()
[all …]
/freebsd/crypto/heimdal/appl/telnet/telnetd/
H A Dsys_term.c53 struct utmp wtmp;
739 extern struct utmp wtmp;
1169 write(i, &wtmp, sizeof(struct utmp)); in startslave()
1464 struct utmp wtmp; in rmut()
1489 struct utmp *u, *utmp; in rmut() local
1497 utmp = (struct utmp *)malloc((unsigned)statbf.st_size); in rmut()
1498 if (!utmp) in rmut()
1500 if (statbf.st_size && utmp) { in rmut()
1501 nutmp = read(f, utmp, (int)statbf.st_size); in rmut()
1502 nutmp /= sizeof(struct utmp); in rmut()
[all …]
/freebsd/usr.bin/wall/
H A Dwall.c87 struct utmpx *utmp; in main() local
134 while ((utmp = getutxent()) != NULL) { in main()
135 if (utmp->ut_type != USER_PROCESS) in main()
137 if (ttystat(utmp->ut_line) != 0) in main()
141 pw = getpwnam(utmp->ut_user); in main()
151 if (strcmp(*np, utmp->ut_user) == 0) { in main()
161 if ((p = ttymsg(&iov, 1, utmp->ut_line, 60*5)) != NULL) in main()
/freebsd/crypto/openssh/
H A Dloginrec.c174 void set_utmp_time(struct logininfo *li, struct utmp *ut);
175 void construct_utmp(struct logininfo *li, struct utmp *ut);
621 set_utmp_time(struct logininfo *li, struct utmp *ut) in set_utmp_time()
633 struct utmp *ut) in construct_utmp()
809 utmp_write_library(struct logininfo *li, struct utmp *ut) in utmp_write_library()
825 utmp_write_direct(struct logininfo *li, struct utmp *ut) in utmp_write_direct()
827 struct utmp old_ut; in utmp_write_direct()
858 pos = (off_t)tty * sizeof(struct utmp); in utmp_write_direct()
910 struct utmp ut; in utmp_perform_login()
931 struct utmp ut; in utmp_perform_logout()
[all …]
/freebsd/include/rpcsvc/
H A Drnusers.x39 struct utmp { struct
48 utmp ui_utmp; argument
52 typedef utmp utmparr<MAXUSERS>;
/freebsd/crypto/heimdal/appl/ftp/ftpd/
H A Dlogwtmp.c115 struct utmp ut; in ftpd_logwtmp_wtmp()
125 memset(&ut, 0, sizeof(struct utmp)); in ftpd_logwtmp_wtmp()
181 write(fd, &ut, sizeof(struct utmp)); /* XXX */ in ftpd_logwtmp_wtmp()
/freebsd/bin/ed/
H A Dundo.c73 undo_t utmp; \
74 utmp = x, x = y, y = utmp; \
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_scalars.c192 struct utmpx *utmp; in OS_getSystemNumUsers() local
196 while ((utmp = getutxent()) != NULL) { in OS_getSystemNumUsers()
197 if (utmp->ut_type == USER_PROCESS) in OS_getSystemNumUsers()
/freebsd/contrib/tcpdump/lbl/
H A Dos-sunos4.h116 struct utmp;
118 void login(struct utmp *);
/freebsd/contrib/libpcap/lbl/
H A Dos-sunos4.h115 struct utmp;
117 void login(struct utmp *);
/freebsd/contrib/netbsd-tests/usr.bin/sdiff/
H A Dd_iflags_d1.out14 native-fsread: filename eq "/etc/utmp" then permit <
41 …filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
H A Dd_iflags_b1.out14 native-fsread: filename eq "/etc/utmp" then permit <
41 …filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
H A Dd_iflags_d2.out14 … > native-fsread: filename eq "/etc/utmp" then permit
41 …native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/r…
H A Dd_iflags_b2.out14 … > native-fsread: filename eq "/etc/utmp" then permit
41 …native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/r…
H A Dd_flags_s.out14 native-fsread: filename eq "/etc/utmp" then permit <
51 …lename eq "/var/run/ld.so.hints" then perm | native-fsread: filename eq "/etc/utmp" then permit
/freebsd/usr.bin/sdiff/tests/
H A Dd_iflags_b1.out14 native-fsread: filename eq "/etc/utmp" then permit <
41 …filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
H A Dd_iflags_d1.out14 native-fsread: filename eq "/etc/utmp" then permit <
41 …filename eq "/var/run/ld.so.hints" then pe | native-fsread: filename eq "/etc/utmp" then permit
H A Dd_iflags_b2.out14 … > native-fsread: filename eq "/etc/utmp" then permit
41 …native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/r…
H A Dd_iflags_d2.out14 … > native-fsread: filename eq "/etc/utmp" then permit
41 …native-fsread: filename eq "/etc/utmp" then permit | native-fsread: filename eq "/var/r…

123