Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v239-15
/
.
/
src
/
basic
/
login-util.h
blob: e1e62e12b7aa67140e2f714620495a448e3bf523 [
file
] [
log
] [
blame
] [
raw
]
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma
once
#include
<stdbool.h>
#include
<unistd.h>
bool
session_id_valid
(
const
char
*
id
);
static
inline
bool
logind_running
(
void
)
{
return
access
(
"/run/systemd/seats/"
,
F_OK
)
>=
0
;
}