Implement VFS support for access()

Closes https://github.com/espressif/esp-idf/issues/1085
This commit is contained in:
Roland Dobai
2018-05-04 11:44:38 +02:00
parent adc3315677
commit 4345e198ce
5 changed files with 202 additions and 2 deletions

View File

@@ -18,6 +18,9 @@
#include <stdint.h>
#include <stddef.h>
#include <stdarg.h>
#include <unistd.h>
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
#include "esp_err.h"
#include <sys/types.h>
#include <sys/reent.h>
@@ -160,6 +163,10 @@ typedef struct
int (*fsync_p)(void* ctx, int fd);
int (*fsync)(int fd);
};
union {
int (*access_p)(void* ctx, const char *path, int amode);
int (*access)(const char *path, int amode);
};
} esp_vfs_t;