summaryrefslogtreecommitdiff
path: root/loginrec.h
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-02-05 12:42:17 +0000
committerKevin Steves <stevesk@pobox.com>2001-02-05 12:42:17 +0000
commitef4eea9badfb65f05ac24f786b710cc3f27f0e43 (patch)
treef54abef181ccd6ad5285a5c16b4c159d8b74e932 /loginrec.h
parentd2ddda4efab29fd8663757634773fa10e557e0f3 (diff)
- stevesk@cvs.openbsd.org 2001/02/04 08:32:27
[many files; did this manually to our top-level source dir] unexpand and remove end-of-line whitespace; ok markus@
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);