mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibC: Add missing utmp backwards compatibility hacks and user/dead process macros
The user/dead process macros are not used anywhere in Serenity right now, but are required for OpenSSH.
This commit is contained in:
parent
721788943d
commit
9d8f1032b7
1 changed files with 11 additions and 0 deletions
|
@ -36,6 +36,9 @@ struct exit_status { /* Type for ut_exit, below */
|
|||
short int e_exit; /* Process exit status */
|
||||
};
|
||||
|
||||
#define USER_PROCESS 7
|
||||
#define DEAD_PROCESS 8
|
||||
|
||||
#define UT_NAMESIZE 32
|
||||
#define UT_LINESIZE 32
|
||||
#define UT_HOSTSIZE 256
|
||||
|
@ -64,4 +67,12 @@ struct utmp {
|
|||
char __unused[20]; /* Reserved for future use */
|
||||
};
|
||||
|
||||
/* Backward compatibility hacks */
|
||||
#define ut_name ut_user
|
||||
#ifndef _NO_UT_TIME
|
||||
# define ut_time ut_tv.tv_sec
|
||||
#endif
|
||||
#define ut_xtime ut_tv.tv_sec
|
||||
#define ut_addr ut_addr_v6[0]
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue