Refresh 64-bit headers/libs (WW36)

sync to lmp-dev/bionic 1e010d60397db706cd3d1c4d5701a2bced441aa8

Change-Id: Ieed39d41eb0655d7c8f027bd038be1753a9e56a6
This commit is contained in:
Andrew Hsieh
2014-08-18 02:17:03 +08:00
parent 72bd04795b
commit 3f53b6f2fe
59 changed files with 343 additions and 268 deletions

View File

@@ -58,10 +58,17 @@ typedef off_t fpos_t; /* stdio file position type */
*/
/* stdio buffers */
#if defined(__LP64__)
struct __sbuf {
unsigned char* _base;
size_t _size;
};
#else
struct __sbuf {
unsigned char *_base;
int _size;
};
#endif
/*
* stdio state variables.
@@ -94,8 +101,13 @@ typedef struct __sFILE {
unsigned char *_p; /* current position in (some) buffer */
int _r; /* read space left for getc() */
int _w; /* write space left for putc() */
#if defined(__LP64__)
int _flags; /* flags, below; this FILE is free if 0 */
int _file; /* fileno, if Unix descriptor, else -1 */
#else
short _flags; /* flags, below; this FILE is free if 0 */
short _file; /* fileno, if Unix descriptor, else -1 */
#endif
struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */
int _lbfsize; /* 0 or -_bf._size, for inline putc */