Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sys_getpid.c « riscv « libgloss - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2aa072177500220da5e40cc1d07b338ce86ecb6f (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <machine/syscall.h>

/* Get process id. This is sometimes used to generate strings unlikely
   to conflict with other processes. Minimal implementation for a
   system without processes just returns 1.  */

int
_getpid()
{
  return 1;
}