]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/basic/fileio-label.h
rlimit: don't assume getrlimit() always succeeds
[thirdparty/systemd.git] / src / basic / fileio-label.h
CommitLineData
a5c32cff
HH
1#pragma once
2
3/***
4 This file is part of systemd.
5
6 Copyright 2010 Lennart Poettering
7 Copyright 2010 Harald Hoyer
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
23#include <stdio.h>
71d35b6b 24
a5c32cff
HH
25#include "fileio.h"
26
39c38d77
ZJS
27int write_string_file_atomic_label_ts(const char *fn, const char *line, struct timespec *ts);
28static inline int write_string_file_atomic_label(const char *fn, const char *line) {
29 return write_string_file_atomic_label_ts(fn, line, NULL);
30}
a5c32cff 31int write_env_file_label(const char *fname, char **l);
f7f628b5
ZJS
32int fopen_temporary_label(const char *target,
33 const char *path, FILE **f, char **temp_path);