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