Displaying 1 result from an estimated 1 matches for "set_utmpx_entry".
Did you mean:
set_utmp_entry
1999 Dec 27
2
Suggestion: login.c->record_login()
...ay might be:
#ifdef LINUX
/* Linux: Do the business with PAM <cough> */
set_pam_entry (struct logindata l);
/* ... whatever else Linux needs ... */
#endif /* LINUX */
#ifdef HPUX
/* HPUX: Do things the hard way
* no lastlog, utmp *and* utmpx, wtmp */
set_utmp_entry (struct logindata l);
set_utmpx_entry (struct logindata l);
set_wtmp_entry (struct logindata l);
#endif /* HPUX */
etc...
It's still not exactly pretty, but it's a lot more readily understood
IMO. (I've left error propogation out for clarity at this point.)
There would still be #ifdef blocks in the individual routines, t...