Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/bfin/getpid.c
2023-03-06 14:48:14 +01:00

18 lines
245 B
C

/* Basic getpid tests.
# mach: bfin
# cc: -msim
*/
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
pid_t pid = getpid();
if (pid < 0) {
perror("getpid failed");
return 1;
}
puts("pass");
return 0;
}