apio
9e0bd39964
read() and close() are in unistd.h, but open() in fnctl.h. I thought only the definitions for O_SOMETHING were in fnctl.h, but it is as it is. Don't know why, but let's not anger the Unix gods. The FILE* C API is pending as well.
17 lines
163 B
C
17 lines
163 B
C
#ifndef _FCNTL_H
|
|
#define _FCNTL_H
|
|
|
|
#define O_RDONLY 1
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
int open(const char*, int);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |