Searched refs:wtmp (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/libbb/
H A Dmessages.c49 /* This is usually something like "/var/adm/wtmp" or "/var/log/wtmp" */
56 # error unknown path to wtmp file
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/bftpd-1.6.6/
H A Dlogin.c24 # warning "<paths.h> doesn't set _PATH_WTMP. You can not use wtmp logging"
29 # warning "<paths.h> was not found. You can not use wtmp logging with bftpd."
59 FILE *wtmp; variable
258 if (!((wtmp = fopen (_PATH_WTMP, "a"))))
267 if (!wtmp)
291 fseek (wtmp, 0, SEEK_END);
292 fwrite ((void *) &ut, sizeof (ut), 1, wtmp);
293 fflush (wtmp);
298 if (wtmp)
302 fclose (wtmp);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ppp-2.4.4/pppd/
H A Dsys-linux.c2142 * Update the wtmp file with the appropriate user name and tty device.
2150 int wtmp; local
2195 * Update the wtmp file.
2200 wtmp = open(_PATH_WTMP, O_APPEND|O_WRONLY);
2201 if (wtmp >= 0) {
2202 flock(wtmp, LOCK_EX);
2204 if (write (wtmp, (char *)&ut, sizeof(ut)) != sizeof(ut))
2207 flock(wtmp, LOCK_UN);
2209 close (wtmp);
/netgear-R7000-V1.0.7.12_1.2.5/src/router/ppp/pppd/
H A Dsys-linux.c2036 * Update the wtmp file with the appropriate user name and tty device.
2044 int wtmp; local
2092 * Update the wtmp file.
2097 wtmp = open(_PATH_WTMP, O_APPEND|O_WRONLY);
2098 if (wtmp >= 0) {
2099 flock(wtmp, LOCK_EX);
2101 if (write (wtmp, (char *)&ut, sizeof(ut)) != sizeof(ut))
2104 flock(wtmp, LOCK_UN);
2106 close (wtmp);

Completed in 80 milliseconds