diff options
| author | Bernard Xiong <[email protected]> | 2021-11-15 23:27:27 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-11-15 23:27:27 +0800 |
| commit | 0bcab2892a81960ceb394b5cde4bc78eed3326eb (patch) | |
| tree | 2f6cf7554548f407edb8a51136c76a7a7658a375 /components/libc/compilers/dlib/syscall_open.c | |
| parent | ef05ecf7c47a8265de19ce8367583de690fb1860 (diff) | |
| parent | 4fe93881b071ea664b9a5b89c073ad46b9d3e312 (diff) | |
Merge pull request #5268 from mysterywolf/SYSCALL
[libc]重新梳理read write桩函数实现
Diffstat (limited to 'components/libc/compilers/dlib/syscall_open.c')
| -rw-r--r-- | components/libc/compilers/dlib/syscall_open.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/components/libc/compilers/dlib/syscall_open.c b/components/libc/compilers/dlib/syscall_open.c index 8fb3c3a11f..3336bc8885 100644 --- a/components/libc/compilers/dlib/syscall_open.c +++ b/components/libc/compilers/dlib/syscall_open.c @@ -9,9 +9,14 @@ */ #include <rtthread.h> -#include <yfuns.h> +#include <LowLevelIOInterface.h> #include <fcntl.h> +/* + * The "__open" function opens the file named "filename" as specified + * by "mode". + */ + #pragma module_name = "?__open" int __open(const char *filename, int mode) |
