diff options
Diffstat (limited to 'libbb/wfopen.c')
-rw-r--r-- | libbb/wfopen.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libbb/wfopen.c b/libbb/wfopen.c index ac365c2..4c84b3b 100644 --- a/libbb/wfopen.c +++ b/libbb/wfopen.c @@ -18,3 +18,23 @@ FILE* FAST_FUNC fopen_or_warn(const char *path, const char *mode) } return fp; } + +FILE* FAST_FUNC fopen_for_read(const char *path) +{ + return fopen(path, "r"); +} + +FILE* FAST_FUNC xfopen_for_read(const char *path) +{ + return xfopen(path, "r"); +} + +FILE* FAST_FUNC fopen_for_write(const char *path) +{ + return fopen(path, "w"); +} + +FILE* FAST_FUNC xfopen_for_write(const char *path) +{ + return xfopen(path, "w"); +} |