change log for rtems (2010-08-02)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Aug 2 18:11:09 UTC 2010


 *joel*:
2010-07-30	Bharath Suri <bharath.s.jois at gmail.com>

	PR 1645/cpukit
	* libcsupport/src/getuid.c: Moved setuid() routine to its own
	file.
	* libcsupport/src/setuid.c: New file with setuid() routine.
	* libcsupport/src/seteuid.c: New file with seteuid() routine.

M 1.2540  cpukit/ChangeLog
M  1.129  cpukit/libcsupport/Makefile.am
M    1.3  cpukit/libcsupport/src/getuid.c
A    1.1  cpukit/libcsupport/src/seteuid.c
A    1.1  cpukit/libcsupport/src/setuid.c

diff -u rtems/cpukit/ChangeLog:1.2539 rtems/cpukit/ChangeLog:1.2540
--- rtems/cpukit/ChangeLog:1.2539	Fri Jul 30 17:36:31 2010
+++ rtems/cpukit/ChangeLog	Mon Aug  2 13:08:01 2010
@@ -1,3 +1,11 @@
+2010-07-30	Bharath Suri <bharath.s.jois at gmail.com>
+
+	PR 1645/cpukit
+	* libcsupport/src/getuid.c: Moved setuid() routine to its own
+	file.
+	* libcsupport/src/setuid.c: New file with setuid() routine.
+	* libcsupport/src/seteuid.c: New file with seteuid() routine.
+
 2010-07-30	Joel Sherrill <joel.sherrill at oarcorp.com>
 
 	* libcsupport/src/fstat.c, libcsupport/src/rmdir.c,

diff -u rtems/cpukit/libcsupport/Makefile.am:1.128 rtems/cpukit/libcsupport/Makefile.am:1.129
--- rtems/cpukit/libcsupport/Makefile.am:1.128	Sat Jul 24 11:12:49 2010
+++ rtems/cpukit/libcsupport/Makefile.am	Mon Aug  2 13:10:10 2010
@@ -85,7 +85,7 @@
 
 ID_C_FILES = src/getegid.c src/geteuid.c src/getgid.c src/getgroups.c \
     src/getlogin.c src/getpgrp.c src/getpid.c src/getppid.c src/getuid.c \
-    src/setpgid.c src/setsid.c
+    src/setuid.c src/seteuid.c src/setpgid.c src/setsid.c
 
 MALLOC_C_FILES = src/malloc_initialize.c src/calloc.c src/malloc.c \
     src/realloc.c src/_calloc_r.c src/_malloc_r.c \

diff -u rtems/cpukit/libcsupport/src/getuid.c:1.2 rtems/cpukit/libcsupport/src/getuid.c:1.3
--- rtems/cpukit/libcsupport/src/getuid.c:1.2	Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/src/getuid.c	Mon Aug  2 13:08:02 2010
@@ -1,4 +1,11 @@
 /*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
  *  $Id$
  */
 
@@ -10,38 +17,14 @@
 #include <string.h>
 #include <sys/types.h>
 
-#include <rtems/system.h>
-#include <rtems/score/object.h>
-#include <rtems/seterr.h>
-
 #include <rtems/userenv.h>
 
 /*
- * MACRO in userenv.h
- *
-uid_t _POSIX_types_Uid = 0;
-*/
-
-/*PAGE
- *
  *  4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
  *        P1003.1b-1993, p. 84
  */
-
 uid_t getuid( void )
 {
   return _POSIX_types_Uid;
 }
 
-/*PAGE
- *
- *  4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
- */
-
-int setuid(
-  uid_t  uid
-)
-{
-  _POSIX_types_Uid = uid;
-  return 0;
-}

diff -u /dev/null rtems/cpukit/libcsupport/src/seteuid.c:1.1
--- /dev/null	Mon Aug  2 13:11:08 2010
+++ rtems/cpukit/libcsupport/src/seteuid.c	Mon Aug  2 13:08:02 2010
@@ -0,0 +1,26 @@
+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <limits.h>
+#include <string.h>
+#include <sys/types.h>
+
+#include <rtems/userenv.h>
+
+int seteuid( uid_t euid )
+{
+  _POSIX_types_Euid = euid;
+  return 0;
+}

diff -u /dev/null rtems/cpukit/libcsupport/src/setuid.c:1.1
--- /dev/null	Mon Aug  2 13:11:08 2010
+++ rtems/cpukit/libcsupport/src/setuid.c	Mon Aug  2 13:08:02 2010
@@ -0,0 +1,32 @@
+/*
+ *  COPYRIGHT (c) 1989-2010.
+ *  On-Line Applications Research Corporation (OAR).
+ *
+ *  The license and distribution terms for this file may be
+ *  found in the file LICENSE in this distribution or at
+ *  http://www.rtems.com/license/LICENSE.
+ *
+ *  $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <limits.h>
+#include <string.h>
+#include <sys/types.h>
+
+#include <rtems/userenv.h>
+
+/*
+ *
+ *  4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
+ */
+int setuid(
+  uid_t  uid
+)
+{
+  _POSIX_types_Uid = uid;
+  return 0;
+}



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20100802/1a87c5fb/attachment.html>


More information about the vc mailing list