a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering This file is part of systemd.
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering Copyright 2010 Lennart Poettering
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering systemd is free software; you can redistribute it and/or modify it
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering under the terms of the GNU Lesser General Public License as published by
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering the Free Software Foundation; either version 2.1 of the License, or
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering (at your option) any later version.
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering systemd is distributed in the hope that it will be useful, but
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering Lesser General Public License for more details.
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering You should have received a copy of the GNU Lesser General Public License
a1ad376761af16da46c9ad90fd8df41c8c5c0976Lennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
return -ENOMEM;
*config_home = r;
if (home) {
return -ENOMEM;
*config_home = r;
return -ENOMEM;
*runtime_dir = r;
if (home)
if (!res)
return -ENOMEM;
const char *generator,
const char *generator_early,
const char *generator_late) {
return NULL;
return NULL;
if (!config_dirs)
return NULL;
return NULL;
NULL);
if (!data_dirs)
return NULL;
if (generator_early)
return NULL;
if (config_home)
return NULL;
return NULL;
return NULL;
if (runtime_dir)
return NULL;
return NULL;
if (generator)
return NULL;
if (data_home)
return NULL;
return NULL;
return NULL;
if (generator_late)
return NULL;
return NULL;
return tmp;
NULL);
NULL);
LookupPaths *p,
bool personal,
const char *root_dir,
const char *generator,
const char *generator_early,
const char *generator_late) {
assert(p);
append = true;
if (personal)
NULL);
#ifdef HAVE_SPLIT_USR
NULL);
if (!unit_path)
return -ENOMEM;
return -ENOMEM;
return -ENOMEM;
#ifdef HAVE_SYSV_COMPAT
NULL);
if (!p->sysvinit_path)
return -ENOMEM;
NULL);
if (!p->sysvrcnd_path)
return -ENOMEM;
return -ENOMEM;
return -ENOMEM;
return -ENOMEM;
_cleanup_free_ char *t =
return -ENOMEM;
assert(p);
#ifdef HAVE_SYSV_COMPAT
const char *root_dir) {