Searched defs:lock_it (Results 1 - 1 of 1) sorted by relevance

/httpd/test/
H A Dtime-sem.c73 static struct flock lock_it; variable in typeref:struct:flock
89 lock_it.l_whence = SEEK_SET; /* from current point */
90 lock_it.l_start = 0; /* -"- */
91 lock_it.l_len = 0; /* until end of file */
92 lock_it.l_type = F_WRLCK; /* set exclusive/write lock */
93 lock_it.l_pid = 0; /* pid not actually interesting */
115 while ((ret = fcntl(fcntl_fd, F_SETLKW, &lock_it)) < 0 && errno == EINTR)
119 perror ("fcntl lock_it");

Completed in 2237 milliseconds