mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 23:10:06 +00:00
5ca3d19c74
2004-10-14 Ulrich Drepper <drepper@redhat.com> * nscd/connections.c (nscd_init): Remove file if not persistent and not shared. Patch by Jerome Borsboom <j.borsboom@erasmusmc.nl>. * sysdeps/unix/sysv/linux/i386/setresuid.c: Handle defined __NR_setresuid32 && !defined __NR_setresuid. * sysdeps/unix/sysv/linux/i386/setresgid.c: Handle defined __NR_setresgid32 && !defined __NR_setresgid. * sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit, __signbitl, sqrtf, sqrt, sqrtl, fdim, fdimf): Use __NTH macro. * sysdeps/generic/errno-loc.c: Don't undef #errno if RTLD_PRIVATE_ERRNO. * include/errno.h (__errno_location): If RTLD_PRIVATE_ERRNO, add attribute_hidden. * dlfcn/dlinfo.c (dlinfo_doit): Replace iteration over GL(dl_loaded) chain with iteration over all namespaces' _ns_loaded chains. * sysdeps/powerpc/powerpc32/dl-machine.c (__elf_preferred_address): Likewise. * sysdeps/mips/dl-machine.h (elf_machine_runtime_link_map): Likewise.
50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
#ifndef _ERRNO_H
|
|
|
|
#include <stdlib/errno.h>
|
|
|
|
#if defined _ERRNO_H && !defined _ISOMAC
|
|
|
|
# ifdef IS_IN_rtld
|
|
# include <dl-sysdep.h>
|
|
# endif
|
|
|
|
# if RTLD_PRIVATE_ERRNO
|
|
/* The dynamic linker uses its own private errno variable.
|
|
All access to errno inside the dynamic linker is serialized,
|
|
so a single (hidden) global variable is all it needs. */
|
|
|
|
# undef errno
|
|
# define errno rtld_errno
|
|
extern int rtld_errno attribute_hidden;
|
|
|
|
# else
|
|
|
|
# include <tls.h> /* Defines USE_TLS. */
|
|
|
|
# if USE___THREAD
|
|
# undef errno
|
|
# ifndef NOT_IN_libc
|
|
# define errno __libc_errno
|
|
# else
|
|
# define errno errno /* For #ifndef errno tests. */
|
|
# endif
|
|
extern __thread int errno attribute_tls_model_ie;
|
|
# endif
|
|
|
|
# endif /* RTLD_PRIVATE_ERRNO */
|
|
|
|
# define __set_errno(val) (errno = (val))
|
|
|
|
# ifndef __ASSEMBLER__
|
|
extern int *__errno_location (void) __THROW __attribute__ ((__const__))
|
|
# if RTLD_PRIVATE_ERRNO
|
|
attribute_hidden
|
|
# endif
|
|
;
|
|
libc_hidden_proto (__errno_location)
|
|
# endif
|
|
|
|
#endif /* _ERRNO_H */
|
|
|
|
#endif /* ! _ERRNO_H */
|