]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/stdlib/system.c
Merged branch stdio_rewrite back into trunk.
[pdclib] / platform / example / functions / stdlib / system.c
index fb3c40685da55e10c0d832efe6d1228f3f6c99ad..2e0079a449d942178badaedf8d98a285e842d95d 100644 (file)
@@ -11,8 +11,9 @@
 /* This is an example implementation of system() fit for use with POSIX kernels.
 */
 
-#include <unistd.h>
-#include <sys/wait.h>
+extern int fork( void );
+extern int execve( const char * filename, char * const argv[], char * const envp[] );
+extern int wait( int * status );
 
 int system( const char * string )
 {
@@ -33,8 +34,6 @@ int system( const char * string )
 }
 
 #ifdef TEST
-/* TODO: Work around the following undef */
-#undef SEEK_SET
 #include <_PDCLIB_test.h>
 
 #define SHELLCOMMAND "echo 'SUCCESS testing system()'"