uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
open.c
Go to the documentation of this file.
1
#include "
stdio.h
"
2
#include "
reent.h
"
3
#include "
errno.h
"
4
#include <
fio.h
>
5
#include <
filesystem.h
>
6
7
int
open
(
const
char
* path,
int
flags) {
8
int
r;
9
10
r =
fs_open
(path, flags, 0755);
11
12
if
(r >= 0)
13
return
r;
14
15
set_errno(
EACCES
);
16
return
-1;
17
}
libc
src
open.c
Generated on Fri Nov 15 2013 05:00:19 for uc-sdk by
1.8.4