libc_hidden_proto(fprintf)
libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
static const char *error_msg = "Resolver error";
static const char *const h_errlist[] = {
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
extern pthread_mutex_t __resolv_lock;
-libc_hidden_proto(__resolv_lock)
#endif
#define BIGLOCK __pthread_mutex_lock(&__resolv_lock)
#define BIGUNLOCK __pthread_mutex_unlock(&__resolv_lock)
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER;
-libc_hidden_data_def(__resolv_lock)
#endif
/*
libc_hidden_proto(fputs)
libc_hidden_proto(perror)
libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
#ifdef USE_IN_LIBIO
libc_hidden_proto(fwprintf)
#endif
libc_hidden_proto(poll)
libc_hidden_proto(fputs)
libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
#ifdef USE_IN_LIBIO
libc_hidden_proto(fwprintf)
#endif
libc_hidden_proto(poll)
libc_hidden_proto(fputs)
libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
extern u_long _create_xid (void) attribute_hidden;
libc_hidden_proto(poll)
libc_hidden_proto(fputs)
libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
extern u_long _create_xid (void) attribute_hidden;
libc_hidden_proto(fclose)
libc_hidden_proto(fprintf)
libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
#ifdef __UCLIBC_HAS_XLOCALE__
libc_hidden_proto(__ctype_b_loc)
libc_hidden_proto(__ctype_tolower_loc)
extern u_long _create_xid (void) attribute_hidden;
libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
/*
* Multi-threaded support
libc_hidden_proto(fputs)
libc_hidden_proto(fclose)
libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
/*
* Ops vector for TCP/IP based rpc service handle
libc_hidden_proto(sendmsg)
libc_hidden_proto(fputs)
libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
#define rpc_buffer(xprt) ((xprt)->xp_p1)
#ifndef MAX
libc_hidden_proto(listen)
libc_hidden_proto(fputs)
libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
/*
* Ops vector for AF_UNIX based rpc service handle
libc_hidden_proto(strlen)
libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
/*
* constants specific to the xdr "protocol"
libc_hidden_proto(memset)
libc_hidden_proto(fputs)
libc_hidden_proto(xdr_u_int)
-libc_hidden_proto(stderr)
#define LASTUNSIGNED ((u_int)0-1)
libc_hidden_proto(memcpy)
libc_hidden_proto(fputs)
libc_hidden_proto(lseek)
-libc_hidden_proto(stderr)
static bool_t xdrrec_getlong (XDR *, long *);
static bool_t xdrrec_putlong (XDR *, const long *);
libc_hidden_proto(memset)
libc_hidden_proto(xdr_bool)
libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
#define LASTUNSIGNED ((u_int)0-1)
libc_hidden_proto(fprintf)
libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
/* Get the prototype from assert.h as a double-check. */
#undef NDEBUG
libc_hidden_proto(__xpg_strerror_r)
libc_hidden_proto(exit)
libc_hidden_proto(vfprintf)
-libc_hidden_proto(stderr)
static void vwarn_work(const char *format, va_list args, int showerr)
{
libc_hidden_proto(fflush)
libc_hidden_proto(fputc)
libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdout)
-libc_hidden_proto(stderr)
/* This variable is incremented each time `error' is called. */
unsigned int error_message_count = 0;
abort gracefully or use longjump - but shouldn't return. This
variable by default points to the internal function
`print_and_abort'. */
-libc_hidden_proto(obstack_alloc_failed_handler)
# if defined __STDC__ && __STDC__
static void print_and_abort (void);
void (*obstack_alloc_failed_handler) (void) = print_and_abort;
static void print_and_abort ();
void (*obstack_alloc_failed_handler) () = print_and_abort;
# endif
-libc_hidden_data_def(obstack_alloc_failed_handler)
/* Exit value used when `print_and_abort' is used. */
libc_hidden_proto(fprintf)
libc_hidden_proto(abort)
libc_hidden_proto(exit)
-libc_hidden_proto(stderr)
#ifdef __UCLIBC_HAS_WCHAR__
libc_hidden_proto(fwprintf)
#endif
-libc_hidden_proto(obstack_exit_failure)
int obstack_exit_failure = EXIT_FAILURE;
-libc_hidden_data_def(obstack_exit_failure)
/* The non-GNU-C macros copy the obstack into this global variable
to avoid multiple evaluation. */
#endif
/*
- * Declare the __environ global variable and create a weak alias environ.
- * Note: Apparently we must initialize __environ to ensure that the weak
+ * Declare the __environ global variable and create a strong alias environ.
+ * Note: Apparently we must initialize __environ to ensure that the strong
* environ symbol is also included.
*/
-libc_hidden_proto(__environ)
char **__environ = 0;
-libc_hidden_data_def(__environ)
-#ifdef __USE_GNU
-/* psm: arm segfaults with strong_alias, although defined */
-weak_alias(__environ,environ)
-#endif
+strong_alias(__environ,environ)
/* TODO: don't export __pagesize; we cant now because libpthread uses it */
-extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
size_t __pagesize = 0;
-libc_hidden_data_def(__pagesize)
#ifndef O_NOFOLLOW
# define O_NOFOLLOW 0
#include <langinfo.h>
#include <nl_types.h>
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
/**********************************************************************/
#ifdef L_setlocale
__uclibc_locale_t __global_locale_data;
__locale_t __global_locale = &__global_locale_data;
-libc_hidden_data_def(__global_locale)
#ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__curlocale_var)
__locale_t __curlocale_var = &__global_locale_data;
-libc_hidden_data_def(__curlocale_var)
#endif
/*----------------------------------------------------------------------*/
/**********************************************************************/
#ifdef L_uselocale
-libc_hidden_proto(__curlocale_var)
-
libc_hidden_proto(uselocale)
__locale_t uselocale(__locale_t dataset)
{
#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(__curlocale_var)
-
__locale_t weak_const_function __curlocale(void)
{
return __curlocale_var; /* This is overriden by the thread version. */
#define DEFAULT_RULES (vals + 22)
/* Initialize to UTC. */
-libc_hidden_proto(daylight)
int daylight = 0;
-libc_hidden_data_def(daylight)
-libc_hidden_proto(timezone)
long timezone = 0;
-libc_hidden_data_def(timezone)
-libc_hidden_proto(tzname)
char *tzname[2] = { (char *) UTC, (char *) (UTC-1) };
-libc_hidden_data_def(tzname)
#ifdef __UCLIBC_HAS_THREADS__
attribute_hidden pthread_mutex_t _time_tzlock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
#include <wchar.h>
#include <bits/uClibc_uwchar.h>
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
/**********************************************************************/
#ifdef __UCLIBC_HAS_LOCALE__
#ifdef __UCLIBC_MJN3_ONLY__
#else
libc_hidden_proto(__ctype_b)
#endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
/* We know wide char support is enabled. We wouldn't be here otherwise. */
libc_hidden_proto(strndup)
libc_hidden_proto(strspn)
libc_hidden_proto(strcspn)
-libc_hidden_proto(__environ)
libc_hidden_proto(setenv)
libc_hidden_proto(unsetenv)
libc_hidden_proto(waitpid)
libc_hidden_proto(sprintf)
libc_hidden_proto(fprintf)
libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
libc_hidden_proto(glob)
libc_hidden_proto(globfree)
libc_hidden_proto(wordfree)
#include <stdio_ext.h>
libc_hidden_proto(__fsetlocking)
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
/* Not threadsafe. */
libc_hidden_proto(open)
libc_hidden_proto(fcntl)
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
-
/*
* Cases:
* fopen64 : filename != NULL, stream == NULL, filedes == -2
#include <bits/uClibc_fpmax.h>
libc_hidden_proto(memset)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len,
intptr_t buf);
#ifdef __UCLIBC_HAS_XLOCALE__
libc_hidden_proto(__ctype_b_loc)
#else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
libc_hidden_proto(__ctype_b)
#endif
0 )
};
-/* psm: moved to _stdio.h: libc_hidden_proto(stdin/stdout) */
FILE *stdin = _stdio_streams;
-libc_hidden_data_def(stdin)
FILE *stdout = _stdio_streams + 1;
-libc_hidden_data_def(stdout)
-libc_hidden_proto(stderr)
FILE *stderr = _stdio_streams + 2;
-libc_hidden_data_def(stderr)
#ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
FILE *__stdin = _stdio_streams; /* For getchar() macro. */
-libc_hidden_data_def(__stdin)
#endif
#ifdef __STDIO_PUTC_MACRO
FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
*/
FILE *_stdio_openlist = _stdio_streams;
-libc_hidden_data_def(_stdio_openlist)
# ifdef __UCLIBC_HAS_THREADS__
pthread_mutex_t _stdio_openlist_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(_stdio_openlist_lock)
int _stdio_openlist_delflag = 0;
# endif
#ifdef __UCLIBC_HAS_THREADS__
/* 2 if threading not initialized and 0 otherwise; */
-libc_hidden_proto(_stdio_user_locking)
int _stdio_user_locking = 2;
-libc_hidden_data_def(_stdio_user_locking)
void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
{
#include <wchar.h>
#endif
-libc_hidden_proto(stdin)
-libc_hidden_proto(stdout)
-
-libc_hidden_proto(_stdio_openlist)
-
#ifdef __UCLIBC_HAS_THREADS__
#include <pthread.h>
-libc_hidden_proto(_stdio_openlist_lock)
#define __STDIO_THREADLOCK_OPENLIST \
__pthread_mutex_lock(&_stdio_openlist_lock)
#include <bits/uClibc_uintmaxtostr.h>
libc_hidden_proto(memcpy)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
/* Avoid using long long / and % operations to cut down dependencies on
* libgcc.a. Definitely helps on i386 at least. */
/**********************************************************************/
#ifdef L__ppfs_init
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
{
int r;
#define _outnwcs(stream, wstring, len) _wstdio_fwrite(wstring, len, stream)
#define FP_OUT _fp_out_wide
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
{
/* NOTE!!! len here is the number of wchars we want to generate!!! */
#endif /* __UCLIBC_MJN3_ONLY__ */
#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
/* Even if the stream is set to user-locking, we still need to lock
* when all (lbf) writing streams are flushed. */
#define MY_STDIO_THREADLOCK(STREAM) \
libc_hidden_proto(getchar_unlocked)
libc_hidden_proto(__fgetc_unlocked)
-#ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
-#else
+#ifndef __STDIO_GETC_MACRO
#define __stdin stdin
#endif
libc_hidden_proto(fprintf)
libc_hidden_proto(__glibc_strerror_r)
-libc_hidden_proto(stderr)
#ifdef __UCLIBC_MJN3_ONLY__
#warning CONSIDER: Increase buffer size for error message (non-%m case)?
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
extern pthread_mutex_t mylock;
-libc_hidden_proto(mylock)
#endif
#define LOCK __pthread_mutex_lock(&mylock)
#define UNLOCK __pthread_mutex_unlock(&mylock)
attribute_hidden void (*__exit_cleanup) (int) = 0;
#ifdef __UCLIBC_HAS_THREADS__
pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(mylock)
#endif
extern void __uClibc_fini(void);
#ifdef __UCLIBC_HAS_XLOCALE__
libc_hidden_proto(__ctype_b_loc)
#else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
libc_hidden_proto(__ctype_b)
libc_hidden_proto(__ctype_tolower)
#endif
libc_hidden_proto(getenv)
libc_hidden_proto(memcmp)
libc_hidden_proto(strlen)
-libc_hidden_proto(__environ)
/* IEEE Std 1003.1-2001 says getenv need not be thread safe, so
* don't bother locking access to __environ */
#include "malloc.h"
libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
/* ------------------------------ mallinfo ------------------------------ */
libc_hidden_proto(mallinfo)
#ifdef __UCLIBC_HAS_THREADS__
pthread_mutex_t __malloc_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(__malloc_lock)
#endif
/*
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
extern pthread_mutex_t __malloc_lock;
-libc_hidden_proto(__malloc_lock)
#endif
#define LOCK __pthread_mutex_lock(&__malloc_lock)
#define UNLOCK __pthread_mutex_unlock(&__malloc_lock)
/* The system pagesize... */
extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
#define MALLOC_PAGE_SIZE __pagesize
/* The minimum size of block we request from the the system to extend the
libc_hidden_proto(strncmp)
libc_hidden_proto(strndup)
libc_hidden_proto(unsetenv)
-libc_hidden_proto(__environ)
#ifdef __UCLIBC_HAS_THREADS__
# include <pthread.h>
#ifdef __UCLIBC_HAS_XLOCALE__
#include <xlocale.h>
#endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
/* TODO: clean up the following... */
#endif /* defined(L_strxfrm) || defined(L_strxfrm_l) */
-libc_hidden_proto(__global_locale)
-
#if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
libc_hidden_proto(wcscoll_l)
libc_hidden_proto(fprintf)
libc_hidden_proto(strsignal)
-libc_hidden_proto(stderr)
/* TODO: make this threadsafe with a reentrant version of strsignal? */
/* Update __curbrk and return cleanly. */
mov $31, $0
-$ok: stq $16, HIDDEN_JUMPTARGET(__curbrk)
+$ok: stq $16, __curbrk
addq $30, 8, $30
ret
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
#include <sys/param.h>
extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
/* Return the system page size. */
/* couldn't make __getpagesize hidden, because shm.h uses it in a macro */
/* Defined in brk.c. */
extern void *__curbrk;
-libc_hidden_proto(__curbrk)
/* Extend the process's data space by INCREMENT.
If INCREMENT is negative, shrink data space by - INCREMENT.
#include <errno.h>
#include "sysdep.h"
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(brk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(sbrk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
#include <unistd.h>
#include <sys/syscall.h>
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
#define __NR__brk __NR_brk
attribute_hidden _syscall1(void *, _brk, void *, ptr);
libc_hidden_proto(brk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(sbrk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int
brk (void *addr)
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
.align 8
__curbrk:
data8 0
-libc_hidden_data_def(__curbrk)
weak_alias (__curbrk, ___brk_addr)
.regstk 1, 0, 0, 0
DO_CALL(__NR_brk)
cmp.ltu p6, p0 = ret0, in0
- addl r9 = @ltoff(HIDDEN_JUMPTARGET(__curbrk)), gp
+ addl r9 = @ltoff(__curbrk), gp
;;
ld8 r9 = [r9]
(p6) mov ret0 = ENOMEM
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(brk)
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
-
int brk (void *addr)
{
#else
.comm __curbrk, 4,4
#endif
-libc_hidden_data_def(__curbrk)
.text
.globl brk
mflr r4
bl _GLOBAL_OFFSET_TABLE_@local-4
mflr r5
- lwz r5,HIDDEN_JUMPTARGET(__curbrk)@got(r5)
+ lwz r5,__curbrk@got(r5)
mtlr r4
stw r3,0(r5)
#else
- lis r4,HIDDEN_JUMPTARGET(__curbrk)@ha
- stw r3,HIDDEN_JUMPTARGET(__curbrk)@l(r4)
+ lis r4,__curbrk@ha
+ stw r3,__curbrk@l(r4)
#endif
cmplw r6,r3
addi r1,r1,16
#include <unistd.h>
#include <sys/syscall.h>
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
#define __NR__brk __NR_brk
attribute_hidden _syscall1(void *, _brk, void *, ptr);
libc_hidden_proto(brk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(sbrk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
#include <unistd.h>
#include <sys/syscall.h>
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
#define __NR__brk __NR_brk
attribute_hidden _syscall1(void *, _brk, void *, ptr);
libc_hidden_proto(brk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(sbrk)
extern void * __curbrk;
-libc_hidden_proto(__curbrk)
extern int __init_brk (void);
libc_hidden_proto(__init_brk)
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
#include <sys/syscall.h>
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = NULL;
-libc_hidden_data_def(__curbrk)
libc_hidden_proto(brk)
int
libc_hidden_proto(brk)
/* This must be initialized data because commons can't have aliases. */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
int brk (void *addr)
{
libc_hidden_proto(mmap)
libc_hidden_proto(munmap)
libc_hidden_proto(getenv)
-libc_hidden_proto(__environ)
/**********************************************************************/
#if defined(__ARCH_USE_MMU__) || defined(__UCLIBC_UCLINUX_BROKEN_MUNMAP__)
libc_hidden_proto(strncmp)
libc_hidden_proto(getenv)
libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
/* For communication from `getopt' to the caller.
When `getopt' finds an option that takes an argument,
libc_hidden_proto(fputc)
libc_hidden_proto(putc)
libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdin)
-libc_hidden_proto(stderr)
/* It is desirable to use this bit on systems that have it.
The only bit of terminal state we want to twiddle is echoing, which is
libm_hidden_proto(copysign)
libm_hidden_proto(matherr)
libm_hidden_proto(rint)
-libm_hidden_proto(_LIB_VERSION)
#ifndef _USE_WRITE
#include <stdio.h> /* fputs(), stderr */
/*
* define and initialize _LIB_VERSION
*/
-libm_hidden_proto(_LIB_VERSION)
#ifdef _POSIX_MODE
_LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
#else
#endif
#endif
#endif
-libm_hidden_data_def(_LIB_VERSION)