path.c revision 0a1beeb64207eaa88ab9236787b1cbc2f704ae14
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore This file is part of systemd.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore Copyright 2014 Lennart Poettering
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore systemd is free software; you can redistribute it and/or modify it
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore under the terms of the GNU Lesser General Public License as published by
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore the Free Software Foundation; either version 2.1 of the License, or
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore (at your option) any later version.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore systemd is distributed in the hope that it will be useful, but
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore WITHOUT ANY WARRANTY; without even the implied warranty of
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore Lesser General Public License for more details.
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore You should have received a copy of the GNU Lesser General Public License
538aa54d819fa7751ca82bcc30d4ed8c57ec2ef2Garrett D'Amore along with systemd; If not, see <http://www.gnu.org/licenses/>.
#include <stdio.h>
#include <getopt.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "sd-path.h"
#include "build.h"
#include "macro.h"
#include "util.h"
#include "log.h"
static int list_homes(void) {
uint64_t i = 0;
if (q == -ENXIO)
static int print_home(const char *n) {
uint64_t i = 0;
return -ENOTSUP;
static void help(void) {
help();
case ARG_VERSION:
case ARG_SUFFIX:
return -EINVAL;
log_open();
goto finish;
r = list_homes();