source: trunk/JPGPROC/source/gbmsrc/gbmhelp.h@ 4

Last change on this file since 4 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
3gbmhelp.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
26extern BOOLEAN gbm_same(const char *s1, const char *s2, int n);
27extern const char *gbm_find_word(const char *str, const char *substr);
28extern const char *gbm_find_word_prefix(const char *str, const char *substr);
29
30extern int (*gbm_file_open )(const char *fn, int mode);
31extern int (*gbm_file_create)(const char *fn, int mode);
32extern void (*gbm_file_close )(int fd);
33extern long (*gbm_file_lseek )(int fd, long pos, int whence);
34extern int (*gbm_file_read )(int fd, void *buf, int len);
35extern int (*gbm_file_write )(int fd, const void *buf, int len);
36
37typedef void AHEAD;
38extern AHEAD *gbm_create_ahead(int fd);
39extern void gbm_destroy_ahead(AHEAD *ahead);
40extern int gbm_read_ahead(AHEAD *ahead);
41
42#endif
Note: See TracBrowser for help on using the repository browser.