Compare commits
No commits in common. "b42c866db881611d0cac6045d48139008d632ecf" and "f44411aa46784064651a1d0c8578e8534ce12f71" have entirely different histories.
b42c866db8
...
f44411aa46
@ -1,11 +1,8 @@
|
|||||||
#ifndef _FCNTL_H
|
#ifndef _FCNTL_H
|
||||||
#define _FCNTL_H
|
#define _FCNTL_H
|
||||||
|
|
||||||
/* Open for reading only. */
|
|
||||||
#define O_RDONLY 1
|
#define O_RDONLY 1
|
||||||
/* Open for writing only. */
|
|
||||||
#define O_WRONLY 2
|
#define O_WRONLY 2
|
||||||
/* Open for reading and writing. */
|
|
||||||
#define O_RDWR 3
|
#define O_RDWR 3
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
@ -13,8 +10,7 @@ extern "C"
|
|||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Opens the file specified by pathname. Returns a file descriptor on success, or -1 on error. */
|
int open(const char*, int);
|
||||||
int open(const char* pathname, int flags);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ extern "C"
|
|||||||
/* Does not do anything for now, since buffered IO is not implemented yet. */
|
/* Does not do anything for now, since buffered IO is not implemented yet. */
|
||||||
int fflush(FILE* stream);
|
int fflush(FILE* stream);
|
||||||
|
|
||||||
/* Opens the file specified by pathname. Returns the file handle on success, or NULL on error. */
|
/* Opens the file at pathname according to the mode string. Returns the file handle on success, or NULL on error. */
|
||||||
FILE* fopen(const char* pathname, const char* mode);
|
FILE* fopen(const char* pathname, const char* mode);
|
||||||
|
|
||||||
/* Writes formatted output according to the string format to the file stream. */
|
/* Writes formatted output according to the string format to the file stream. */
|
||||||
|
Loading…
Reference in New Issue
Block a user