File: dirs.h

package info (click to toggle)
xchpst 0.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 332 kB
  • sloc: ansic: 3,220; sh: 75; makefile: 51
file content (12 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
/* SPDX-License-Identifier: MIT */
/* SPDX-FileCopyrightText: (c) Copyright 2025,2026 Andrew Bower <andrew@bower.uk> */

#ifndef _UTIL_H
#define _UTIL_H

extern int get_run_dir(void);
extern const char *get_run_path(void);
extern int ensure_dir(int dirfd, const char *path, int *fd, mode_t mode);
extern void close_run_dir(void);

#endif