[uClibc-cvs] CVS update of uClibc/include (dirent.h dlfcn.h elf.h fcntl.h grp.h)
Erik Andersen
andersen at codepoet.org
Tue Sep 7 08:40:44 UTC 2004
Date: Tuesday, September 7, 2004 @ 02:40:44
Author: andersen
Path: /var/cvs/uClibc/include
Modified: dirent.h (1.8 -> 1.9) dlfcn.h (1.2 -> 1.3) elf.h (1.15 -> 1.16)
fcntl.h (1.5 -> 1.6) grp.h (1.4 -> 1.5)
First pass prototype removals from auditing header files:
a.out.h to libgen.h (omitting complex.h for a later separate
effort for the math stuff)
Index: uClibc/include/dirent.h
diff -u uClibc/include/dirent.h:1.8 uClibc/include/dirent.h:1.9
--- uClibc/include/dirent.h:1.8 Mon Dec 16 18:55:53 2002
+++ uClibc/include/dirent.h Tue Sep 7 02:40:43 2004
@@ -200,10 +200,6 @@
/* Return the file descriptor used by DIRP. */
extern int dirfd (DIR *__dirp) __THROW;
-# if defined __OPTIMIZE__ && defined _DIR_dirfd
-# define dirfd(dirp) _DIR_dirfd (dirp)
-# endif
-
# ifndef MAXNAMLEN
/* Get the definitions of the POSIX.1 limits. */
# include <bits/posix1_lim.h>
@@ -270,53 +266,6 @@
__THROW __attribute_pure__;
# endif
-# ifdef __USE_GNU
-/* Function to compare two `struct dirent's by name & version. */
-# ifndef __USE_FILE_OFFSET64
-extern int versionsort (__const void *__e1, __const void *__e2)
- __THROW __attribute_pure__;
-# else
-# ifdef __REDIRECT
-extern int __REDIRECT (versionsort,
- (__const void *__e1, __const void *__e2)
- __THROW,
- versionsort64) __attribute_pure__;
-# else
-# define versionsort versionsort64
-# endif
-# endif
-
-# ifdef __USE_LARGEFILE64
-extern int versionsort64 (__const void *__e1, __const void *__e2)
- __THROW __attribute_pure__;
-# endif
-# endif
-
-/* Read directory entries from FD into BUF, reading at most NBYTES.
- Reading starts at offset *BASEP, and *BASEP is updated with the new
- position after reading. Returns the number of bytes read; zero when at
- end of directory; or -1 for errors. */
-# ifndef __USE_FILE_OFFSET64
-extern __ssize_t getdirentries (int __fd, char *__restrict __buf,
- size_t __nbytes,
- __off_t *__restrict __basep) __THROW;
-# else
-# ifdef __REDIRECT
-extern __ssize_t __REDIRECT (getdirentries,
- (int __fd, char *__restrict __buf,
- size_t __nbytes,
- __off64_t *__restrict __basep) __THROW,
- getdirentries64);
-# else
-# define getdirentries getdirentries64
-# endif
-# endif
-
-# ifdef __USE_LARGEFILE64
-extern __ssize_t getdirentries64 (int __fd, char *__restrict __buf,
- size_t __nbytes,
- __off64_t *__restrict __basep) __THROW;
-# endif
#endif /* Use BSD or misc. */
Index: uClibc/include/dlfcn.h
diff -u uClibc/include/dlfcn.h:1.2 uClibc/include/dlfcn.h:1.3
--- uClibc/include/dlfcn.h:1.2 Wed Sep 26 23:21:08 2001
+++ uClibc/include/dlfcn.h Tue Sep 7 02:40:43 2004
@@ -21,10 +21,13 @@
#define _DLFCN_H 1
#include <features.h>
+#define __need_size_t
+#include <stddef.h>
/* Collect various system dependent definitions and declarations. */
#include <bits/dlfcn.h>
+
#ifdef __USE_GNU
/* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT
the run-time address of the symbol called NAME in the next shared
@@ -53,14 +56,6 @@
extern void *dlsym (void *__restrict __handle,
__const char *__restrict __name) __THROW;
-#ifdef __USE_GNU
-/* Find the run-time address in the shared object HANDLE refers to
- of the symbol called NAME with VERSION. */
-extern void *dlvsym (void *__restrict __handle,
- __const char *__restrict __name,
- __const char *__restrict __version) __THROW;
-#endif
-
/* When any of the above functions fails, call this function
to return a string describing the error. Each call resets
the error string so that a following call returns null. */
@@ -80,6 +75,10 @@
/* Fill in *INFO with the following information about ADDRESS.
Returns 0 iff no shared object's segments contain that address. */
extern int dladdr (const void *__address, Dl_info *__info) __THROW;
+
+/* Get information about the shared objects currently loaded */
+extern int dlinfo (void);
+
#endif
__END_DECLS
Index: uClibc/include/elf.h
diff -u uClibc/include/elf.h:1.15 uClibc/include/elf.h:1.16
--- uClibc/include/elf.h:1.15 Thu Aug 26 11:03:08 2004
+++ uClibc/include/elf.h Tue Sep 7 02:40:43 2004
@@ -604,6 +604,7 @@
#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
#define NT_PRXREG 4 /* Contains copy of prxregset struct */
+#define NT_TASKSTRUCT 4 /* Contains copy of task structure */
#define NT_PLATFORM 5 /* String from sysinfo(SI_PLATFORM) */
#define NT_AUXV 6 /* Contains copy of auxv array */
#define NT_GWINDOWS 7 /* Contains copy of gwindows struct */
@@ -967,7 +968,14 @@
/* A special ignored value for PPC, used by the kernel to control the
interpretation of the AUXV. Must be > 16. */
-#define AT_IGNOREPPC 22 /* Entry should be ignored */
+#define AT_IGNOREPPC 22 /* Entry should be ignored. */
+
+#define AT_SECURE 23 /* Boolean, was exec setuid-like? */
+
+/* Pointer to the global system page used for system calls and other
+ nice things. */
+#define AT_SYSINFO 32
+#define AT_SYSINFO_EHDR 33
/* Note section contents. Each entry in the note section begins with
@@ -1017,6 +1025,7 @@
#define ELF_NOTE_OS_LINUX 0
#define ELF_NOTE_OS_GNU 1
#define ELF_NOTE_OS_SOLARIS2 2
+#define ELF_NOTE_OS_FREEBSD 3
/* Move records. */
Index: uClibc/include/fcntl.h
diff -u uClibc/include/fcntl.h:1.5 uClibc/include/fcntl.h:1.6
--- uClibc/include/fcntl.h:1.5 Thu Jan 17 08:47:04 2002
+++ uClibc/include/fcntl.h Tue Sep 7 02:40:43 2004
@@ -132,6 +132,11 @@
# endif
#endif
+
+#if 0
+
+/* FIXME -- uClibc should probably implement these... */
+
#ifdef __USE_XOPEN2K
/* Advice the system about the expected behaviour of the application with
respect to the file associated with FD. */
@@ -170,6 +175,7 @@
__THROW;
# endif
#endif
+#endif
__END_DECLS
Index: uClibc/include/grp.h
diff -u uClibc/include/grp.h:1.4 uClibc/include/grp.h:1.5
--- uClibc/include/grp.h:1.4 Wed Sep 26 23:21:09 2001
+++ uClibc/include/grp.h Tue Sep 7 02:40:43 2004
@@ -136,12 +136,6 @@
/* Set the group set for the current user to GROUPS (N of them). */
extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW;
-/* Store at most *NGROUPS members of the group set for USER into
- *GROUPS. Also include GROUP. The actual number of groups found is
- returned in *NGROUPS. Return -1 if the if *NGROUPS is too small. */
-extern int getgrouplist (__const char *__user, __gid_t __group,
- __gid_t *__groups, int *__ngroups) __THROW;
-
/* Initialize the group set for the current user
by reading the group database and using all groups
of which USER is a member. Also include GROUP. */
More information about the uClibc-cvs
mailing list