vfs: implement fcntl via VFS interface

This commit is contained in:
Ivan Grokhotkov
2017-08-16 14:58:06 +08:00
parent 141b1174c6
commit 1e4587a09f
3 changed files with 55 additions and 9 deletions

View File

@@ -17,6 +17,7 @@
#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include "esp_err.h"
#include <sys/types.h>
#include <sys/reent.h>
@@ -140,6 +141,10 @@ typedef struct
int (*rmdir_p)(void* ctx, const char* name);
int (*rmdir)(const char* name);
};
union {
int (*fcntl_p)(void* ctx, int fd, int cmd, va_list args);
int (*fcntl)(int fd, int cmd, va_list args);
};
} esp_vfs_t;