Re: STABLE gnome-libs/core compile on HPUX bug report
- From: Dan Newcombe <Newcombe mordor clayton edu>
- To: Miguel de Icaza <miguel nuclecu unam mx>
- cc: gnome-list gnome org
- Subject: Re: STABLE gnome-libs/core compile on HPUX bug report
- Date: Tue, 29 Dec 1998 16:00:53 -0500 (EST)
On Tue, 29 Dec 1998, Miguel de Icaza wrote:
> > On HPUX, there is a utmpx.h, but it does not have the functions that the
> > getutmpx function, and others in the write_logout_record function
> > that assumes if you have utmpx, you have getutmpx
> > Also, HPUX does not define WTMPX_FILE.
> A quick hack would be to test this on configure.in. But what I would
> really like to know is: how are you supposed to do utmpx handling in
> HP-UX? What is the correct way of doing it?
Damned if I know - I don't even know what the utmpx handling does, other
than dealing with login accounting.
Most of the programming I do doesn't do that much with the OS :
I could inclulde the utmpx.h/utmp.h file if wanted.
Don't know if this'll help:
man getut
NAME
getutent(), getutent_r(), getutid(), getutid_r(), getutline(),
getutline_r(), pututline(), pututline_r(), _pututline(), setutent(),
setutent_r(), endutent(), endutent_r(), utmpname(), utmpname_r() -
access utmp file entry
SYNOPSIS
#include <utmp.h>
etc...
man getutxent
NAME
getutxent(), getutxid(), getutxline(), pututxline(), setutxent(),
endutxent() - access utmpx file entry
SYNOPSIS
#include <utmpx.h>
struct utmpx *getutxent(void);
struct utmpx *getutxid(const struct utmpx *id);
struct utmpx *getutxline(const struct utmpx *line);
struct utmpx *_pututxline(const struct utmpx *utmpx);
void pututxline(const struct utmpx *utmpx);
void setutxent(void);
void endutxent(void);
DESCRIPTION
getutxent(), getutxid(), and getutxline() each return a pointer to a
structure of the following type:
struct utmpx {
char ut_user[24]; /* User login name */
char ut_id[4]; /* /etc/inittab id (usually line#) */
char ut_line[12]; /* device name (console, lnxx) */
pid_t ut_pid; /* process id */
short ut_type; /* type of entry */
struct __exit_status {
short __e_termination; /* Process termination status*/
short __e_exit; /* Process exit status */
} ut_exit; /* The exit status of a process*/
/* marked as DEAD_PROCESS. */
unsigned short ut_reserved1; /* Reserved for future use */
struct timeval {
time_t tv_sec; /* seconds */
long tv_usec; /* and microseconds */
} ut_tv; /* time entry was made */
char ut_host[64]; /* host name, if remote; NOT SUPPORTED */
unsigned long ut_addr; /* Internet addr of host, ifremote */
char ut_reserved2[12] ; /* Reserved for future use */
};
getutxent() Reads in the next entry from a utmpx-like file.
If the file is not already open, getutxent() opens
it. If it reaches the end of the file,
getutxent() fails.
etc...
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]