kfile_posix.h
Go to the documentation of this file.00001
00038 #ifndef KFILE_POSIX_H
00039 #define KFILE_POSIX_H
00040
00041 #include <io/kfile.h>
00042 #include <stdio.h>
00043
00044 typedef struct KFilePosix
00045 {
00046 KFile fd;
00047 FILE *fp;
00048 } KFilePosix;
00049
00050 #define KFT_KFILEPOSIX MAKE_ID('K', 'F', 'T', 'P')
00051
00052 INLINE KFilePosix *KFILEPOSIX_CAST(KFile *fd)
00053 {
00054 ASSERT(fd->_type == KFT_KFILEPOSIX);
00055 return (KFilePosix *)fd;
00056 }
00057
00058 FILE *kfile_posix_init(KFilePosix *file, const char *filename, const char *mode);
00059
00060 #endif