1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:07: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:
Luke 2020-09-09 08:38:23 +01:00 committed by Andreas Kling
parent 721788943d
commit 9d8f1032b7

View file

@ -36,6 +36,9 @@ struct exit_status { /* Type for ut_exit, below */
short int e_exit; /* Process exit status */ short int e_exit; /* Process exit status */
}; };
#define USER_PROCESS 7
#define DEAD_PROCESS 8
#define UT_NAMESIZE 32 #define UT_NAMESIZE 32
#define UT_LINESIZE 32 #define UT_LINESIZE 32
#define UT_HOSTSIZE 256 #define UT_HOSTSIZE 256
@ -64,4 +67,12 @@ struct utmp {
char __unused[20]; /* Reserved for future use */ 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 __END_DECLS