1/* Basic getpid tests. 2# mach: bfin 3# cc: -msim 4*/ 5 6#include <stdio.h> 7#include <unistd.h> 8 9int main(int argc, char *argv[]) 10{ 11 pid_t pid = getpid(); 12 if (pid < 0) { 13 perror("getpid failed"); 14 return 1; 15 } 16 puts("pass"); 17 return 0; 18} 19