auto import from //branches/cupcake/...@126645

This commit is contained in:
The Android Open Source Project 2009-01-15 16:12:07 -08:00
parent 6d6c82c7a0
commit e5cc1f386b
14 changed files with 39 additions and 13 deletions

View File

@ -26,7 +26,7 @@
* SUCH DAMAGE.
*/
#include <errno.h>
#include <sys/tls.h>
#include <bionic_tls.h>
volatile int* __errno( void )
{

View File

@ -36,7 +36,7 @@
#include "atexit.h"
#include "libc_init_common.h"
#include <sys/tls.h>
#include <bionic_tls.h>
#include <errno.h>
extern void _init(void);

View File

@ -55,7 +55,7 @@
#include "atexit.h"
#include "libc_init_common.h"
#include <sys/tls.h>
#include <bionic_tls.h>
#include <errno.h>
__noreturn void __libc_init(uintptr_t *elfdata,

View File

@ -33,7 +33,7 @@
#include <stdlib.h>
#include <errno.h>
#include <sys/atomics.h>
#include <sys/tls.h>
#include <bionic_tls.h>
#include <sys/mman.h>
#include <pthread.h>
#include <time.h>

View File

@ -41,6 +41,16 @@
#include <sys/cdefs.h>
#include <sys/_types.h>
/* va_list and size_t must be defined by stdio.h according to Posix */
#define __need___va_list
#include <stdarg.h>
/* note that this forces stddef.h to *only* define size_t */
#define __need_size_t
#include <stddef.h>
#include <stddef.h>
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE
#include <sys/types.h> /* XXX should be removed */
#endif

View File

@ -29,6 +29,13 @@
#define _STDLIB_H_
#include <sys/cdefs.h>
/* wchar_t is required in stdlib.h according to POSIX.
* note that defining __need_wchar_t prevents stddef.h
* to define all other symbols it does normally */
#define __need_wchar_t
#include <stddef.h>
#include <stddef.h>
#include <string.h>
#include <alloca.h>

View File

@ -1 +0,0 @@
#include <sys/atomics.h>

View File

@ -1 +0,0 @@
#include <sys/tls.h>

View File

@ -77,6 +77,10 @@ extern int lstat(const char *, struct stat *);
extern int mknod(const char *, mode_t, dev_t);
extern mode_t umask(mode_t);
#define stat64 stat
#define fstat64 fstat
#define lstat64 lstat
static __inline__ int mkfifo(const char *__p, mode_t __m)
{
return mknod(__p, (__m & ~S_IFMT) | S_IFIFO, (dev_t)0);

View File

@ -30,11 +30,17 @@
#include <sys/cdefs.h>
#include <stdio.h>
/* wchar_t is required in stdlib.h according to POSIX */
#define __need___wchar_t
#include <stddef.h>
#include <stdarg.h>
#include <time.h>
#include <malloc.h>
#include <stddef.h>
/* IMPORTANT: Any code that relies on wide character support is essentially
* non-portable and/or broken. the only reason this header exist
* is because I'm really a nice guy. However, I'm not nice enough
@ -44,11 +50,6 @@
__BEGIN_DECLS
#ifndef __cplusplus
/* wchar_t is a builtin keyword of g++ */
typedef unsigned char wchar_t;
#endif
typedef int wint_t;
typedef struct { int dummy; } mbstate_t;

View File

@ -28,7 +28,7 @@
#include <unistd.h>
#include <sys/sysconf.h>
#include <limits.h>
#include <sys/tls.h>
#include <bionic_tls.h>
#include <asm/page.h>
#include <stdio.h> /* for FOPEN_MAX */
#include <errno.h>

View File

@ -18,6 +18,10 @@ LOCAL_LDFLAGS := -Wl,-Ttext,$(LINKER_TEXT_BASE)
LOCAL_CFLAGS += -DPRELINK -DLINKER_TEXT_BASE=$(LINKER_TEXT_BASE) -DLINKER_AREA_SIZE=$(LINKER_AREA_SIZE)
# we need to access the Bionic private header <bionic_tls.h>
# in the linker
LOCAL_CFLAGS += -I$(LOCAL_PATH)/../libc/private
ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DANDROID_ARM_LINKER
else

View File

@ -14,7 +14,9 @@
#include <sys/mman.h>
#include <sys/atomics.h>
#include <sys/tls.h>
/* special private C library header - see Android.mk */
#include <bionic_tls.h>
#include "linker.h"
#include "linker_debug.h"