uint32_t l[16], r[16];
};
-void __des_setkey(const unsigned char *, struct expanded_key *);
-void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
- uint32_t, uint32_t, const struct expanded_key *);
+hidden void __des_setkey(const unsigned char *, struct expanded_key *);
+hidden void __do_des(uint32_t, uint32_t, uint32_t *, uint32_t *,
+ uint32_t, uint32_t, const struct expanded_key *);
#endif
#include <stdio.h>
-long double __floatscan(FILE *, int, int);
+hidden long double __floatscan(FILE *, int, int);
#endif
#include <stdio.h>
-unsigned long long __intscan(FILE *, unsigned, int, unsigned long long);
+hidden unsigned long long __intscan(FILE *, unsigned, int, unsigned long long);
#endif
extern hidden struct __libc __libc;
#define libc __libc
-void __init_libc(char **, char *);
-void __init_tls(size_t *);
-void __libc_start_init(void);
+hidden void __init_libc(char **, char *);
+hidden void __init_tls(size_t *);
+hidden void __libc_start_init(void);
extern hidden size_t __hwcap;
extern hidden size_t __sysinfo;
#define LOCK(x) __lock(x)
#define UNLOCK(x) __unlock(x)
-void __synccall(void (*)(void *), void *);
-int __setxid(int, int, int, int);
+hidden void __synccall(void (*)(void *), void *);
+hidden int __setxid(int, int, int, int);
#undef LFS64_2
#define LFS64_2(x, y) weak_alias(x, y)
const struct __locale_map *next;
};
-extern const struct __locale_map __c_dot_utf8;
-extern const struct __locale_struct __c_locale;
-extern const struct __locale_struct __c_dot_utf8_locale;
-
-const struct __locale_map *__get_locale(int, const char *);
-const char *__mo_lookup(const void *, size_t, const char *);
-const char *__lctrans(const char *, const struct __locale_map *);
-const char *__lctrans_cur(const char *);
-int __loc_is_allocated(locale_t);
+extern hidden const struct __locale_map __c_dot_utf8;
+extern hidden const struct __locale_struct __c_locale;
+extern hidden const struct __locale_struct __c_dot_utf8_locale;
+
+hidden const struct __locale_map *__get_locale(int, const char *);
+hidden const char *__mo_lookup(const void *, size_t, const char *);
+hidden const char *__lctrans(const char *, const struct __locale_map *);
+hidden const char *__lctrans_cur(const char *);
+hidden int __loc_is_allocated(locale_t);
#define LCTRANS(msg, lc, loc) __lctrans(msg, (loc)->cat[(lc)])
#define LCTRANS_CUR(msg) __lctrans_cur(msg)
#include "libc.h"
#include <sys/mman.h>
-void *__expand_heap(size_t *);
+hidden void *__expand_heap(size_t *);
-void __malloc_donate(char *, char *);
+hidden void __malloc_donate(char *, char *);
-void *__memalign(size_t, size_t);
+hidden void *__memalign(size_t, size_t);
struct chunk {
size_t psize, csize;
#include "stdio_impl.h"
-void __shlim(FILE *, off_t);
-int __shgetc(FILE *);
+hidden void __shlim(FILE *, off_t);
+hidden int __shgetc(FILE *);
#define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend))
#define shlim(f, lim) __shlim((f), (lim))
#define __sys_open_cp(...) __SYSCALL_DISP(__sys_open_cp,,__VA_ARGS__)
#define sys_open_cp(...) __syscall_ret(__sys_open_cp(__VA_ARGS__))
-void __procfdname(char [static 15+3*sizeof(int)], unsigned);
+hidden void __procfdname(char [static 15+3*sizeof(int)], unsigned);
-void *__vdsosym(const char *, const char *);
+hidden void *__vdsosym(const char *, const char *);
#endif
#ifndef PLEVAL_H
#define PLEVAL_H
-unsigned long __pleval(const char *, unsigned long);
+#include <features.h>
+
+hidden unsigned long __pleval(const char *, unsigned long);
#endif
+#include <features.h>
+
/* shared by acosl, asinl and atan2l */
#define pio2_hi __pio2_hi
#define pio2_lo __pio2_lo
#include <stdint.h>
#include <stddef.h>
+#include <features.h>
struct address {
int family;
#define MAXADDRS 48
#define MAXSERVS 2
-int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
-int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags);
-int __lookup_ipliteral(struct address buf[static 1], const char *name, int family);
+hidden int __lookup_serv(struct service buf[static MAXSERVS], const char *name, int proto, int socktype, int flags);
+hidden int __lookup_name(struct address buf[static MAXADDRS], char canon[static 256], const char *name, int family, int flags);
+hidden int __lookup_ipliteral(struct address buf[static 1], const char *name, int family);
-int __get_resolv_conf(struct resolvconf *, char *, size_t);
-int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *);
+hidden int __get_resolv_conf(struct resolvconf *, char *, size_t);
+hidden int __res_msend_rc(int, const unsigned char *const *, const int *, unsigned char *const *, int *, int, const struct resolvconf *);
-int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *);
+hidden int __dns_parse(const unsigned char *, int, int (*)(void *, int, const void *, int, const void *), void *);
#endif
#define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len)))
#define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh))
-int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx);
+hidden int __rtnetlink_enumerate(int link_af, int addr_af, int (*cb)(void *ctx, struct nlmsghdr *h), void *ctx);
#define INITGRNGRPS 2
#define INITGR_LEN 3
-FILE *__nscd_query(int32_t req, const char *key, int32_t *buf, size_t len, int *swap);
+hidden FILE *__nscd_query(int32_t req, const char *key, int32_t *buf, size_t len, int *swap);
#endif
#include <limits.h>
#include "libc.h"
-int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res);
-int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res);
-int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, struct group **res);
-int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res);
-int __parsespent(char *s, struct spwd *sp);
+hidden int __getpwent_a(FILE *f, struct passwd *pw, char **line, size_t *size, struct passwd **res);
+hidden int __getpw_a(const char *name, uid_t uid, struct passwd *pw, char **buf, size_t *size, struct passwd **res);
+hidden int __getgrent_a(FILE *f, struct group *gr, char **line, size_t *size, char ***mem, size_t *nmem, struct group **res);
+hidden int __getgr_a(const char *name, gid_t gid, struct group *gr, char **buf, size_t *size, char ***mem, size_t *nmem, struct group **res);
+hidden int __parsespent(char *s, struct spwd *sp);
#include <stdint.h>
+#include <features.h>
-uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
-extern unsigned short __seed48[7];
+hidden uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
+extern hidden unsigned short __seed48[7];
#define tre_mem_alloc_impl __tre_mem_alloc_impl
#define tre_mem_destroy __tre_mem_destroy
-tre_mem_t tre_mem_new_impl(int provided, void *provided_block);
-void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
- int zero, size_t size);
+hidden tre_mem_t tre_mem_new_impl(int provided, void *provided_block);
+hidden void *tre_mem_alloc_impl(tre_mem_t mem, int provided, void *provided_block,
+ int zero, size_t size);
/* Returns a new memory allocator or NULL if out of memory. */
#define tre_mem_new() tre_mem_new_impl(0, NULL)
/* Frees the memory allocator and all memory allocated with it. */
-void tre_mem_destroy(tre_mem_t mem);
+hidden void tre_mem_destroy(tre_mem_t mem);
#define xmalloc malloc
#define xcalloc calloc