posix: unistd.h: open() doesn't belong here
Per POSIX, open() is defined in <fcntl.h>. fcntl.h in turn comes from the underlying libc, either newlib, or minimal libc. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
parent
1347bf9b48
commit
b7bb48eeac
5 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,6 @@ extern "C" {
|
|||
#include <fs/fs.h>
|
||||
|
||||
/* File related operations */
|
||||
extern int open(const char *name, int flags);
|
||||
extern int close(int file);
|
||||
extern ssize_t write(int file, const void *buffer, size_t count);
|
||||
extern ssize_t read(int file, void *buffer, size_t count);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue