summaryrefslogtreecommitdiff
path: root/loginrec.h
diff options
context:
space:
mode:
Diffstat (limited to 'loginrec.h')
-rw-r--r--loginrec.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/loginrec.h b/loginrec.h
index b3dbb43df..ecb430d50 100644
--- a/loginrec.h
+++ b/loginrec.h
@@ -30,7 +30,7 @@
30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33/** 33/**
34 ** loginrec.h: platform-independent login recording and lastlog retrieval 34 ** loginrec.h: platform-independent login recording and lastlog retrieval
35 **/ 35 **/
36 36
@@ -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.4 2000/06/27 01:18:27 djm Exp $"); */ 43/* RCSID("$Id: loginrec.h,v 1.5 2001/02/05 12:42:18 stevesk 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
@@ -86,7 +86,7 @@ struct logininfo {
86 * use time_t's value as tv_sec and set tv_usec to 0 86 * use time_t's value as tv_sec and set tv_usec to 0
87 */ 87 */
88 unsigned int tv_sec; 88 unsigned int tv_sec;
89 unsigned int tv_usec; 89 unsigned int tv_usec;
90 union login_netinfo hostaddr; /* caller's host address(es) */ 90 union login_netinfo hostaddr; /* caller's host address(es) */
91}; /* struct logininfo */ 91}; /* struct logininfo */
92 92
@@ -102,7 +102,7 @@ struct logininfo *login_alloc_entry(int pid, const char *username,
102/* free a structure */ 102/* free a structure */
103void login_free_entry(struct logininfo *li); 103void login_free_entry(struct logininfo *li);
104/* fill out a pre-allocated structure with useful information */ 104/* fill out a pre-allocated structure with useful information */
105int login_init_entry(struct logininfo *li, int pid, const char *username, 105int login_init_entry(struct logininfo *li, int pid, const char *username,
106 const char *hostname, const char *line); 106 const char *hostname, const char *line);
107/* place the current time in a logininfo struct */ 107/* place the current time in a logininfo struct */
108void login_set_current_time(struct logininfo *li); 108void login_set_current_time(struct logininfo *li);