forked from Imagelibrary/rtems
another attempt at the rtems_posix_api ifdef
This commit is contained in:
@@ -347,22 +347,21 @@ void exit(int status)
|
|||||||
* These are directly supported (and completely correct) in the posix api.
|
* These are directly supported (and completely correct) in the posix api.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__)
|
#if !defined(RTEMS_POSIX_API)
|
||||||
|
|
||||||
pid_t __getpid(void)
|
pid_t __getpid(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
pid_t getpid(void)
|
pid_t getpid(void)
|
||||||
{
|
{
|
||||||
return __getpid();
|
return __getpid();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
int kill( pid_t pid, int sig )
|
int kill( pid_t pid, int sig )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -347,22 +347,21 @@ void exit(int status)
|
|||||||
* These are directly supported (and completely correct) in the posix api.
|
* These are directly supported (and completely correct) in the posix api.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__)
|
#if !defined(RTEMS_POSIX_API)
|
||||||
|
|
||||||
pid_t __getpid(void)
|
pid_t __getpid(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
pid_t getpid(void)
|
pid_t getpid(void)
|
||||||
{
|
{
|
||||||
return __getpid();
|
return __getpid();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
int kill( pid_t pid, int sig )
|
int kill( pid_t pid, int sig )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -347,22 +347,21 @@ void exit(int status)
|
|||||||
* These are directly supported (and completely correct) in the posix api.
|
* These are directly supported (and completely correct) in the posix api.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__)
|
#if !defined(RTEMS_POSIX_API)
|
||||||
|
|
||||||
pid_t __getpid(void)
|
pid_t __getpid(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
pid_t getpid(void)
|
pid_t getpid(void)
|
||||||
{
|
{
|
||||||
return __getpid();
|
return __getpid();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
|
#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
|
||||||
int kill( pid_t pid, int sig )
|
int kill( pid_t pid, int sig )
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user