mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 18:49:44 +00:00
util: Add open_fmt_ro helper
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
f8ad351f4d
commit
ea0f8eac1d
1 changed files with 2 additions and 0 deletions
|
|
@ -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__ ); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue