Home
last modified time | relevance | path

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

/CafeSDK-2.12.13/system/src/lib/libsys/
Dind_trnc.c147 char *tmpname = tmpnam(namebuff); in truncate() local
171 if ((inf = open(path, 0, 0)) == -1 || (of = creat(tmpname, __CREAT_ARG)) == -1) in truncate()
191 if (rename(tmpname, path) == 0) { in truncate()
208 if (rename(tmpname, path) == 0) { in truncate()
212 if ((inf = open(tmpname, 0, 0)) == -1 || (of = creat(path, _0777)) == -1) in truncate()
227 delete(tmpname); in truncate()
229 unlink(tmpname); in truncate()