]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/basic/login-util.h
Merge pull request #8700 from keszybz/hibernation
[thirdparty/systemd.git] / src / basic / login-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 This file is part of systemd.
6
7 Copyright 2013 Zbigniew Jędrzejewski-Szmek
8 ***/
9
10 #include <stdbool.h>
11 #include <unistd.h>
12
13 bool session_id_valid(const char *id);
14
15 static inline bool logind_running(void) {
16 return access("/run/systemd/seats/", F_OK) >= 0;
17 }