|
Last change
on this file since 41 was 2, checked in by stevenhl, 8 years ago |
|
Import sources from cwmm-full.zip dated 2005-03-21
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 |
|
|---|
| 3 | gbmhelp.h - Internal helpers for GBM file I/O stuff
|
|---|
| 4 |
|
|---|
| 5 | */
|
|---|
| 6 |
|
|---|
| 7 | #ifndef GBMHELP_H
|
|---|
| 8 | #define GBMHELP_H
|
|---|
| 9 |
|
|---|
| 10 | /*...sincludes:0:*/
|
|---|
| 11 | #if defined(AIX) || defined(LINUX) || defined(MAC)
|
|---|
| 12 | #include <unistd.h>
|
|---|
| 13 | #else
|
|---|
| 14 | #include <io.h>
|
|---|
| 15 | #endif
|
|---|
| 16 | #include <fcntl.h>
|
|---|
| 17 | #ifdef MAC
|
|---|
| 18 | #include <types.h>
|
|---|
| 19 | #include <stat.h>
|
|---|
| 20 | #else
|
|---|
| 21 | #include <sys/types.h>
|
|---|
| 22 | #include <sys/stat.h>
|
|---|
| 23 | #endif
|
|---|
| 24 | /*...e*/
|
|---|
| 25 |
|
|---|
| 26 | extern BOOLEAN gbm_same(const char *s1, const char *s2, int n);
|
|---|
| 27 | extern const char *gbm_find_word(const char *str, const char *substr);
|
|---|
| 28 | extern const char *gbm_find_word_prefix(const char *str, const char *substr);
|
|---|
| 29 |
|
|---|
| 30 | extern int (*gbm_file_open )(const char *fn, int mode);
|
|---|
| 31 | extern int (*gbm_file_create)(const char *fn, int mode);
|
|---|
| 32 | extern void (*gbm_file_close )(int fd);
|
|---|
| 33 | extern long (*gbm_file_lseek )(int fd, long pos, int whence);
|
|---|
| 34 | extern int (*gbm_file_read )(int fd, void *buf, int len);
|
|---|
| 35 | extern int (*gbm_file_write )(int fd, const void *buf, int len);
|
|---|
| 36 |
|
|---|
| 37 | typedef void AHEAD;
|
|---|
| 38 | extern AHEAD *gbm_create_ahead(int fd);
|
|---|
| 39 | extern void gbm_destroy_ahead(AHEAD *ahead);
|
|---|
| 40 | extern int gbm_read_ahead(AHEAD *ahead);
|
|---|
| 41 |
|
|---|
| 42 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.