Changes between Version 20 and Version 21 of jazz/09-02-01


Ignore:
Timestamp:
Feb 2, 2009, 2:12:30 AM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-02-01

    v20 v21  
    421421       CESS, LOGIN_PROCESS, USER_PROCESS, or DEAD_PROCESS, getutid() will find
    422422       the first entry whose ut_id field matches ut->ut_id.
     423
     424RETURN VALUE
     425       getutent(), getutid(), getutline() and pututline() return a pointer  to
     426       a  struct  utmp  on  success, and NULL on failure.  This struct utmp is
     427       allocated in static storage,  and  may  be  overwritten  by  subsequent
     428       calls.
     429
     430FILES
     431       /var/run/utmp  database of currently logged-in users
     432       /var/log/wtmp  database of past user logins
     433
     434NOTES
     435   Glibc Notes
     436       The above functions are not thread-safe.  Glibc adds reentrant versions
     437
     438       #define _GNU_SOURCE    /* or _SVID_SOURCE or _BSD_SOURCE */
     439       #include <utmp.h>
     440
     441       int getutent_r(struct utmp *ubuf, struct utmp **ubufp);
     442
     443       int getutid_r(struct utmp *ut,
     444                     struct utmp *ubuf, struct utmp **ubufp);
     445
     446       int getutline_r(struct utmp *ut,
     447                       struct utmp *ubuf, struct utmp **ubufp);
     448
     449       These  functions  are  GNU  extensions, analogs of the functions of the
     450       same name without the _r suffix.  The ubuf parameter gives these  func-
     451       tions  a  place to store their result.  On success they return 0, and a
     452       pointer to the result is written in *ubufp.  On error  these  functions
     453       return -1.
     454
    423455}}}
    424456{{{