]>
git.ipfire.org Git - thirdparty/systemd.git/blob - klibc_fixups.h
6 #include <linux/kernel.h>
7 #include <linux/unistd.h>
9 int sysinfo(struct sysinfo
*info
);
12 char *pw_name
; /* user name */
13 char *pw_passwd
; /* user password */
14 uid_t pw_uid
; /* user id */
15 gid_t pw_gid
; /* group id */
16 char *pw_gecos
; /* real name */
17 char *pw_dir
; /* home directory */
18 char *pw_shell
; /* shell program */
22 char *gr_name
; /* group name */
23 char *gr_passwd
; /* group password */
24 gid_t gr_gid
; /* group id */
25 char **gr_mem
; /* group members */
28 struct passwd
*getpwnam(const char *name
);
29 struct group
*getgrnam(const char *name
);
32 #define UT_LINESIZE 32
33 #define UT_NAMESIZE 32
34 #define UT_HOSTSIZE 256
35 #define USER_PROCESS 7 /* normal process */
36 #define ut_time ut_tv.tv_sec
42 short int e_termination
; /* process termination status */
43 short int e_exit
; /* process exit status */
48 short int ut_type
; /* type of login */
49 pid_t ut_pid
; /* pid of login process */
50 char ut_line
[UT_LINESIZE
]; /* devicename */
51 char ut_id
[4]; /* Inittab id */
52 char ut_user
[UT_NAMESIZE
]; /* username */
53 char ut_host
[UT_HOSTSIZE
]; /* hostname for remote login */
54 struct exit_status ut_exit
; /* exit status of a process marked as DEAD_PROCESS */
55 /* The ut_session and ut_tv fields must be the same size for 32 and 64-bit */
56 #if __WORDSIZE == 64 && defined __WORDSIZE_COMPAT32
57 int32_t ut_session
; /* sid used for windowing */
59 int32_t tv_sec
; /* seconds */
60 int32_t tv_usec
; /* microseconds */
66 int32_t ut_addr_v6
[4]; /* internet address of remote host */
67 char __unused
[20]; /* reserved for future use */
70 struct utmp
*getutent(void);
75 #endif /* KLIBC_FIXUPS_H */
76 #endif /* __KLIBC__ */