]>
git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/utmp-wtmp.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
13 int utmp_get_runlevel(int *runlevel
, int *previous
);
15 int utmp_put_shutdown(void);
16 int utmp_put_reboot(usec_t timestamp
);
17 int utmp_put_runlevel(int runlevel
, int previous
);
19 int utmp_put_dead_process(const char *id
, pid_t pid
, int code
, int status
);
20 int utmp_put_init_process(const char *id
, pid_t pid
, pid_t sid
, const char *line
, int ut_type
, const char *user
);
25 const char *origin_tty
,
26 bool (*match_tty
)(const char *tty
, void *userdata
),
29 static inline bool utxent_start(void) {
33 static inline void utxent_cleanup(bool *initialized
) {
38 #else /* ENABLE_UTMP */
40 static inline int utmp_get_runlevel(int *runlevel
, int *previous
) {
43 static inline int utmp_put_shutdown(void) {
46 static inline int utmp_put_reboot(usec_t timestamp
) {
49 static inline int utmp_put_runlevel(int runlevel
, int previous
) {
52 static inline int utmp_put_dead_process(const char *id
, pid_t pid
, int code
, int status
) {
55 static inline int utmp_put_init_process(const char *id
, pid_t pid
, pid_t sid
, const char *line
, int ut_type
, const char *user
) {
58 static inline int utmp_wall(
61 const char *origin_tty
,
62 bool (*match_tty
)(const char *tty
, void *userdata
),
67 #endif /* ENABLE_UTMP */