]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/login-util.h
util: introduce memcmp_safe()
[thirdparty/systemd.git] / src / basic / login-util.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
0ef6f454
LP
2#pragma once
3
4b549144 4#include <stdbool.h>
00229fe4 5#include <unistd.h>
4b549144
ZJS
6
7bool session_id_valid(const char *id);
00229fe4
LP
8
9static inline bool logind_running(void) {
10 return access("/run/systemd/seats/", F_OK) >= 0;
11}