chiark / gitweb /
copy: rework copy_file_atomic() to copy the specified file via O_TMPFILE if possible
[elogind.git] / src / basic / login-util.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   This file is part of systemd.
6
7   Copyright 2013 Zbigniew JÄ™drzejewski-Szmek
8 ***/
9
10 #include <stdbool.h>
11 #include <unistd.h>
12
13 bool session_id_valid(const char *id);
14
15 static inline bool logind_running(void) {
16         return access("/run/systemd/seats/", F_OK) >= 0;
17 }