19#include "hitls_build.h"
20#ifdef HITLS_BSL_SAL_FILE
29bool SAL_FileError(bsl_sal_file_handle stream);
31char *SAL_FGets(bsl_sal_file_handle stream,
char *buf, int32_t readLen);
33bool SAL_FPuts(bsl_sal_file_handle stream,
const char *buf);
35bool SAL_Flush(bsl_sal_file_handle stream);
37int32_t SAL_Feof(bsl_sal_file_handle stream);
39int32_t SAL_FSetAttr(bsl_sal_file_handle stream,
int cmd,
const void *arg);
41int32_t SAL_FGetAttr(bsl_sal_file_handle stream,
void *arg);
43int32_t SAL_FileTell(bsl_sal_file_handle stream,
long *pos);
45int32_t SAL_FileSeek(bsl_sal_file_handle stream,
long offset, int32_t origin);
59int32_t BSL_SAL_ReadFile(
const char *path, uint8_t **buff, uint32_t *len);
73int32_t BSL_SAL_WriteFile(
const char *path,
const uint8_t *buff, uint32_t len);