mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-09 20:41:14 +00:00
vfs and newlib: small fixes
- spaces->tabs in tasks.c - update vfs_uart.c to use per-UART locks - add license to vfs_uart.c - allocate separate streams for stdout, stdin, stderr, so that they can be independently reassigned - fix build system test failure - use posix off_t instead of newlib internal _off_t
This commit is contained in:
@@ -71,8 +71,8 @@ typedef struct
|
||||
size_t (*write)(int fd, const void * data, size_t size);
|
||||
};
|
||||
union {
|
||||
_off_t (*lseek_p)(void* p, int fd, _off_t size, int mode);
|
||||
_off_t (*lseek)(int fd, _off_t size, int mode);
|
||||
off_t (*lseek_p)(void* p, int fd, off_t size, int mode);
|
||||
off_t (*lseek)(int fd, off_t size, int mode);
|
||||
};
|
||||
union {
|
||||
ssize_t (*read_p)(void* ctx, int fd, void * dst, size_t size);
|
||||
@@ -137,7 +137,7 @@ esp_err_t esp_vfs_register(const char* base_path, const esp_vfs_t* vfs, void* ct
|
||||
*/
|
||||
|
||||
ssize_t esp_vfs_write(struct _reent *r, int fd, const void * data, size_t size);
|
||||
_off_t esp_vfs_lseek(struct _reent *r, int fd, _off_t size, int mode);
|
||||
off_t esp_vfs_lseek(struct _reent *r, int fd, off_t size, int mode);
|
||||
ssize_t esp_vfs_read(struct _reent *r, int fd, void * dst, size_t size);
|
||||
int esp_vfs_open(struct _reent *r, const char * path, int flags, int mode);
|
||||
int esp_vfs_close(struct _reent *r, int fd);
|
||||
|
Reference in New Issue
Block a user