summaryrefslogtreecommitdiff
path: root/src/basic/os-util.h
blob: 6b9e033941b92b0225c455eb389aa6c926f14a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once

#include <stdio.h>

int path_is_os_tree(const char *path);

int open_os_release(const char *root, char **ret_path, int *ret_fd);
int fopen_os_release(const char *root, char **ret_path, FILE **ret_file);

int parse_os_release(const char *root, ...);
int load_os_release_pairs(const char *root, char ***ret);