]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/fileio-label.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / basic / fileio-label.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
a5c32cff
HH
2#pragma once
3
4/***
96b2fb93 5 Copyright © 2010 Harald Hoyer
a5c32cff
HH
6***/
7
8#include <stdio.h>
71d35b6b 9
a5c32cff
HH
10#include "fileio.h"
11
7d7a99ac
LP
12/* These functions are split out of fileio.h (and not for examplement just as flags to the functions they wrap) in
13 * order to optimize linking: This way, -lselinux is needed only for the callers of these functions that need selinux,
14 * but not for all */
15
39c38d77
ZJS
16int write_string_file_atomic_label_ts(const char *fn, const char *line, struct timespec *ts);
17static inline int write_string_file_atomic_label(const char *fn, const char *line) {
18 return write_string_file_atomic_label_ts(fn, line, NULL);
19}
a5c32cff 20int write_env_file_label(const char *fname, char **l);
6e11e7e6
LP
21int fopen_temporary_label(const char *target, const char *path, FILE **f, char **temp_path);
22
23int create_shutdown_run_nologin_or_warn(void);