fileio.h revision f73141d7657b3f60b8669bc8386413d8a8a372c6
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering This file is part of systemd.
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering Copyright 2010 Lennart Poettering
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering systemd is free software; you can redistribute it and/or modify it
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering under the terms of the GNU Lesser General Public License as published by
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering (at your option) any later version.
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering systemd is distributed in the hope that it will be useful, but
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering Lesser General Public License for more details.
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering You should have received a copy of the GNU Lesser General Public License
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint write_string_file(const char *fn, const char *line);
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint write_string_file_atomic(const char *fn, const char *line);
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint read_one_line_file(const char *fn, char **line);
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint read_full_file(const char *fn, char **contents, size_t *size);
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint parse_env_file(const char *fname, const char *separator, ...) _sentinel_;
3abaabdab73bd0f3e4f68284dc3cb00902b8e1c6Lennart Poetteringint load_env_file(const char *fname, const char *separator, char ***l);