change log for rtems (2010-08-03)
rtems-vc at rtems.org
rtems-vc at rtems.org
Tue Aug 3 16:10:27 UTC 2010
*joel*:
2010-08-03 Joel Sherrill <joel.sherrill at oarcorp.com>
PR 1649/cpukit
* libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get
and set gid and egid routines are present and in their own files.
* libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
M 1.2547 cpukit/ChangeLog
M 1.130 cpukit/libcsupport/Makefile.am
M 1.3 cpukit/libcsupport/src/getgid.c
A 1.1 cpukit/libcsupport/src/setegid.c
A 1.1 cpukit/libcsupport/src/setgid.c
diff -u rtems/cpukit/ChangeLog:1.2546 rtems/cpukit/ChangeLog:1.2547
--- rtems/cpukit/ChangeLog:1.2546 Tue Aug 3 10:44:05 2010
+++ rtems/cpukit/ChangeLog Tue Aug 3 10:46:51 2010
@@ -1,3 +1,10 @@
+2010-08-03 Joel Sherrill <joel.sherrill at oarcorp.com>
+
+ PR 1649/cpukit
+ * libcsupport/Makefile.am, libcsupport/src/getgid.c: Make sure all get
+ and set gid and egid routines are present and in their own files.
+ * libcsupport/src/setegid.c, libcsupport/src/setgid.c: New files.
+
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Apply RTEMS_CHECK_FUNC for set/get*id family of
diff -u rtems/cpukit/libcsupport/Makefile.am:1.129 rtems/cpukit/libcsupport/Makefile.am:1.130
--- rtems/cpukit/libcsupport/Makefile.am:1.129 Mon Aug 2 13:10:10 2010
+++ rtems/cpukit/libcsupport/Makefile.am Tue Aug 3 10:46:51 2010
@@ -85,7 +85,8 @@
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/setuid.c src/seteuid.c src/setpgid.c src/setsid.c
+ src/seteuid.c src/setgid.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/getgid.c:1.2 rtems/cpukit/libcsupport/src/getgid.c:1.3
--- rtems/cpukit/libcsupport/src/getgid.c:1.2 Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/src/getgid.c Tue Aug 3 10:46:52 2010
@@ -6,42 +6,13 @@
#include "config.h"
#endif
-#include <limits.h>
-#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
- *
-gid_t _POSIX_types_Gid = 0;
-*/
-
-/*PAGE
- *
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
-
gid_t getgid( void )
{
return _POSIX_types_Gid;
}
-
-/*PAGE
- *
- * 4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
- */
-
-int setgid(
- gid_t gid
-)
-{
- _POSIX_types_Gid = gid;
- return 0;
-}
diff -u /dev/null rtems/cpukit/libcsupport/src/setegid.c:1.1
--- /dev/null Tue Aug 3 11:10:25 2010
+++ rtems/cpukit/libcsupport/src/setegid.c Tue Aug 3 10:46:52 2010
@@ -0,0 +1,28 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <limits.h>
+#include <string.h>
+#include <sys/types.h>
+
+#include <rtems/system.h>
+#include <rtems/score/object.h>
+#include <rtems/seterr.h>
+#include <rtems/userenv.h>
+
+/*
+ * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
+ * P1003.1b-1993, p. 84
+ */
+int setegid(
+ gid_t gid
+)
+{
+ _POSIX_types_Egid = gid;
+ return 0;
+}
diff -u /dev/null rtems/cpukit/libcsupport/src/setgid.c:1.1
--- /dev/null Tue Aug 3 11:10:26 2010
+++ rtems/cpukit/libcsupport/src/setgid.c Tue Aug 3 10:46:52 2010
@@ -0,0 +1,21 @@
+/*
+ * $Id$
+ */
+
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <rtems/userenv.h>
+
+/*
+ *
+ * 4.2.2 Set User and Group IDs, P1003.1b-1993, p. 84
+ */
+int setgid(
+ gid_t gid
+)
+{
+ _POSIX_types_Gid = gid;
+ return 0;
+}
*ralf*:
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
* aclocal/check-func.m4: New.
M 1.2545 cpukit/ChangeLog
A 1.1 cpukit/aclocal/check-func.m4
diff -u rtems/cpukit/ChangeLog:1.2544 rtems/cpukit/ChangeLog:1.2545
--- rtems/cpukit/ChangeLog:1.2544 Tue Aug 3 00:29:11 2010
+++ rtems/cpukit/ChangeLog Tue Aug 3 10:42:43 2010
@@ -1,5 +1,9 @@
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * aclocal/check-func.m4: New.
+
+2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
+
* configure.ac: Add checks for [get|set][e][uid,gid] family of
functions.
diff -u /dev/null rtems/cpukit/aclocal/check-func.m4:1.1
--- /dev/null Tue Aug 3 11:10:26 2010
+++ rtems/cpukit/aclocal/check-func.m4 Tue Aug 3 10:42:44 2010
@@ -0,0 +1,24 @@
+# $Id$
+
+# Check whether FUNCTION is declared in INCLUDES
+# and whether rtems_stub_FUNCTION or FUNCTION is supplied.
+
+# RTEMS_CHECK_FUNC(FUNCTION[,INCLUDES])
+AC_DEFUN([RTEMS_CHECK_FUNC],
+[AC_REQUIRE([RTEMS_CHECK_NEWLIB])
+AC_CHECK_DECLS([$1],
+[
+ AC_CACHE_CHECK([for $1],[ac_cv_$1],[
+ AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[$2]],[[rtems_stub_$1()]])],
+ [ac_cv_$1="stub"],
+ [AC_LINK_IFELSE(
+ [AC_LANG_PROGRAM([[$2]],[[$1()]])],
+ [ac_cv_$1="yes"],
+ [ac_cv_$1="no"])
+ ])
+ ])
+ ])
+AS_IF([test "$ac_cv_$1" = yes],
+ [AC_DEFINE_UNQUOTED(AS_TR_CPP([HAVE_]$1),[1],[Define to 1 if you have the `$1' function.])])
+])
*ralf*:
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
* configure.ac: Apply RTEMS_CHECK_FUNC for set/get*id family of
functions. Extend set/get*id family of checks.
M 1.2546 cpukit/ChangeLog
M 1.191 cpukit/configure.ac
diff -u rtems/cpukit/ChangeLog:1.2545 rtems/cpukit/ChangeLog:1.2546
--- rtems/cpukit/ChangeLog:1.2545 Tue Aug 3 10:42:43 2010
+++ rtems/cpukit/ChangeLog Tue Aug 3 10:44:05 2010
@@ -1,5 +1,7 @@
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
+ * configure.ac: Apply RTEMS_CHECK_FUNC for set/get*id family of
+ functions. Extend set/get*id family of checks.
* aclocal/check-func.m4: New.
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
diff -u rtems/cpukit/configure.ac:1.190 rtems/cpukit/configure.ac:1.191
--- rtems/cpukit/configure.ac:1.190 Tue Aug 3 00:29:16 2010
+++ rtems/cpukit/configure.ac Tue Aug 3 10:44:05 2010
@@ -61,15 +61,22 @@
AC_CHECK_DECLS([funlockfile],[AC_CHECK_FUNCS([funlockfile])],,[#include <stdio.h>])
AC_CHECK_DECLS([ftrylockfile],[AC_CHECK_FUNCS([ftrylockfile])],,[#include <stdio.h>])
-# Mandated by POSIX, decls not present in some versions of newlib
-AC_CHECK_DECLS([seteuid],[AC_CHECK_FUNCS([seteuid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([setegid],[AC_CHECK_FUNCS([setegid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([setuid],[AC_CHECK_FUNCS([setuid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([setgid],[AC_CHECK_FUNCS([setgid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([geteuid],[AC_CHECK_FUNCS([geteuid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([getegid],[AC_CHECK_FUNCS([getegid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([getuid],[AC_CHECK_FUNCS([getuid])],,[#include <unistd.h>])
-AC_CHECK_DECLS([getgid],[AC_CHECK_FUNCS([getgid])],,[#include <unistd.h>])
+# Mandated by POSIX, decls not present in some versions of newlib,
+# some versions stubbed in newlib's rtems crt0
+RTEMS_CHECK_FUNC([seteuid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([geteuid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setegid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getegid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setuid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getuid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setgid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getgid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setsid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getsid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setpgid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getpgid],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([setpgrp],[#include <unistd.h>])
+RTEMS_CHECK_FUNC([getpgrp],[#include <unistd.h>])
# Newlib's unix/ directory
AC_CHECK_FUNCS([ttyname getcwd])
*ralf*:
Remove redundant includes.
M 1.5 cpukit/libcsupport/src/getegid.c
M 1.3 cpukit/libcsupport/src/geteuid.c
M 1.5 cpukit/libcsupport/src/getpid.c
M 1.3 cpukit/libcsupport/src/getppid.c
M 1.4 cpukit/libcsupport/src/getuid.c
M 1.2 cpukit/libcsupport/src/setegid.c
M 1.2 cpukit/libcsupport/src/seteuid.c
M 1.3 cpukit/libcsupport/src/setsid.c
M 1.2 cpukit/libcsupport/src/setuid.c
diff -u rtems/cpukit/libcsupport/src/getegid.c:1.4 rtems/cpukit/libcsupport/src/getegid.c:1.5
--- rtems/cpukit/libcsupport/src/getegid.c:1.4 Thu Jul 1 10:37:48 2010
+++ rtems/cpukit/libcsupport/src/getegid.c Tue Aug 3 10:56:25 2010
@@ -6,9 +6,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
diff -u rtems/cpukit/libcsupport/src/geteuid.c:1.2 rtems/cpukit/libcsupport/src/geteuid.c:1.3
--- rtems/cpukit/libcsupport/src/geteuid.c:1.2 Sun Apr 18 01:05:34 2004
+++ rtems/cpukit/libcsupport/src/geteuid.c Tue Aug 3 10:56:25 2010
@@ -6,9 +6,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
diff -u rtems/cpukit/libcsupport/src/getpid.c:1.4 rtems/cpukit/libcsupport/src/getpid.c:1.5
--- rtems/cpukit/libcsupport/src/getpid.c:1.4 Wed Sep 30 03:20:32 2009
+++ rtems/cpukit/libcsupport/src/getpid.c Tue Aug 3 10:56:25 2010
@@ -6,10 +6,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
diff -u rtems/cpukit/libcsupport/src/getppid.c:1.2 rtems/cpukit/libcsupport/src/getppid.c:1.3
--- rtems/cpukit/libcsupport/src/getppid.c:1.2 Thu Apr 15 08:24:45 2004
+++ rtems/cpukit/libcsupport/src/getppid.c Tue Aug 3 10:56:25 2010
@@ -6,10 +6,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
diff -u rtems/cpukit/libcsupport/src/getuid.c:1.3 rtems/cpukit/libcsupport/src/getuid.c:1.4
--- rtems/cpukit/libcsupport/src/getuid.c:1.3 Mon Aug 2 13:08:02 2010
+++ rtems/cpukit/libcsupport/src/getuid.c Tue Aug 3 10:56:25 2010
@@ -13,9 +13,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/userenv.h>
diff -u rtems/cpukit/libcsupport/src/setegid.c:1.1 rtems/cpukit/libcsupport/src/setegid.c:1.2
--- rtems/cpukit/libcsupport/src/setegid.c:1.1 Tue Aug 3 10:46:52 2010
+++ rtems/cpukit/libcsupport/src/setegid.c Tue Aug 3 10:56:25 2010
@@ -6,9 +6,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/system.h>
#include <rtems/score/object.h>
diff -u rtems/cpukit/libcsupport/src/seteuid.c:1.1 rtems/cpukit/libcsupport/src/seteuid.c:1.2
--- rtems/cpukit/libcsupport/src/seteuid.c:1.1 Mon Aug 2 13:08:02 2010
+++ rtems/cpukit/libcsupport/src/seteuid.c Tue Aug 3 10:56:25 2010
@@ -13,9 +13,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/userenv.h>
diff -u rtems/cpukit/libcsupport/src/setsid.c:1.2 rtems/cpukit/libcsupport/src/setsid.c:1.3
--- rtems/cpukit/libcsupport/src/setsid.c:1.2 Thu Apr 15 08:24:45 2004
+++ rtems/cpukit/libcsupport/src/setsid.c Tue Aug 3 10:56:25 2010
@@ -6,13 +6,8 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
-#include <rtems/system.h>
-#include <rtems/score/object.h>
#include <rtems/seterr.h>
/*PAGE
diff -u rtems/cpukit/libcsupport/src/setuid.c:1.1 rtems/cpukit/libcsupport/src/setuid.c:1.2
--- rtems/cpukit/libcsupport/src/setuid.c:1.1 Mon Aug 2 13:08:02 2010
+++ rtems/cpukit/libcsupport/src/setuid.c Tue Aug 3 10:56:25 2010
@@ -13,9 +13,7 @@
#include "config.h"
#endif
-#include <limits.h>
-#include <string.h>
-#include <sys/types.h>
+#include <unistd.h>
#include <rtems/userenv.h>
*ralf*:
2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
* libcsupport/src/getegid.c, libcsupport/src/geteuid.c,
libcsupport/src/getpid.c, libcsupport/src/getppid.c,
libcsupport/src/getuid.c, libcsupport/src/setegid.c,
libcsupport/src/seteuid.c, libcsupport/src/setsid.c
libcsupport/src/setuid.c: Remove redundant includes.
M 1.2548 cpukit/ChangeLog
diff -u rtems/cpukit/ChangeLog:1.2547 rtems/cpukit/ChangeLog:1.2548
--- rtems/cpukit/ChangeLog:1.2547 Tue Aug 3 10:46:51 2010
+++ rtems/cpukit/ChangeLog Tue Aug 3 10:56:36 2010
@@ -1,3 +1,11 @@
+2010-08-03 Ralf Corsépius <ralf.corsepius at rtems.org>
+
+ * libcsupport/src/getegid.c, libcsupport/src/geteuid.c,
+ libcsupport/src/getpid.c, libcsupport/src/getppid.c,
+ libcsupport/src/getuid.c, libcsupport/src/setegid.c,
+ libcsupport/src/seteuid.c, libcsupport/src/setsid.c
+ libcsupport/src/setuid.c: Remove redundant includes.
+
2010-08-03 Joel Sherrill <joel.sherrill at oarcorp.com>
PR 1649/cpukit
--
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/20100803/4e0bddf5/attachment-0001.html>
More information about the vc
mailing list