MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / touchFile

Function touchFile

src/common/os/posix/os_utils.cpp:317–334  ·  view source on GitHub ↗

set file's last access and modification time to current time

Source from the content-addressed store, hash-verified

315
316// set file's last access and modification time to current time
317bool touchFile(const char* pathname)
318{
319#ifdef HAVE_UTIME_H
320 while (utime(pathname, NULL) < 0)
321 {
322 if (SYSCALL_INTERRUPTED(errno))
323 {
324 continue;
325 }
326 return false;
327 }
328
329 return true;
330#else
331 errno = ENOSYS;
332 return false;
333#endif
334}
335
336// check if OS has support for IPv6 protocol
337bool isIPv6supported()

Callers 1

handlerMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected