Home
last modified time | relevance | path

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

/third_party/ltp/pan/
Dzoolib.c301 struct flock zlock; in zoo_lock() local
308 zlock.l_whence = zlock.l_start = zlock.l_len = 0; in zoo_lock()
309 zlock.l_type = F_WRLCK; in zoo_lock()
320 ret = fcntl(fileno(fp), F_SETLKW, &zlock); in zoo_lock()
337 struct flock zlock; in zoo_unlock() local
344 zlock.l_whence = zlock.l_start = zlock.l_len = 0; in zoo_unlock()
345 zlock.l_type = F_UNLCK; in zoo_unlock()
356 ret = fcntl(fileno(fp), F_SETLKW, &zlock); in zoo_unlock()