]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/login-util.h
Turn VALGRIND variable into a meson configuration switch
[thirdparty/systemd.git] / src / basic / login-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
0ef6f454
LP
2#pragma once
3
35375afe
ZJS
4/***
5 This file is part of systemd.
6
7 Copyright 2013 Zbigniew Jędrzejewski-Szmek
35375afe
ZJS
8***/
9
4b549144 10#include <stdbool.h>
00229fe4 11#include <unistd.h>
4b549144
ZJS
12
13bool session_id_valid(const char *id);
00229fe4
LP
14
15static inline bool logind_running(void) {
16 return access("/run/systemd/seats/", F_OK) >= 0;
17}