1 --- getlastlogx.3.orig 2006-01-11 18:20:07.000000000 -0800
2 +++ getlastlogx.3 2006-01-04 18:02:57.000000000 -0800
4 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
5 .\" POSSIBILITY OF SUCH DAMAGE.
13 +.Nm getlastlogxbyname ,
19 .Nd user accounting database functions
25 -.Fn getlastlogx "const char *fname" "uid_t uid" "struct lastlogx *ll"
26 +.Fn getlastlogx "uid_t uid" "struct lastlogx *ll"
27 +.Ft struct lastlogx *
28 +.Fn getlastlogxbyname "const char *name" "struct lastlogx *ll"
30 .Fn getutmp "const struct utmpx *ux" "struct utmp *u"
32 .Fn getutmpx "const struct utmp *u" "struct utmpx *ux"
34 -.Fn updlastlogx "const char *fname" "uid_t uid" "struct lastlogx *ll"
36 -.Fn updwtmpx "const char *file" "const struct utmpx *utx"
38 .Fn utmpxname "const char *fname"
42 function looks up the entry for the user with user id
57 +.Fn getlastlogxbyname
58 +function is similar to
60 +except the user name is passed.
63 function fills out the entries in the struct utmp
66 field, which will be initialized to
71 -function tries to update the information for the user with the user id
77 -with the data supplied in
83 struct timeval ll_tv; /* time entry was created */
84 char ll_line[_UTX_LINESIZE]; /* tty name */
85 char ll_host[_UTX_HOSTSIZE]; /* host name */
86 - struct sockaddr_storage ll_ss; /* address where entry was made from */
89 -All the fields should be filled out by the caller.
104 @@ -141,11 +113,15 @@
108 -returns the found entry on success, or
110 +.Fn getlastlogxbyname
111 +return the found entry on success, or
113 if it could not open the database, could not find an entry matching
115 -in there, or could not allocate the necessary space (in case
118 +or could not allocate the necessary space (in case
122 @@ -154,27 +130,17 @@
123 returns 1 on success, or 0 if the supplied file name was too long or
130 -return 0 on success, or \-1 in case the database or file respectively
131 -could not be opened or the data not written into it.