diff options
Diffstat (limited to 'sysdeps/generic')
-rw-r--r-- | sysdeps/generic/bind.c | 5 | ||||
-rw-r--r-- | sysdeps/generic/getsockname.c | 5 | ||||
-rw-r--r-- | sysdeps/generic/listen.c | 5 | ||||
-rw-r--r-- | sysdeps/generic/recvfrom.c | 6 | ||||
-rw-r--r-- | sysdeps/generic/recvmsg.c | 6 | ||||
-rw-r--r-- | sysdeps/generic/sendmsg.c | 6 | ||||
-rw-r--r-- | sysdeps/generic/sendto.c | 6 | ||||
-rw-r--r-- | sysdeps/generic/setsockopt.c | 6 | ||||
-rw-r--r-- | sysdeps/generic/unwind-dw2-fde.c | 22 |
9 files changed, 45 insertions, 22 deletions
diff --git a/sysdeps/generic/bind.c b/sysdeps/generic/bind.c index f51b1d8..382e29d 100644 --- a/sysdeps/generic/bind.c +++ b/sysdeps/generic/bind.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* Give the socket FD the local address ADDR (which is LEN bytes long). */ int -bind (fd, addr, len) +__bind (fd, addr, len) int fd; __CONST_SOCKADDR_ARG addr; socklen_t len; @@ -30,6 +30,7 @@ bind (fd, addr, len) return -1; } +weak_alias (__bind, bind) stub_warning (bind) #include <stub-tag.h> diff --git a/sysdeps/generic/getsockname.c b/sysdeps/generic/getsockname.c index f27fa32..b698bdb 100644 --- a/sysdeps/generic/getsockname.c +++ b/sysdeps/generic/getsockname.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ /* Put the local address of FD into *ADDR and its length in *LEN. */ int -getsockname (fd, addr, len) +__getsockname (fd, addr, len) int fd; __SOCKADDR_ARG addr; socklen_t *len; @@ -30,6 +30,7 @@ getsockname (fd, addr, len) return -1; } +weak_alias (__getsockname, getsockname) stub_warning (getsockname) #include <stub-tag.h> diff --git a/sysdeps/generic/listen.c b/sysdeps/generic/listen.c index 87484fe..cbdd8b9 100644 --- a/sysdeps/generic/listen.c +++ b/sysdeps/generic/listen.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ N connection requests will be queued before further requests are refused. Returns 0 on success, -1 for errors. */ int -listen (fd, n) +__listen (fd, n) int fd; int n; { @@ -31,6 +31,7 @@ listen (fd, n) return -1; } +weak_alias (__listen, listen) stub_warning (listen) #include <stub-tag.h> diff --git a/sysdeps/generic/recvfrom.c b/sysdeps/generic/recvfrom.c index da6cc79..4f6a045 100644 --- a/sysdeps/generic/recvfrom.c +++ b/sysdeps/generic/recvfrom.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ at address ADDR (which is ADDR_LEN bytes long). Returns the number read or -1 for errors. */ ssize_t -recvfrom (fd, buf, n, flags, addr, addr_len) +__recvfrom (fd, buf, n, flags, addr, addr_len) int fd; void *buf; size_t n; @@ -35,5 +35,7 @@ recvfrom (fd, buf, n, flags, addr, addr_len) return -1; } +weak_alias (__recvfrom, recvfrom) + stub_warning (recvfrom) #include <stub-tag.h> diff --git a/sysdeps/generic/recvmsg.c b/sysdeps/generic/recvmsg.c index 211b844..419415c 100644 --- a/sysdeps/generic/recvmsg.c +++ b/sysdeps/generic/recvmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ /* Receive a message as described by MESSAGE from socket FD. Returns the number of bytes read or -1 for errors. */ ssize_t -recvmsg (fd, message, flags) +__recvmsg (fd, message, flags) int fd; struct msghdr *message; int flags; @@ -31,5 +31,7 @@ recvmsg (fd, message, flags) return -1; } +weak_alias (__recvmsg, recvmsg) + stub_warning (recvmsg) #include <stub-tag.h> diff --git a/sysdeps/generic/sendmsg.c b/sysdeps/generic/sendmsg.c index 36948f7..a4a3cea 100644 --- a/sysdeps/generic/sendmsg.c +++ b/sysdeps/generic/sendmsg.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ /* Send a message described MESSAGE on socket FD. Returns the number of bytes sent, or -1 for errors. */ ssize_t -sendmsg (fd, message, flags) +__sendmsg (fd, message, flags) int fd; const struct msghdr *message; int flags; @@ -31,5 +31,7 @@ sendmsg (fd, message, flags) return -1; } +weak_alias (__sendmsg, sendmsg) + stub_warning (sendmsg) #include <stub-tag.h> diff --git a/sysdeps/generic/sendto.c b/sysdeps/generic/sendto.c index a9c0df9..823c9dd 100644 --- a/sysdeps/generic/sendto.c +++ b/sysdeps/generic/sendto.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 2001 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,2001,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,7 +22,7 @@ /* Send N bytes of BUF on socket FD to peer at address ADDR (which is ADDR_LEN bytes long). Returns the number sent, or -1 for errors. */ ssize_t -sendto (fd, buf, n, flags, addr, addr_len) +__sendto (fd, buf, n, flags, addr, addr_len) int fd; __const __ptr_t buf; size_t n; @@ -34,5 +34,7 @@ sendto (fd, buf, n, flags, addr, addr_len) return -1; } +weak_alias (__sendto, sendto) + stub_warning (sendto) #include <stub-tag.h> diff --git a/sysdeps/generic/setsockopt.c b/sysdeps/generic/setsockopt.c index e33387b..aca7362 100644 --- a/sysdeps/generic/setsockopt.c +++ b/sysdeps/generic/setsockopt.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. +/* Copyright (C) 1991,1995,1996,1997,1998,2002 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ to *OPTVAL (which is OPTLEN bytes long). Returns 0 on success, -1 for errors. */ int -setsockopt (fd, level, optname, optval, optlen) +__setsockopt (fd, level, optname, optval, optlen) int fd; int level; int optname; @@ -34,5 +34,7 @@ setsockopt (fd, level, optname, optval, optlen) return -1; } +weak_alias (__setsockopt, setsockopt) + stub_warning (setsockopt) #include <stub-tag.h> diff --git a/sysdeps/generic/unwind-dw2-fde.c b/sysdeps/generic/unwind-dw2-fde.c index 3d19318..6c51c6f 100644 --- a/sysdeps/generic/unwind-dw2-fde.c +++ b/sysdeps/generic/unwind-dw2-fde.c @@ -68,6 +68,13 @@ __libc_lock_define_initialized (static, object_mutex) #define __gthread_mutex_lock(m) __libc_lock_lock (*(m)) #define __gthread_mutex_unlock(m) __libc_lock_unlock (*(m)) +void __register_frame_info_bases_internal (void *begin, struct object *ob, + void *tbase, void *dbase); +void __register_frame_info_table_bases_internal (void *begin, + struct object *ob, + void *tbase, void *dbase); +void *__deregister_frame_info_bases_internal (void *begin); + #else #ifdef __GTHREAD_MUTEX_INIT @@ -120,11 +127,12 @@ __register_frame_info_bases (void *begin, struct object *ob, __gthread_mutex_unlock (&object_mutex); } +INTDEF(__register_frame_info_bases) void __register_frame_info (void *begin, struct object *ob) { - __register_frame_info_bases (begin, ob, 0, 0); + INTUSE(__register_frame_info_bases) (begin, ob, 0, 0); } void @@ -137,7 +145,7 @@ __register_frame (void *begin) return; ob = (struct object *) malloc (sizeof (struct object)); - __register_frame_info (begin, ob); + INTUSE(__register_frame_info_bases) (begin, ob, 0, 0); } /* Similar, but BEGIN is actually a pointer to a table of unwind entries @@ -164,18 +172,19 @@ __register_frame_info_table_bases (void *begin, struct object *ob, __gthread_mutex_unlock (&object_mutex); } +INTDEF(__register_frame_info_table_bases) void __register_frame_info_table (void *begin, struct object *ob) { - __register_frame_info_table_bases (begin, ob, 0, 0); + INTUSE(__register_frame_info_table_bases) (begin, ob, 0, 0); } void __register_frame_table (void *begin) { struct object *ob = (struct object *) malloc (sizeof (struct object)); - __register_frame_info_table (begin, ob); + INTUSE(__register_frame_info_table_bases) (begin, ob, 0, 0); } /* Called from crtbegin.o to deregister the unwind info for an object. */ @@ -239,11 +248,12 @@ __deregister_frame_info_bases (void *begin) __gthread_mutex_unlock (&object_mutex); return (void *) ob; } +INTDEF(__deregister_frame_info_bases) void * __deregister_frame_info (void *begin) { - return __deregister_frame_info_bases (begin); + return INTUSE(__deregister_frame_info_bases) (begin); } void @@ -251,7 +261,7 @@ __deregister_frame (void *begin) { /* If .eh_frame is empty, we haven't registered. */ if (*(uword *)begin != 0) - free (__deregister_frame_info (begin)); + free (INTUSE(__deregister_frame_info_bases) (begin)); } |