summaryrefslogtreecommitdiff
path: root/loginrec.h
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.h')
-rw-r--r--loginrec.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/loginrec.h b/loginrec.h
index ed9828c29..9d5bd6a26 100644
--- a/loginrec.h
+++ b/loginrec.h
@@ -40,7 +40,7 @@
40#include <netinet/in.h> 40#include <netinet/in.h>
41#include <sys/socket.h> 41#include <sys/socket.h>
42 42
43/* RCSID("$Id: loginrec.h,v 1.2 2000/06/04 17:07:49 andre Exp $"); */ 43/* RCSID("$Id: loginrec.h,v 1.3 2000/06/19 08:20:03 andre Exp $"); */
44 44
45/** 45/**
46 ** you should use the login_* calls to work around platform dependencies 46 ** you should use the login_* calls to work around platform dependencies
@@ -102,6 +102,9 @@ struct logininfo {
102/* 102/*
103 * login recording functions 103 * login recording functions
104 */ 104 */
105
106/** 'public' functions */
107
105/* construct a new login entry */ 108/* construct a new login entry */
106struct logininfo *login_alloc_entry(int pid, const char *username, 109struct logininfo *login_alloc_entry(int pid, const char *username,
107 const char *hostname, const char *line); 110 const char *hostname, const char *line);
@@ -113,16 +116,20 @@ int login_init_entry(struct logininfo *li, int pid, const char *username,
113/* place the current time in a logininfo struct */ 116/* place the current time in a logininfo struct */
114void login_set_current_time(struct logininfo *li); 117void login_set_current_time(struct logininfo *li);
115 118
116/* set the network address based on network address type */
117void login_set_addr(struct logininfo *li, const struct sockaddr *sa,
118 const unsigned int sa_size);
119
120/* record the entry */ 119/* record the entry */
121int login_write (struct logininfo *li);
122int login_login (struct logininfo *li); 120int login_login (struct logininfo *li);
123int login_logout(struct logininfo *li); 121int login_logout(struct logininfo *li);
122
123/** End of public functions */
124
125/* record the entry */
126int login_write (struct logininfo *li);
124int login_log_entry(struct logininfo *li); 127int login_log_entry(struct logininfo *li);
125 128
129/* set the network address based on network address type */
130void login_set_addr(struct logininfo *li, const struct sockaddr *sa,
131 const unsigned int sa_size);
132
126/* 133/*
127 * lastlog retrieval functions 134 * lastlog retrieval functions
128 */ 135 */