OSDN Git Service

* libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
authorcorinna <corinna>
Fri, 8 Oct 2010 15:28:48 +0000 (15:28 +0000)
committercorinna <corinna>
Fri, 8 Oct 2010 15:28:48 +0000 (15:28 +0000)
newlib/ChangeLog
newlib/libc/include/sys/unistd.h

index 50807e6..3e56e1a 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
 
+       * libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
+
+2010-10-08  Ralf Corsépius  <ralf.corsepius@rtems.org>
+
        * libm/common/sf_llrint.c, libm/common/sf_round.c: Add explicit casts
        to __uint32_t to avoid overflows on implicit casts.
 
index d6d9b41..f5c97f8 100644 (file)
@@ -94,7 +94,7 @@ pid_t   _EXFUN(getpgid, (pid_t));
 pid_t   _EXFUN(getpgrp, (void ));
 pid_t   _EXFUN(getpid, (void ));
 pid_t   _EXFUN(getppid, (void ));
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__rtems__)
 pid_t   _EXFUN(getsid, (pid_t));
 #endif
 #if !defined(__INSIDE_CYGWIN__)
@@ -146,7 +146,7 @@ int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const
 #endif
 void *  _EXFUN(sbrk,  (ptrdiff_t __incr));
 #if !defined(__INSIDE_CYGWIN__)
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__rtems__)
 int     _EXFUN(setegid, (gid_t __gid ));
 int     _EXFUN(seteuid, (uid_t __uid ));
 #endif