diff options
author | Greg McGary <greg@mcgary.org> | 2000-07-11 19:30:53 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 2000-07-11 19:30:53 +0000 |
commit | c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5 (patch) | |
tree | 24bb87eb0863c6e1755221a62dc638b95fc19802 /include | |
parent | 19624ed68fd3cb8380dc139459ddb11652ab730a (diff) | |
download | glibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.zip glibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.tar.gz glibc-c62f5cab71d973f3f36f167ac4ea2fd3ebbb43f5.tar.bz2 |
* include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
Add extra level of macro expansion.
[!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
* sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
is available at the time `select' prototype is declared.
* sysdeps/unix/make-syscalls.sh: Remove unused variables.
Collect non-versioned weak aliases. Consider only non-versioned
aliases for the user-visible systemcall name. Do checks inline with
call to primitive system call.
* sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
stand-alone bounds checks to suppress unused value warnings.
* sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
2000-07-11 Greg McGary <greg@mcgary.org>
* include/libc-symbols.h [!__ASSEMBLER__] (strong_alias):
Add extra level of macro expansion.
[!__ASSEMBLER__ && HAVE_WEAK_SYMBOLS] (weak_alias): nLikewise.
* sysdeps/generic/bp-thunks.h: Ensure `struct timeval' definition
is available at the time `select' prototype is declared.
* sysdeps/unix/make-syscalls.sh: Remove unused variables.
Collect non-versioned weak aliases. Consider only non-versioned
aliases for the user-visible systemcall name. Do checks inline with
call to primitive system call.
* sysdeps/unix/sysv/linux/ptrace.c (ptrace): Add void cast to
stand-alone bounds checks to suppress unused value warnings.
* sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
Diffstat (limited to 'include')
-rw-r--r-- | include/libc-symbols.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 7e41774..30a27c8 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -81,7 +81,8 @@ possible, instead of embedded assembly language. */ /* Define ALIASNAME as a strong alias for NAME. */ -# define strong_alias(name, aliasname) \ +# define strong_alias(name, aliasname) _strong_alias(name, aliasname) +# define _strong_alias(name, aliasname) \ extern __typeof (name) aliasname __attribute__ ((alias (#name))); /* This comes between the return type and function name in @@ -93,7 +94,8 @@ /* Define ALIASNAME as a weak alias for NAME. If weak aliases are not available, this defines a strong alias. */ -# define weak_alias(name, aliasname) \ +# define weak_alias(name, aliasname) _weak_alias (name, aliasname) +# define _weak_alias(name, aliasname) \ extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); /* Declare SYMBOL as weak undefined symbol (resolved to 0 if not defined). */ |