Add flopenat() function from FreeBSD

This commit is contained in:
Guillem Jover
2018-05-21 01:11:46 +02:00
parent 30b4d50754
commit 993828d84e
5 changed files with 92 additions and 19 deletions

View File

@@ -62,6 +62,7 @@ int humanize_number(char *buf, size_t len, int64_t bytes,
int expand_number(const char *_buf, uint64_t *_num);
int flopen(const char *_path, int _flags, ...);
int flopenat(int dirfd, const char *path, int flags, ...);
struct pidfh *pidfile_open(const char *path, mode_t mode, pid_t *pidptr);
int pidfile_write(struct pidfh *pfh);