Lines Matching refs:pid
34 #define SIZEOFPID 10 /* maximum number of digits in a pid */
84 static char pid[SIZEOFPID+2] = { '\0' }; /* +2 for '\n' and NULL */
87 if (pid[0] == '\0') {
88 (void) snprintf(pid, sizeof (pid), "%*d\n", SIZEOFPID,
93 if (onelock(pid, tempfile, file) == -1) {
99 if (onelock(pid, tempfile, file)) {
111 * - use kill(pid, 0) - (this only works on ATTSV and some hacked
199 onelock(char *pid, char *tempfile, char *name)
224 if (write(fd, pid, SIZEOFPID+1) != (SIZEOFPID+1)) {