chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:22:17 +08:00
commit 4d7ba00a23
95 changed files with 6907 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#include <sys/wait.h>
#include <unistd.h>
#include <errno.h>
#include <stdio.h>
int main()
{
int status;
pid_t p = getpid();
// waitpid takes a children's pid, not the current process one
// if the pid is not a children of the current process, it returns -ECHILD
pid_t res = waitpid(1001, &status, WNOHANG);
printf("res is %d, p is %d and errno is %d\n", res, p, errno);
}