binutils-gdb/sim/testsuite/bfin/getpid.c
Mike Frysinger 7da5cf78fb sim: syscall: add getpid support
Hoist the Blackfin implementation up to the common one.
2021-04-18 21:22:31 -04:00

19 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;
}