Subversion Repositories Kolibri OS

Rev

Rev 300 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 300 Rev 324
Line 13... Line 13...
13
typedef unsigned int fpos_t;
13
typedef unsigned int fpos_t;
Line 14... Line 14...
14
typedef unsigned int size_t;
14
typedef unsigned int size_t;
15
 
15
 
Line 16... Line 16...
16
#define NULL (void*)0
16
#//define NULL (void*)0
Line 17... Line 17...
17
 
17
 
-
 
18
#define SEEK_SET 0
-
 
19
#define SEEK_CUR 1
Line 18... Line 20...
18
typedef enum SEEKPOS {SEEK_SET=0,SEEK_CUR,SEEK_END};
20
#define SEEK_END 2
19
 
21
 
20
#define FILE_OPEN_READ    0x01
22
#define FILE_OPEN_READ    0x01
21
#define FILE_OPEN_WRITE   0x02
23
#define FILE_OPEN_WRITE   0x02
Line 109... Line 111...
109
 
111
 
110
#define abs(i) (((i)<0)?(-(i)):(i))
112
#define abs(i) (((i)<0)?(-(i)):(i))
Line 111... Line 113...
111
 
113
 
Line -... Line 114...
-
 
114
#if 0
112
extern int atoib(char *s,int b);
115
extern int atoib(char *s,int b);
113
extern int atoi(char *s);
116
extern int atoi(char *s);
114
extern char tolower(char c);
117
extern char tolower(char c);
115
extern char toupper(char c);
118
extern char toupper(char c);
116
extern void itoab(int n,char* s,int  b);
119
extern void itoab(int n,char* s,int  b);
Line 137... Line 140...
137
#define isascii(char)   ( (unsigned)char < 0x80 )
140
#define isascii(char)   ( (unsigned)char < 0x80 )
138
 
141
 
139
extern void* memchr(const void*,int,int);
142
extern void* memchr(const void*,int,int);
Line 140... Line 143...
140
extern int memcmp(const void*,const void*,int);
143
extern extern void* memchr(const void*,int,int);
-
 
144
extern int memcmp(const void*,const void*,int);
141
extern void* memcpy(void*,const void*,int);
145
extern void* memcpy(void*,const void*,size_t);
142
extern void* memmove(void*,const void*,int);
146
void kmemset (void *dst, int val, size_t count);
-
 
147
 
-
 
148
extern void* memmove(void*,const void*,int);
143
extern void* memset(void*,int,int);
149
extern void* memset(void*,int,int);
144
 
150
int memcmp(const void*,const void*,int);
-
 
151
extern void* memcpy(void*,const void*,size_t);
-
 
152
void kmemset (void *dst, int val, size_t count);
-
 
153
 
-
 
154
extern void* memmove(void*,const void*,int);
-
 
155
extern void* memset(void*,int,int);
-
 
156
 
-
 
157
#endif
-
 
158
 
-
 
159
void debug_out_str(char* str);
-
 
160
 
-
 
161
void* _cdecl dlmalloc(size_t size);
-
 
162
void* _cdecl dlrealloc(void* oldmem, size_t bytes);
-
 
163
void  _cdecl dlfree(void *mem);
-
 
164
 
Line 145... Line 165...
145
extern void *malloc(size_t size);
165
//double pow_test(x,y);
146
extern void* realloc(void* oldmem, size_t bytes);
-
 
147
extern void free(void *mem);
-
 
Line 148... Line 166...
148
 
166
 
149
 
167
 
150
#ifdef __cplusplus
168
#ifdef __cplusplus
151
extern "C"
169
extern "C"
Line 152... Line 170...
152
}
170
}
153
#endif
171
#endif
-
 
172
 
-
 
173
#endif  //kolibc_h