Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

lib/falloc.h

Go to the documentation of this file.
00001 #ifndef H_FALLOC
00002 #define H_FALLOC
00003 
00013 /*@access FD_t@*/
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 /*@unused@*/ static inline long int fadGetFileSize(FD_t fd) {
00020     return fd->fileSize;
00021 }
00022 
00023 /*@unused@*/ static inline void fadSetFileSize(FD_t fd, long int fileSize) {
00024     fd->fileSize = fileSize;
00025 }
00026 
00027 /*@unused@*/ static inline unsigned int fadGetFirstFree(FD_t fd) {
00028     return fd->firstFree;
00029 }
00030 
00031 /*@unused@*/ static inline void fadSetFirstFree(FD_t fd, unsigned int firstFree) {
00032     fd->firstFree = firstFree;
00033 }
00034 
00037 /*@null@*/ FD_t fadOpen         (const char * path, int flags, mode_t perms);
00038 
00042 unsigned int    fadAlloc        (FD_t fd, unsigned int size); /* 0 on failure */
00043 
00047 void            fadFree         (FD_t fd, unsigned int offset);
00048 
00052 int             fadFirstOffset  (FD_t fd);
00053 
00057 int             fadNextOffset   (FD_t fd, unsigned int lastoff); /* 0 at end */
00058 
00059 #ifdef __cplusplus
00060 }
00061 #endif
00062 
00063 #endif  /* H_FALLOC */

Generated at Sun Apr 8 18:42:59 2001 for rpm by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000