Commit ea0f8eac authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

util: Add open_fmt_ro helper

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
parent f8ad351f
......@@ -158,6 +158,8 @@ DIR *opendir_proc(char *fmt, ...);
FILE *fopen_proc(char *fmt, char *mode, ...);
int open_fmt(char *fmt, int mode, ...);
#define open_fmt_ro(fmt, ...) open_fmt(fmt, O_RDONLY, __VA_ARGS__)
#define __xalloc(op, size, ...) \
({ \
void *___p = op( __VA_ARGS__ ); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment