Lines Matching full:locked
126 ** delay -- how long to keep file locked?
148 bool locked; local
153 locked = lockfile(fd, filename, "[owner]", LOCK_EX);
154 if (!locked)
172 locked = lockfile(fd, filename, "[owner]", LOCK_UN);
173 if (!locked)
190 ** CHKLCK -- check whether fd is locked (only for fcntl())
196 ** delay -- how long to keep file locked?
199 ** 0 if not locked
235 ** delay -- how long is file locked by owner?
252 bool locked; local
259 long locked; local
261 locked = chklck(fd);
262 if (locked > 0)
263 fprintf(stderr, "%d: %ld: file=%s status=locked pid=%ld\n",
264 (int) pid, (long) time(NULL), filename, locked);
265 else if (0 == locked)
282 locked = lockfile(fd, filename, "[client]", lt|LOCK_NB);
283 if (locked)
292 locked = lockfile(fd, filename, "[client]", lt);
293 if (!locked)
304 locked = lockfile(fd, filename, "[client]", LOCK_UN);
305 if (!locked)