openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_SAL_FileOpen()

int32_t BSL_SAL_FileOpen ( bsl_sal_file_handle stream,
const char *  path,
const char *  mode 
)

Open a file.

Open the file and ensure that the entered path is standardized.

Attention
None
Parameters
stream[OUT] File handle
path[IN] File path
mode[IN] Reading mode
Return values
BSL_SUCCESS,succeeded.
BSL_SAL_ERR_FILE_OPEN,failedto be opened.
BSL_NULL_INPUT,parametererror.