#3207: implement <utmpx.h> ----------------------------+--------------------------- Reporter: kaliber | Owner: nobody Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: System/POSIX | Version: R1/pre-alpha1 Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ----------------------------+--------------------------- Comment (by vibhavp): I think this should do the work: /* As of now, Haiku doesnt have multiuser support, this header provides a stub implementation */ #include <sys/types.h> #include <sys/time.h> struct utmpx { char ut_user[]; /* User login name */ char ut_it[]; /* Unspecified initialization process identifier. */ char ut_line[]; /* Device name */ pid_t ut_id; /* Process ID */ short ut_type; /* Type of entry */ struct timeval ut_tv; /* Time entry was made */ } /* Symbolic constants for ut_type */ #define EMPTY 0 /* No valid user accounting information. */ #define BOOT_TIME 1 /* Identifies time of system boot. */ #define OLD_TIME 2 /* Identifies time when system clock changed. */ #define NEW_TIME 3 /* Identifies time after system clock changed. */ #define USER_PROCESS 4 /* Identifies a process. */ #define INIT_PROCESS 5 /* Identifies a process spawned by the init process. */ #define LOGIN_PROCESS 6 /* Identifies the session leader of a logged-in user */ #define DEAD_PROCESS 7 /* Identifies a session leader who has exited. */ void endutxent(void); struct utmpx *getutxent(void); struct utmpx *getutxid(const struct utmpx *); struct utmpx *getutxline(const struct utmpx *); struct utmpx *pututxline(const struct utmpx *); void setutxent(void); -- Ticket URL: <http://dev.haiku-os.org/ticket/3207#comment:3> Haiku <http://dev.haiku-os.org> Haiku - the operating system.