Lines Matching defs:pid
228 pid_t pid;
230 if ((pid = fork()) == -1)
233 if (pid == 0) { /* child */
239 while (waitpid(pid, (int *)0, 0) != pid)
247 vt_read_utx(int target_vt, pid_t *pid, char name[])
252 *pid = (pid_t)-1;
269 *pid = u->ut_pid;
687 pid_t pid;
690 vt_read_utx(target_vt, &pid, user_name);
692 if (pid == (pid_t)-1 || user_name[0] == '\0')
867 pid_t pid = (pid_t)-1;
875 vt_read_utx(target_vt, &pid, NULL);
876 if (pid == (pid_t)-1) {
914 * Xserver registers its pid into kernel to associate it with
916 * check if the pid is of the Xserver for the current active
934 * check if the pid is of the Xserver for the current active display,
975 vt_do_hotkeys(pid_t pid, uint32_t target_vt)
1000 if (pid == 0) {
1014 if (!vt_get_disp_info(pid, &logged_in, &display_num)) {
1310 vt_audit_start(adt_session_data_t **ah, pid_t pid)
1317 if ((uc = ucred_get(pid)) == NULL) {
1359 pid_t pid;
1378 vt_read_utx(source_vt, &pid, NULL);
1379 if (pid == (pid_t)-1)
1382 if (vt_audit_start(&ah, pid) != 0) {