Home
last modified time | relevance | path

Searched refs:fileHandle (Results 1 - 2 of 2) sorted by relevance

/commonlibrary/utils_lite/js/builtin/filekit/src/
H A Dnativeapi_fs_impl.c273 int fileHandle = -1; in WriteTextFile() local
275 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in WriteTextFile()
277 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in WriteTextFile()
280 if (fileHandle < 0) { in WriteTextFile()
283 int writeLen = write(fileHandle, buf, len); in WriteTextFile()
284 close(fileHandle); in WriteTextFile()
301 int fileHandle = -1; in WriteArrayFile() local
303 fileHandle = open(resolvePath, O_RDWR | O_CREAT | O_APPEND, S_IRUSR | S_IWUSR); in WriteArrayFile()
306 if (fileHandle < 0) { in WriteArrayFile()
310 fileHandle in WriteArrayFile()
339 int fileHandle = open(resolvePath, O_RDONLY, S_IRUSR); ReadFileImpl() local
[all...]
/commonlibrary/utils_lite/js/builtin/kvstorekit/src/
H A Dnativeapi_kv_impl.c113 int fileHandle = open(resolvePath, O_RDONLY, S_IRUSR); in GetValue() local
116 if (fileHandle < 0) { in GetValue()
119 int readLen = read(fileHandle, value, VALUE_MAX_LEN); in GetValue()
120 close(fileHandle); in GetValue()
121 fileHandle = -1; in GetValue()

Completed in 2 milliseconds