Files
KirkOS/user/include/mlibc/abis/vinix/utmpx.h
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

37 lines
728 B
C

#ifndef _ABIBITS_UTMPX_H
#define _ABIBITS_UTMPX_H
#include <abi-bits/pid_t.h>
#include <bits/posix/timeval.h>
#define __UT_HOSTSIZE 256
#define __UT_NAMESIZE 32
#define __UT_LINESIZE 32
/* Struct definition taken from musl */
struct utmpx {
short ut_type;
short __ut_pad1;
pid_t ut_pid;
char ut_line[__UT_LINESIZE];
char ut_id[4];
char ut_user[__UT_NAMESIZE];
char ut_host[__UT_HOSTSIZE];
struct {
short __e_termination;
short __e_exit;
} ut_exit;
int ut_session, __ut_pad2;
struct timeval ut_tv;
unsigned ut_addr_v6[4];
char __unused[20];
};
#define e_exit __e_exit
#define e_termination __e_termination
#define UTMPX_FILE "/var/run/utmp"
#define WTMPX_FILE "/var/log/wtmp"
#endif /* _ABIBITS_UTMPX_H */