chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
tree-wide: beautify remaining copyright statements
[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
}