summaryrefslogtreecommitdiffstats
path: root/c/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 15:54:31 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-29 15:54:31 +0000
commitaea06ed44302c204a137067f5c8c57ce6ff1e7c4 (patch)
tree34380945a34f90be27ef63571d62be527af8ffae /c/src
parentnew file explaining issues related to this bsp. (diff)
downloadrtems-aea06ed44302c204a137067f5c8c57ce6ff1e7c4.tar.bz2
Modifications to make go32 build using new i386-go32-rtems toolset
and gcc 2.8.x -specs options.
Diffstat (limited to 'c/src')
-rw-r--r--c/src/exec/libcsupport/src/newlibc.c9
-rw-r--r--c/src/exec/libcsupport/src/no_libc.c2
-rw-r--r--c/src/lib/libc/newlibc.c9
-rw-r--r--c/src/lib/libc/no_libc.c2
4 files changed, 14 insertions, 8 deletions
diff --git a/c/src/exec/libcsupport/src/newlibc.c b/c/src/exec/libcsupport/src/newlibc.c
index bd2d7133ed..af3023fac2 100644
--- a/c/src/exec/libcsupport/src/newlibc.c
+++ b/c/src/exec/libcsupport/src/newlibc.c
@@ -349,7 +349,8 @@ int get_errno()
#include <stdio.h>
-#if !defined(RTEMS_UNIX) && !defined(__GO32__) && !defined(_AM29K)
+/* #if !defined(RTEMS_UNIX) && !defined(__GO32__) && !defined(_AM29K) */
+#if !defined(RTEMS_UNIX) && !defined(_AM29K)
void _exit(int status)
{
rtems_shutdown_executive(status);
@@ -376,14 +377,16 @@ pid_t __getpid(void)
}
#endif
-#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
+/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
+#if !defined(RTEMS_POSIX_API)
pid_t getpid(void)
{
return __getpid();
}
#endif
-#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
+/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
+#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
return 0;
diff --git a/c/src/exec/libcsupport/src/no_libc.c b/c/src/exec/libcsupport/src/no_libc.c
index 668764b44f..8a76bd6ef5 100644
--- a/c/src/exec/libcsupport/src/no_libc.c
+++ b/c/src/exec/libcsupport/src/no_libc.c
@@ -1,4 +1,3 @@
-#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
/* no_libc.h
*
@@ -18,6 +17,7 @@
#include <rtems.h>
+#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
#include "libcsupport.h"
#include "internal.h"
diff --git a/c/src/lib/libc/newlibc.c b/c/src/lib/libc/newlibc.c
index bd2d7133ed..af3023fac2 100644
--- a/c/src/lib/libc/newlibc.c
+++ b/c/src/lib/libc/newlibc.c
@@ -349,7 +349,8 @@ int get_errno()
#include <stdio.h>
-#if !defined(RTEMS_UNIX) && !defined(__GO32__) && !defined(_AM29K)
+/* #if !defined(RTEMS_UNIX) && !defined(__GO32__) && !defined(_AM29K) */
+#if !defined(RTEMS_UNIX) && !defined(_AM29K)
void _exit(int status)
{
rtems_shutdown_executive(status);
@@ -376,14 +377,16 @@ pid_t __getpid(void)
}
#endif
-#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
+/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
+#if !defined(RTEMS_POSIX_API)
pid_t getpid(void)
{
return __getpid();
}
#endif
-#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
+/* #if !defined(RTEMS_POSIX_API) || defined(__GO32__) */
+#if !defined(RTEMS_POSIX_API)
int kill( pid_t pid, int sig )
{
return 0;
diff --git a/c/src/lib/libc/no_libc.c b/c/src/lib/libc/no_libc.c
index 668764b44f..8a76bd6ef5 100644
--- a/c/src/lib/libc/no_libc.c
+++ b/c/src/lib/libc/no_libc.c
@@ -1,4 +1,3 @@
-#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
/* no_libc.h
*
@@ -18,6 +17,7 @@
#include <rtems.h>
+#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
#include "libcsupport.h"
#include "internal.h"