Lines Matching refs:pid
108 pid_t pid; in main() local
113 pid = -1; in main()
138 pid = str2pid(optarg); in main()
153 if (pid != -1 || query) in main()
155 pid = getpid(); in main()
156 } else if (pid == -1) { in main()
159 pid = getpid(); in main()
165 error = procctl(P_PID, pid, PROC_ASLR_STATUS, &arg); in main()
168 error = procctl(P_PID, pid, PROC_TRACE_STATUS, &arg); in main()
171 error = procctl(P_PID, pid, PROC_TRAPCAP_STATUS, &arg); in main()
174 error = procctl(P_PID, pid, PROC_PROTMAX_STATUS, &arg); in main()
177 error = procctl(P_PID, pid, PROC_STACKGAP_STATUS, &arg); in main()
180 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_STATUS, in main()
184 error = procctl(P_PID, pid, PROC_WXMAP_STATUS, &arg); in main()
188 error = procctl(P_PID, pid, PROC_KPTI_STATUS, &arg); in main()
194 error = procctl(P_PID, pid, PROC_LA_STATUS, &arg); in main()
340 error = procctl(P_PID, pid, PROC_ASLR_CTL, &arg); in main()
345 error = procctl(P_PID, pid, PROC_TRACE_CTL, &arg); in main()
350 error = procctl(P_PID, pid, PROC_TRAPCAP_CTL, &arg); in main()
355 error = procctl(P_PID, pid, PROC_PROTMAX_CTL, &arg); in main()
361 error = procctl(P_PID, pid, PROC_STACKGAP_CTL, &arg); in main()
366 error = procctl(P_PID, pid, PROC_NO_NEW_PRIVS_CTL, in main()
372 error = procctl(P_PID, pid, PROC_WXMAP_CTL, &arg); in main()
378 error = procctl(P_PID, pid, PROC_KPTI_CTL, &arg); in main()
385 error = procctl(P_PID, pid, PROC_LA_CTL, &arg); in main()
390 error = procctl(P_PID, pid, PROC_LA_CTL, &arg); in main()