created. Split getpid() from types.c to allow it to be overridden by

cxe1001 of the ACVC 2.0.1.  This allows gnat/rtems to pass the partition
tests.
This commit is contained in:
Joel Sherrill
1997-03-10 16:57:08 +00:00
parent fec60e9272
commit d627c0c4f7
2 changed files with 44 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/*
* $Id$
*/
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
#include <rtems/posix/seterr.h>
/*PAGE
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}

22
cpukit/posix/src/getpid.c Normal file
View File

@@ -0,0 +1,22 @@
/*
* $Id$
*/
#include <limits.h>
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
#include <rtems/posix/seterr.h>
/*PAGE
*
* 4.1.1 Get Process and Parent Process IDs, P1003.1b-1993, p. 83
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}