chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9fddd86eb30740e3932a1d0fae2fc88ff76945fe
[elogind.git]
/
src
/
basic
/
login-util.h
1
/* SPDX-License-Identifier: LGPL-2.1+ */
2
#pragma once
3
4
/***
5
Copyright © 2013 Zbigniew Jędrzejewski-Szmek
6
***/
7
8
#include <stdbool.h>
9
#include <unistd.h>
10
11
bool session_id_valid(const char *id);
12
13
static inline bool logind_running(void) {
14
return access("/run/systemd/seats/", F_OK) >= 0;
15
}