/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | override_decoration.cc | 26 OverrideDecoration::OverrideDecoration(ProgramID pid, const Source& src) in OverrideDecoration() argument 27 : Base(pid, src), has_value(false), value(0) {} in OverrideDecoration() 29 OverrideDecoration::OverrideDecoration(ProgramID pid, in OverrideDecoration() argument 32 : Base(pid, src), has_value(true), value(val) {} in OverrideDecoration()
|
H A D | return_statement.cc | 24 ReturnStatement::ReturnStatement(ProgramID pid, const Source& src) in ReturnStatement() argument 25 : Base(pid, src), value(nullptr) {} in ReturnStatement() 27 ReturnStatement::ReturnStatement(ProgramID pid, in ReturnStatement() argument 30 : Base(pid, src), value(val) { in ReturnStatement()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | kill.rs | 6 /// `kill(pid, sig)`—Sends a signal to a process. 16 pub fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process() 17 backend::process::syscalls::kill_process(pid, sig) in kill_process() 20 /// `kill(-pid, sig)`—Sends a signal to all processes in a process group. 22 /// If `pid` is 1, this sends a signal to all processes the current process 34 pub fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> { in kill_process_group() 35 backend::process::syscalls::kill_process_group(pid, sig) in kill_process_group()
|
/vendor/ohemu/common/ |
H A D | qemu_mini_test_monitor.sh | 30 pid=`ps -ef | grep $qemu_name | grep -v grep | awk '{print $2}' | head -n 1` 31 if [ "$pid" == "" ]; then 34 echo "kill pid $pid" 35 kill -15 $pid
|
/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
H A D | getrusage03.c | 95 pid_t pid = SAFE_FORK(); in zombie() local 97 if (!pid) in zombie() 101 TST_PROCESS_STATE_WAIT(pid, 'Z', 0); in zombie() 124 pid_t pid = SAFE_FORK(); in sig_ign() local 126 if (!pid) in sig_ign() 130 TST_PROCESS_EXIT_WAIT(pid, 0); in sig_ign()
|
/third_party/ltp/testcases/kernel/syscalls/ipc/semop/ |
H A D | semop03.c | 94 pid_t pid; in run() local 99 pid = SAFE_FORK(); in run() 101 if (pid == 0) { in run() 104 TST_PROCESS_STATE_WAIT(pid, 'S', 0); in run() 116 SAFE_KILL(pid, SIGHUP); in run() 119 waitpid(pid, NULL, 0); in run()
|
/third_party/ltp/testcases/kernel/syscalls/times/ |
H A D | times03.c | 80 int pid; in verify_times() local 138 pid = SAFE_FORK(); in verify_times() 140 if (!pid) { in verify_times() 146 SAFE_WAITPID(pid, NULL, 0); in verify_times() 185 int pid = SAFE_FORK(); in do_test() local 187 if (!pid) in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/kill/ |
H A D | kill07.c | 89 pid_t pid; in main() local 127 pid = FORK_OR_VFORK(); in main() 128 if (pid < 0) { in main() 130 } else if (pid == 0) { in main() 143 TEST(kill(pid, TEST_SIG)); in main() 144 waitpid(pid, &status, 0); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_open/ |
H A D | 2-1.c | 50 int pid, ret; in main() local 54 pid = fork(); in main() 55 if (pid == 0) { in main() 114 kill(pid, SIGABRT); in main() 124 kill(pid, SIGABRT); in main() 129 kill(pid, SIGUSR1); in main()
|
H A D | 7-2.c | 47 int pid; in main() local 51 pid = fork(); in main() 52 if (pid == 0) { in main() 120 kill(pid, SIGABRT); in main() 133 kill(pid, SIGABRT); in main() 141 kill(pid, SIGUSR1); in main()
|
/third_party/toybox/porting/liteos_a/toys/posix/ |
H A D | kill.c | 21 usage: kill [-l [SIGNAL] | SIGNAL | -SIGNAL] pid... 61 pid_t pid; in kill_main() local 93 int pid, sid; in kill_main() local 106 sid = getsid(pid = getpid()); in kill_main() 117 if (pid == procpid || sid == procsid || procpid == 1) continue; in kill_main() 144 pid = strtol(arg, &tmp, 10); in kill_main() 145 if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg); in kill_main()
|
/third_party/toybox/toys/other/ |
H A D | pmap.c | 30 pid_t pid = atolx(*optargs); in pmap_main() local 39 snprintf(toybuf, sizeof(toybuf), "/proc/%u/cmdline", pid); in pmap_main() 41 if (!line) error_msg("No %lu", (long)pid); in pmap_main() 42 xprintf("%u: %s\n", (int)pid, line); in pmap_main() 47 sprintf(toybuf, "/proc/%u/%smaps", pid, in pmap_main() 50 error_msg("No %ld\n", (long)pid); in pmap_main()
|
/third_party/toybox/toys/posix/ |
H A D | kill.c | 62 pid_t pid; in kill_main() local 96 int pid, sid; in kill_main() local 109 sid = getsid(pid = getpid()); in kill_main() 123 if (pid == procpid || sid == procsid || procpid == 1) continue; in kill_main() 148 pid = strtol(arg, &tmp, 10); in kill_main() 149 if (*tmp || kill(pid, signum) < 0) error_msg("unknown pid '%s'", arg); in kill_main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/examples/ |
H A D | p2p-action-udhcp.sh | 26 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid 31 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid 32 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid 33 udhcpc -i $GIFNAME -p /var/run/udhcpc-$GIFNAME.pid \ 41 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid 45 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/examples/ |
H A D | p2p-action-udhcp.sh | 26 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid 31 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid 32 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid 33 udhcpc -i $GIFNAME -p /var/run/udhcpc-$GIFNAME.pid \ 41 kill_daemon udhcpd /var/run/udhcpd-$GIFNAME.pid 45 kill_daemon udhcpc /var/run/udhcpc-$GIFNAME.pid
|
/third_party/ltp/lib/ |
H A D | tst_safe_macros.c | 42 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid) in safe_setpgid() argument 46 rval = setpgid(pid, pgid); in safe_setpgid() 50 "setpgid(%i, %i) failed", pid, pgid); in safe_setpgid() 53 "Invalid setpgid(%i, %i) return value %d", pid, pgid, in safe_setpgid() 60 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid) in safe_getpgid() argument 64 pgid = getpgid(pid); in safe_getpgid() 68 pid); in safe_getpgid() 71 "Invalid getpgid(%i) return value %d", pid, pgid); in safe_getpgid() 130 int safe_pidfd_open(const char *file, const int lineno, pid_t pid, in safe_pidfd_open() argument 135 rval = pidfd_open(pid, flag in safe_pidfd_open() 479 tst_safe_ptrace(const char *file, const int lineno, int req, pid_t pid, void *addr, void *data) tst_safe_ptrace() argument [all...] |
/third_party/ntfs-3g/libfuse-lite/ |
H A D | mount.c | 179 int pid = fork(); in mount_version() local 180 if (!pid) { in mount_version() 184 } else if (pid != -1) in mount_version() 185 waitpid(pid, NULL, 0); in mount_version() 367 int pid; in fuse_kern_unmount() local 401 pid = fork(); in fuse_kern_unmount() 402 if(pid == -1) in fuse_kern_unmount() 405 if(pid == 0) { in fuse_kern_unmount() 412 waitpid(pid, NULL, 0); in fuse_kern_unmount() 421 int fds[2], pid; in fuse_mount_fusermount() local [all...] |
/third_party/libuv/test/ |
H A D | test-pipe-close-stdout-read-stdin.c | 57 int pid; in TEST_IMPL() local 67 pid = -1; in TEST_IMPL() 69 pid = fork(); in TEST_IMPL() 72 if (pid == 0) { in TEST_IMPL() 110 waitpid(pid, &status, 0); in TEST_IMPL()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
H A D | cgroup_core02.c | 55 pid_t pid; in test_lesser_ns_open() local 66 pid = ltp_clone(CLONE_NEWCGROUP | CLONE_FILES | CLONE_VM | SIGCHLD, in test_lesser_ns_open() 68 if (pid < 0) { in test_lesser_ns_open() 69 tst_res(TFAIL, "unexpected negative pid %d", pid); in test_lesser_ns_open() 73 SAFE_WAITPID(pid, &status, 0); in test_lesser_ns_open()
|
/third_party/musl/libc-test/src/regression/ |
H A D | pthread_exit-dtor.c | 43 int r, arg=0, pid; in main() local 48 pid = fork(); in main() 49 switch (pid) { in main() 57 if (waitpid(pid, &r, 0) != pid) { in main()
|
/third_party/libinput/test/ |
H A D | test_quirks_files.py | 64 pid = section.get("MatchProduct") 65 if pid is not None: 67 "0x[0-9A-F]{4}", pid 68 ), f"{quirksfile}: {name}: {pid} must be uppercase hex (0xAB12)" 80 pid = int(section.get("MatchProduct", "0x0"), 16) 82 pid not in logitech_receivers
|
/third_party/ltp/testcases/kernel/ipc/semaphore/ |
H A D | sem01.c | 109 pid_t pid; in main() local 137 if ((pid = fork()) < 0) { in main() 141 if (pid) { in main() 143 srand(pid); in main() 145 waitpid(pid, &chstat, 0); in main()
|
/third_party/ltp/testcases/lib/ |
H A D | tst_ns_ifmove.c | 58 int intf_index, pid, rtnetlink_socket; in main() local 66 pid = atoi(argv[2]); in main() 81 RTA_LENGTH(sizeof(pid)); in main() 82 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); in main() local
|
/third_party/ltp/testcases/kernel/syscalls/pipe2/ |
H A D | pipe2_04.c | 25 pid_t pid; in test_pipe2() local 43 pid = SAFE_FORK(); in test_pipe2() 44 if (!pid) { in test_pipe2() 49 if (TST_PROCESS_STATE_WAIT(pid, 'S', 1000) < 0) in test_pipe2() 54 SAFE_KILL(pid, SIGKILL); in test_pipe2()
|
/third_party/ltp/testcases/kernel/syscalls/setpriority/ |
H A D | setpriority01.c | 22 static int pid, uid, user_added; variable 28 {PRIO_PROCESS, &pid}, 29 {PRIO_PGRP, &pid}, 89 pid = SAFE_FORK(); in verify_setpriority() 90 if (pid == 0) { in verify_setpriority()
|