axle OS
x86_32 UNIX-like hobby OS
src
kernel
util
ffs
replacements.h
1
#ifndef FS_H
2
#define FS_H
3
4
#ifndef EOF
5
#define EOF (-1)
6
#endif
7
8
typedef
unsigned
long
size_t;
9
typedef
int
off_t;
10
11
//#include <stdio.h>
12
#define O_RDONLY 0x0000
13
#define O_WRONLY 0x0001
14
#define O_RDWR 0x0002
15
16
#ifndef NULL
17
#define NULL (void *)0
18
#endif
19
#define printf_err(...)
20
21
//#include <string.h>
22
#ifndef _STRING_H_
23
void
* memset(
void
*,
int
,
unsigned
long
);
24
void
* memcpy(
void
*,
const
void
*,
unsigned
long
);
25
char
* strcpy(
char
*,
const
char
*);
26
unsigned
long
strlen(
const
char
*);
27
int
strcmp(
const
char
*,
const
char
*);
28
#endif
29
30
#endif
Generated by
1.8.14