chiark / gitweb /
tree-wide: drop 'This file is part of systemd' blurb
[elogind.git] / src / basic / fileio-label.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5   Copyright 2010 Lennart Poettering
6   Copyright 2010 Harald Hoyer
7 ***/
8
9 #include <stdio.h>
10
11 #include "fileio.h"
12
13 /* These functions are split out of fileio.h (and not for examplement just as flags to the functions they wrap) in
14  * order to optimize linking: This way, -lselinux is needed only for the callers of these functions that need selinux,
15  * but not for all */
16
17 int write_string_file_atomic_label_ts(const char *fn, const char *line, struct timespec *ts);
18 static inline int write_string_file_atomic_label(const char *fn, const char *line) {
19         return write_string_file_atomic_label_ts(fn, line, NULL);
20 }
21 #if 0 /// UNNEEDED by elogind
22 int write_env_file_label(const char *fname, char **l);
23 #endif // 0
24 int fopen_temporary_label(const char *target, const char *path, FILE **f, char **temp_path);
25
26 int create_shutdown_run_nologin_or_warn(void);