version 1.2, 2001/03/24 16:43:27 |
version 1.2.4.3, 2002/10/11 14:53:07 |
|
|
* information is not available. This must be called before record_login. |
* information is not available. This must be called before record_login. |
* The host the user logged in from will be returned in buf. |
* The host the user logged in from will be returned in buf. |
*/ |
*/ |
|
|
u_long |
u_long |
get_last_login_time(uid_t uid, const char *logname, |
get_last_login_time(uid_t uid, const char *logname, |
char *buf, u_int bufsize) |
char *buf, u_int bufsize) |
{ |
{ |
struct lastlog ll; |
struct lastlog ll; |
char *lastlog; |
char *lastlog; |
|
|
* Records that the user has logged in. I these parts of operating systems |
* Records that the user has logged in. I these parts of operating systems |
* were more standardized. |
* were more standardized. |
*/ |
*/ |
|
|
void |
void |
record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, |
record_login(pid_t pid, const char *ttyname, const char *user, uid_t uid, |
const char *host, struct sockaddr * addr) |
const char *host, struct sockaddr * addr, socklen_t addrlen) |
{ |
{ |
int fd; |
int fd; |
struct lastlog ll; |
struct lastlog ll; |
|
|
} |
} |
|
|
/* Records that the user has logged out. */ |
/* Records that the user has logged out. */ |
|
|
void |
void |
record_logout(pid_t pid, const char *ttyname) |
record_logout(pid_t pid, const char *ttyname) |
{ |
{ |