Searched refs:pid_str (Results 1 - 2 of 2) sorted by relevance

/xsrc/external/mit/xorg-server/dist/os/
H A Dutils.c268 char tmp[PATH_MAX], pid_str[12]; local in function:LockServer
316 snprintf(pid_str, sizeof(pid_str), "%10lu\n", (unsigned long) getpid());
317 if (write(lfd, pid_str, 11) != 11)
345 pid_str[0] = '\0';
346 if (read(lfd, pid_str, 11) != 11) {
354 pid_str[11] = '\0';
355 sscanf(pid_str, "%d", &l_pid);
/xsrc/external/mit/xorg-server.old/dist/os/
H A Dutils.c258 char tmp[PATH_MAX], pid_str[12]; local in function:LockServer
307 (void) sprintf(pid_str, "%10ld\n", (long)getpid());
308 (void) write(lfd, pid_str, 11);
335 pid_str[0] = '\0';
336 if (read(lfd, pid_str, 11) != 11) {
344 pid_str[11] = '\0';
345 sscanf(pid_str, "%d", &l_pid);

Completed in 5 milliseconds