finger.h (1591) | finger.h (2537) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 uid_t uid; /* user id */ 41 char *dir; /* user's home directory */ 42 char *homephone; /* pointer to home phone no. */ 43 char *name; /* login name */ 44 char *office; /* pointer to office name */ 45 char *officephone; /* pointer to office phone no. */ 46 char *realname; /* pointer to full name */ 47 char *shell; /* user's shell */ | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Tony Nardo of the Johns Hopkins University/Applied Physics Lab. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 uid_t uid; /* user id */ 41 char *dir; /* user's home directory */ 42 char *homephone; /* pointer to home phone no. */ 43 char *name; /* login name */ 44 char *office; /* pointer to office name */ 45 char *officephone; /* pointer to office phone no. */ 46 char *realname; /* pointer to full name */ 47 char *shell; /* user's shell */ |
48 time_t mailread; /* last time mail was read */ 49 time_t mailrecv; /* last time mail was received */ |
|
48 struct where *whead, *wtail; /* list of where user is or has been */ 49} PERSON; 50 51enum status { LASTLOG, LOGGEDIN }; 52 53typedef struct where { 54 struct where *next; /* next place user is or has been */ 55 enum status info; /* type/status of request */ 56 short writable; /* tty is writable */ 57 time_t loginat; /* time of (last) login */ 58 time_t idletime; /* how long idle (if logged in) */ 59 char tty[UT_LINESIZE+1]; /* null terminated tty line */ 60 char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ 61} WHERE; 62 63#include "extern.h" | 50 struct where *whead, *wtail; /* list of where user is or has been */ 51} PERSON; 52 53enum status { LASTLOG, LOGGEDIN }; 54 55typedef struct where { 56 struct where *next; /* next place user is or has been */ 57 enum status info; /* type/status of request */ 58 short writable; /* tty is writable */ 59 time_t loginat; /* time of (last) login */ 60 time_t idletime; /* how long idle (if logged in) */ 61 char tty[UT_LINESIZE+1]; /* null terminated tty line */ 62 char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ 63} WHERE; 64 65#include "extern.h" |