forked from wolfSSL/wolfssl
@ -638,13 +638,17 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
&& !defined(WOLFSSL_NUCLEUS) && !defined(WOLFSSL_NUCLEUS_1_2)
|
&& !defined(WOLFSSL_NUCLEUS) && !defined(WOLFSSL_NUCLEUS_1_2)
|
||||||
#if defined(USE_WINDOWS_API)
|
#if defined(USE_WINDOWS_API)
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#ifndef XSTAT
|
||||||
#define XSTAT _stat
|
#define XSTAT _stat
|
||||||
|
#endif
|
||||||
#define XS_ISREG(s) (s & _S_IFREG)
|
#define XS_ISREG(s) (s & _S_IFREG)
|
||||||
#define SEPARATOR_CHAR ';'
|
#define SEPARATOR_CHAR ';'
|
||||||
|
|
||||||
#elif defined(INTIME_RTOS)
|
#elif defined(INTIME_RTOS)
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#ifndef XSTAT
|
||||||
#define XSTAT _stat64
|
#define XSTAT _stat64
|
||||||
|
#endif
|
||||||
#define XS_ISREG(s) S_ISREG(s)
|
#define XS_ISREG(s) S_ISREG(s)
|
||||||
#define SEPARATOR_CHAR ';'
|
#define SEPARATOR_CHAR ';'
|
||||||
#define XWRITE write
|
#define XWRITE write
|
||||||
@ -652,11 +656,15 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#define XCLOSE close
|
#define XCLOSE close
|
||||||
|
|
||||||
#elif defined(WOLFSSL_ZEPHYR)
|
#elif defined(WOLFSSL_ZEPHYR)
|
||||||
|
#ifndef XSTAT
|
||||||
#define XSTAT fs_stat
|
#define XSTAT fs_stat
|
||||||
|
#endif
|
||||||
#define XS_ISREG(s) (s == FS_DIR_ENTRY_FILE)
|
#define XS_ISREG(s) (s == FS_DIR_ENTRY_FILE)
|
||||||
#define SEPARATOR_CHAR ':'
|
#define SEPARATOR_CHAR ':'
|
||||||
#elif defined(WOLFSSL_TELIT_M2MB)
|
#elif defined(WOLFSSL_TELIT_M2MB)
|
||||||
|
#ifndef XSTAT
|
||||||
#define XSTAT m2mb_fs_stat
|
#define XSTAT m2mb_fs_stat
|
||||||
|
#endif
|
||||||
#define XS_ISREG(s) (s & M2MB_S_IFREG)
|
#define XS_ISREG(s) (s & M2MB_S_IFREG)
|
||||||
#define SEPARATOR_CHAR ':'
|
#define SEPARATOR_CHAR ':'
|
||||||
#else
|
#else
|
||||||
@ -666,7 +674,9 @@ WOLFSSL_ABI WOLFSSL_API int wolfCrypt_Cleanup(void);
|
|||||||
#define XWRITE write
|
#define XWRITE write
|
||||||
#define XREAD read
|
#define XREAD read
|
||||||
#define XCLOSE close
|
#define XCLOSE close
|
||||||
|
#ifndef XSTAT
|
||||||
#define XSTAT stat
|
#define XSTAT stat
|
||||||
|
#endif
|
||||||
#define XS_ISREG(s) S_ISREG(s)
|
#define XS_ISREG(s) S_ISREG(s)
|
||||||
#define SEPARATOR_CHAR ':'
|
#define SEPARATOR_CHAR ':'
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user