8 #include <syslinux/zio.h>
10 FILE *zfopen(const char *file, const char *mode)
22 flags = O_WRONLY | O_CREAT | O_TRUNC;
25 flags = O_WRONLY | O_CREAT | O_APPEND;
35 flags = (flags & ~(O_RDONLY | O_WRONLY)) | O_RDWR;
38 fd = zopen(file, flags, 0666);
43 return fdopen(fd, mode);