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

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Larmour <jifl@eCosCentric.com>2002-04-30 01:49:56 +0400
committerJonathan Larmour <jifl@eCosCentric.com>2002-04-30 01:49:56 +0400
commit822afa537ae4e03136d6262269ee460912ddabb1 (patch)
tree40167c460b17f2b082f51c6c687a0fbd24dd2b78 /newlib/libc/stdlib
parent29798f0d57549a89d7ec6c8717fda26347e6bbf7 (diff)
* libc/sys/arm/syscalls.c (_rename): New function. Just a stub.
(_system): New function. Ditto. * libc/stdlib/system.c (_system_r): Call _system if HAVE_SYSTEM. * configure.host: define HAVE_SYSTEM and HAVE_RENAME for xscale targets.
Diffstat (limited to 'newlib/libc/stdlib')
-rw-r--r--newlib/libc/stdlib/system.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c
index 73c0540d9..ad2217743 100644
--- a/newlib/libc/stdlib/system.c
+++ b/newlib/libc/stdlib/system.c
@@ -69,7 +69,10 @@ _system_r (ptr, s)
struct _reent *ptr;
_CONST char *s;
{
-#ifdef NO_EXEC
+#if defined(HAVE_SYSTEM)
+ return _system (s);
+ ptr = ptr;
+#elif defined(NO_EXEC)
if (s == NULL)
return 0;
errno = ENOSYS;