diff options
| author | Meco Man <[email protected]> | 2021-12-29 07:48:36 -0500 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2021-12-30 01:27:25 +0800 |
| commit | 85276f453578e0ea74f39cfcc609f867f919f059 (patch) | |
| tree | f286594c3ce9f954903281f305e0538dde45d02f /components/libc/compilers/armlibc | |
| parent | c8dcf7cc6805bcf5380d524d7a5c44e2ff366128 (diff) | |
[libc] 删除compiler_private.c文件
Diffstat (limited to 'components/libc/compilers/armlibc')
| -rw-r--r-- | components/libc/compilers/armlibc/syscalls.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/components/libc/compilers/armlibc/syscalls.c b/components/libc/compilers/armlibc/syscalls.c index e9318c5fc4..54d8b40bf6 100644 --- a/components/libc/compilers/armlibc/syscalls.c +++ b/components/libc/compilers/armlibc/syscalls.c @@ -70,7 +70,7 @@ FILEHANDLE _sys_open(const char *name, int openmode) return (STDERR); #ifndef DFS_USING_POSIX - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; /* error */ #else /* Correct openmode from fopen to open */ @@ -115,7 +115,7 @@ int _sys_close(FILEHANDLE fh) return close(fh); #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; #endif /* DFS_USING_POSIX */ } @@ -161,7 +161,7 @@ int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode) size = read(STDIN_FILENO, buf, len); return len - size; /* success */ #else - LOG_W("%s: %s", __func__, warning_without_devio); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_DEVIO); return 0; /* error */ #endif /* RT_USING_POSIX_DEVIO */ } @@ -182,7 +182,7 @@ int _sys_read(FILEHANDLE fh, unsigned char *buf, unsigned len, int mode) } } #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; /* error */ #endif /* DFS_USING_POSIX */ } @@ -233,7 +233,7 @@ int _sys_write(FILEHANDLE fh, const unsigned char *buf, unsigned len, int mode) return 0; /* error */ } #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; /* error */ #endif /* DFS_USING_POSIX */ } @@ -252,7 +252,7 @@ int _sys_seek(FILEHANDLE fh, long pos) /* position is relative to the start of file fh */ return lseek(fh, pos, 0); #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; /* error */ #endif /* DFS_USING_POSIX */ } @@ -308,7 +308,7 @@ long _sys_flen(FILEHANDLE fh) fstat(fh, &stat); return stat.st_size; #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; #endif /* DFS_USING_POSIX */ } @@ -326,7 +326,7 @@ int remove(const char *filename) #ifdef DFS_USING_POSIX return unlink(filename); #else - LOG_W("%s: %s", __func__, warning_without_fs); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_FS); return 0; /* error */ #endif /* DFS_USING_POSIX */ } @@ -361,7 +361,7 @@ int fgetc(FILE *f) if(read(STDIN_FILENO, &ch, 1) == 1) return ch; #endif /* RT_USING_POSIX_DEVIO */ - LOG_W("%s: %s", __func__, warning_without_devio); + LOG_W("%s: %s", __func__, _WARNING_WITHOUT_DEVIO); return 0; /* error */ } |
