Home
last modified time | relevance | path

Searched refs:FileHandlerArray (Results 1 – 1 of 1) sorted by relevance

/device/soc/telink/b91/adapter/hals/utils/file/src/
Dhal_file.c50 static int FileHandlerArray[MAX_OPEN_FILE_NUM] = { variable
63 if (FileHandlerArray[i - 1] == SLOT_AVAILABLE) { in GetAvailableFileHandlerIndex()
154 FileHandlerArray[index - 1] = fd; in HalFileOpen()
169 ret = close(FileHandlerArray[fd - 1]); in HalFileClose()
174 FileHandlerArray[fd - 1] = SLOT_AVAILABLE; in HalFileClose()
186 return read(FileHandlerArray[fd - 1], buf, len); in HalFileRead()
196 return write(FileHandlerArray[fd - 1], buf, len); in HalFileWrite()
243 ret = fstat(FileHandlerArray[fd - 1], &f_info); in HalFileSeek()
254 ret = lseek(FileHandlerArray[fd - 1], offset, whence); in HalFileSeek()