summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-03 00:34:49 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-03 00:34:49 +0000
commitc885bf5cf94a12202f849477a845d728cbd12889 (patch)
tree106e36d57ea684166ebde05a8d4be54664e0e6ce
parentca3067b8cec6e7ffd600c92510197df5aedd8606 (diff)
More hiding, including __mempcpy
-rw-r--r--Makefile.in1
-rw-r--r--include/libc-internal.h4
-rw-r--r--include/ssp-internal.h83
-rw-r--r--include/string.h4
-rw-r--r--libc/inet/getaddrinfo.c6
-rw-r--r--libc/inet/getnetbyad.c4
-rw-r--r--libc/inet/getnetbynm.c4
-rw-r--r--libc/inet/getnetent.c10
-rw-r--r--libc/inet/getservice.c85
-rw-r--r--libc/inet/resolv.c1
-rw-r--r--libc/inet/rpc/auth_none.c2
-rw-r--r--libc/inet/rpc/auth_unix.c1
-rw-r--r--libc/inet/rpc/bindresvport.c2
-rw-r--r--libc/inet/rpc/clnt_raw.c1
-rw-r--r--libc/inet/rpc/clnt_tcp.c1
-rw-r--r--libc/inet/rpc/clnt_udp.c1
-rw-r--r--libc/inet/rpc/clnt_unix.c3
-rw-r--r--libc/inet/rpc/create_xid.c3
-rw-r--r--libc/inet/rpc/pmap_clnt.c5
-rw-r--r--libc/inet/rpc/pmap_rmt.c1
-rw-r--r--libc/inet/rpc/rcmd.c3
-rw-r--r--libc/inet/rpc/rpc_dtablesize.c2
-rw-r--r--libc/inet/rpc/ruserpass.c2
-rw-r--r--libc/inet/rpc/svc.c2
-rw-r--r--libc/inet/rpc/svc_auth_unix.c2
-rw-r--r--libc/inet/rpc/svc_raw.c2
-rw-r--r--libc/inet/rpc/svc_udp.c1
-rw-r--r--libc/inet/rpc/svc_unix.c2
-rw-r--r--libc/inet/rpc/xdr_mem.c5
-rw-r--r--libc/misc/file/lockf.c2
-rw-r--r--libc/misc/file/lockf64.c2
-rw-r--r--libc/misc/ftw/ftw.c2
-rw-r--r--libc/misc/internals/tempname.c2
-rw-r--r--libc/misc/locale/locale.c3
-rw-r--r--libc/misc/regex/regex.c4
-rw-r--r--libc/misc/search/hsearch.c4
-rw-r--r--libc/misc/search/hsearch_r.c12
-rw-r--r--libc/misc/search/tsearch.c3
-rw-r--r--libc/misc/syslog/syslog.c42
-rw-r--r--libc/misc/sysvipc/shm.c4
-rw-r--r--libc/misc/time/adjtime.c3
-rw-r--r--libc/misc/time/time.c27
-rw-r--r--libc/misc/utmp/wtent.c2
-rw-r--r--libc/misc/wordexp/wordexp.c11
-rw-r--r--libc/pwd_grp/lckpwdf.c3
-rw-r--r--libc/signal/killpg.c2
-rw-r--r--libc/signal/raise.c5
-rw-r--r--libc/signal/sigaction.c21
-rw-r--r--libc/signal/sigdelset.c7
-rw-r--r--libc/signal/sigfillset.c6
-rw-r--r--libc/signal/sigignore.c2
-rw-r--r--libc/signal/sigintr.c2
-rw-r--r--libc/signal/signal.c2
-rw-r--r--libc/signal/sigpause.c2
-rw-r--r--libc/signal/sigrelse.c2
-rw-r--r--libc/signal/sigset.c2
-rw-r--r--libc/signal/sysv_signal.c2
-rw-r--r--libc/stdio/getdelim.c5
-rw-r--r--libc/stdio/getline.c7
-rw-r--r--libc/stdio/open_memstream.c3
-rw-r--r--libc/stdio/popen.c1
-rw-r--r--libc/stdio/vasprintf.c2
-rw-r--r--libc/stdlib/abort.c2
-rw-r--r--libc/stdlib/drand48.c2
-rw-r--r--libc/stdlib/drand48_r.c2
-rw-r--r--libc/stdlib/erand48.c1
-rw-r--r--libc/stdlib/erand48_r.c7
-rw-r--r--libc/stdlib/getenv.c3
-rw-r--r--libc/stdlib/jrand48.c2
-rw-r--r--libc/stdlib/jrand48_r.c6
-rw-r--r--libc/stdlib/lrand48.c2
-rw-r--r--libc/stdlib/lrand48_r.c5
-rw-r--r--libc/stdlib/malloc/malloc_debug.c2
-rw-r--r--libc/stdlib/mrand48.c2
-rw-r--r--libc/stdlib/mrand48_r.c2
-rw-r--r--libc/stdlib/nrand48.c2
-rw-r--r--libc/stdlib/nrand48_r.c6
-rw-r--r--libc/stdlib/srand48.c2
-rw-r--r--libc/stdlib/srand48_r.c5
-rw-r--r--libc/stdlib/system.c2
-rw-r--r--libc/stdlib/unix_grantpt.c1
-rw-r--r--libc/stdlib/valloc.c2
-rw-r--r--libc/string/generic/mempcpy.c2
-rw-r--r--libc/sysdeps/linux/arm/sigaction.c7
-rw-r--r--libc/sysdeps/linux/common/__rt_sigtimedwait.c2
-rw-r--r--libc/sysdeps/linux/common/__syscall_rt_sigaction.c2
-rw-r--r--libc/sysdeps/linux/common/__syscall_sigaction.c2
-rw-r--r--libc/sysdeps/linux/common/adjtimex.c8
-rw-r--r--libc/sysdeps/linux/common/alarm.c2
-rw-r--r--libc/sysdeps/linux/common/clock_settime.c2
-rw-r--r--libc/sysdeps/linux/common/getdirname.c2
-rw-r--r--libc/sysdeps/linux/common/getdtablesize.c4
-rw-r--r--libc/sysdeps/linux/common/getpagesize.c7
-rw-r--r--libc/sysdeps/linux/common/getpid.c11
-rw-r--r--libc/sysdeps/linux/common/getppid.c2
-rw-r--r--libc/sysdeps/linux/common/kill.c3
-rw-r--r--libc/sysdeps/linux/common/ntp_gettime.c2
-rw-r--r--libc/sysdeps/linux/common/poll.c2
-rw-r--r--libc/sysdeps/linux/common/setitimer.c4
-rw-r--r--libc/sysdeps/linux/common/settimeofday.c4
-rw-r--r--libc/sysdeps/linux/common/ssp.c35
-rw-r--r--libc/sysdeps/linux/common/stime.c2
-rw-r--r--libc/sysdeps/linux/common/time.c6
-rw-r--r--libc/sysdeps/linux/common/times.c4
-rw-r--r--libc/sysdeps/linux/common/utime.c8
-rw-r--r--libc/sysdeps/linux/common/utimes.c8
-rw-r--r--libc/sysdeps/linux/common/wait.c8
-rw-r--r--libc/sysdeps/linux/common/wait3.c2
-rw-r--r--libc/sysdeps/linux/common/wait4.c3
-rw-r--r--libc/sysdeps/linux/common/waitpid.c9
-rw-r--r--libc/sysdeps/linux/i386/sigaction.c8
-rw-r--r--libc/sysdeps/linux/mips/sigaction.c7
-rw-r--r--libc/sysdeps/linux/x86_64/sigaction.c14
-rw-r--r--libc/unistd/exec.c2
-rw-r--r--libc/unistd/getlogin.c9
-rw-r--r--libc/unistd/getopt.c2
-rw-r--r--libc/unistd/sleep.c2
-rw-r--r--libc/unistd/sysconf.c3
-rw-r--r--libc/unistd/ualarm.c2
119 files changed, 401 insertions, 301 deletions
diff --git a/Makefile.in b/Makefile.in
index f9279a600..c66638c23 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -111,7 +111,6 @@ install_headers:
fi ; \
tar -chf - --exclude .svn $$extra_exclude include \
| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
- $(RM) $(PREFIX)$(DEVEL_PREFIX)include/ssp-internal.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/dl-osinfo.h
ifneq ($(UCLIBC_HAS_FLOATS),y)
# Remove floating point related headers since float support is disabled.
diff --git a/include/libc-internal.h b/include/libc-internal.h
index 11e020ee1..9694dc9bd 100644
--- a/include/libc-internal.h
+++ b/include/libc-internal.h
@@ -155,6 +155,10 @@ extern char *__strdup (__const char *__s) attribute_hidden;
extern ssize_t __read(int __fd, void *__buf, size_t __nbytes) attribute_hidden;
extern ssize_t __write(int __fd, __const void *__buf, size_t __n) attribute_hidden;
extern int __close(int __fd) attribute_hidden;
+extern __pid_t __getpid (void) attribute_hidden;
+
+/* #include <stdlib.h> */
+extern char *__getenv (__const char *__name) attribute_hidden;
/* #include <signal.h> */
extern int __sigprocmask (int __how, __const __sigset_t *__restrict __set,
diff --git a/include/ssp-internal.h b/include/ssp-internal.h
deleted file mode 100644
index cd44b4f5d..000000000
--- a/include/ssp-internal.h
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Distributed under the terms of the GNU Lesser General Public License
- * $Header: $
- */
-
-#ifndef _SSP_INTERNAL_H
-#define _SSP_INTERNAL_H 1
-
-#ifdef __SSP__
-#error "file must not be compiled with stack protection enabled on it. Use -fno-stack-protector"
-#endif
-
-#ifdef __PROPOLICE_BLOCK_SEGV__
-# define SSP_SIGTYPE SIGSEGV
-#else
-# define SSP_SIGTYPE SIGABRT
-#endif
-
-#include <sys/types.h>
-#include <sys/time.h>
-#include <signal.h>
-#include <linux/unistd.h>
-
-#ifndef errno
-extern int errno;
-#endif
-
-#ifndef __SSP_QUICK_CANARY__
-#define __NR___kernel_open __NR_open
-static __always_inline _syscall3(int,__kernel_open,const char *,path,int,flags,__kernel_mode_t,mode);
-#define OPEN(path, flags, mode) __kernel_open(path, flags, mode)
-
-/* void * = __ptr_t */
-#define __NR___kernel_read __NR_read
-static __always_inline _syscall3(ssize_t,__kernel_read,int,fd,void *,buf,size_t,count);
-#define READ(fd, buf, count) __kernel_read(fd, buf, count)
-
-#define __NR___kernel_close __NR_close
-static __always_inline _syscall1(int,__kernel_close,int,fd);
-#define CLOSE(fd) __kernel_close(fd)
-#endif
-
-/* const void * = const __ptr_t */
-#define __NR___kernel_write __NR_write
-static __always_inline _syscall3(ssize_t,__kernel_write,int,fd,const void *,buf,size_t,count);
-#define WRITE(fd, buf, count) __kernel_write(fd, buf, count)
-
-/* not using __NR_ */
-#define __NR___kernel_gettimeofday __NR_gettimeofday
-static __always_inline _syscall2(int,__kernel_gettimeofday,struct timeval *,tv,struct timezone *,tz);
-#define GETTIMEOFDAY(tv, tz) __kernel_gettimeofday(tv, tz)
-
-#define __NR___kernel_getpid __NR_getpid
-static __always_inline _syscall0(pid_t,__kernel_getpid);
-#define GETPID() __kernel_getpid()
-
-//#ifdef __NR_rt_sigaction
-//#define __NR___kernel_sigaction __NR_rt_sigaction
-//static __always_inline _syscall4(...);
-//#else
-#define __NR___kernel_sigaction __NR_sigaction
-static __always_inline _syscall3(int,__kernel_sigaction,int,signum,const struct sigaction *,act,struct sigaction *,oldact);
-//#endif
-#define SIGACTION(signum, act, oldact) __kernel_sigaction(signum, act, oldact)
-
-//#ifdef __NR_rt_sigprocmask
-//#define __NR___kernel_sigprocmask __NR_rt_sigprocmask
-//static __always_inline _syscall4(...);
-//#else
-#define __NR___kernel_sigprocmask __NR_sigprocmask
-static __always_inline _syscall3(int,__kernel_sigprocmask,int,how,const sigset_t *,set,sigset_t *,oldset);
-//#endif
-#define SIGPROCMASK(how, set, oldset) __kernel_sigprocmask(how, set, oldset)
-
-#define __NR___kernel_kill __NR_kill
-static __always_inline _syscall2(int,__kernel_kill,__kernel_pid_t,pid,int,sig);
-#define KILL(pid, sig) __kernel_kill(pid, sig)
-
-#define __NR___kernel_exit __NR_exit
-static __always_inline _syscall1(void,__kernel_exit,int,status);
-#define EXIT(status) __kernel_exit(status)
-
-#endif /* _SSP_INTERNAL_H */
diff --git a/include/string.h b/include/string.h
index ea59d94ed..4623a672b 100644
--- a/include/string.h
+++ b/inclu