util: introduce PTR_TO_MODE and MODE_TO_PTR macros

This commit is contained in:
Yu Watanabe
2019-05-30 21:08:51 +09:00
parent 3f09629c22
commit 961189af2a
2 changed files with 7 additions and 2 deletions
-2
View File
@@ -9,8 +9,6 @@
#include "macro.h"
#define MODE_INVALID ((mode_t) -1)
int parse_boolean(const char *v) _pure_;
int parse_dev(const char *s, dev_t *ret);
int parse_pid(const char *s, pid_t* ret_pid);