forked from espressif/esp-idf
change MAXNAMLEN to 255
This commit is contained in:
@ -24,10 +24,6 @@
|
|||||||
* for reference.
|
* for reference.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(MAXNAMLEN) && __BSD_VISIBLE
|
|
||||||
#define MAXNAMLEN 1024
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Opaque directory structure
|
* @brief Opaque directory structure
|
||||||
*/
|
*/
|
||||||
@ -46,7 +42,12 @@ struct dirent {
|
|||||||
#define DT_UNKNOWN 0
|
#define DT_UNKNOWN 0
|
||||||
#define DT_REG 1
|
#define DT_REG 1
|
||||||
#define DT_DIR 2
|
#define DT_DIR 2
|
||||||
char d_name[256]; /*!< zero-terminated file name */
|
#if __BSD_VISIBLE
|
||||||
|
#define MAXNAMLEN 255
|
||||||
|
char d_name[MAXNAMLEN+1]; /*!< zero-terminated file name */
|
||||||
|
#else
|
||||||
|
char d_name[256];
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
DIR* opendir(const char* name);
|
DIR* opendir(const char* name);
|
||||||
|
Reference in New Issue
Block a user