Yabin Cui
5e52226f02
Stop including <linux/param.h> in <sys/param.h>.
...
Bug: 19092844
Change-Id: I1a4a0c84a196a187ea32e58491de744cf3c0f404
2015-02-04 14:59:58 -08:00
Elliott Hughes
4674e3899a
Fortify poll and ppoll.
...
And remove the test for FD_ZERO fortification, which never made much
sense anyway.
Change-Id: Id1009c5298d461fa4722189e8ecaf22f0c529536
2015-02-02 09:15:19 -08:00
Elliott Hughes
09c3382433
Merge "Break two incorrect transitive includes."
2015-01-31 04:18:10 +00:00
Dan Albert
94335cc8e2
Merge "Put back inline definitions if using an old API."
2015-01-30 17:18:49 +00:00
Elliott Hughes
5038b19cef
Break two incorrect transitive includes.
...
Change-Id: I95519caa5258cf5c6b8053f1c7e08ade2a824e49
2015-01-29 20:12:13 -08:00
Dan Albert
466dbe4444
Put back inline definitions if using an old API.
...
All these inlines were turned in to out of line definitions in L.
This brings us a step closer to being able to just use the current
bionic headers for the NDK, rather than having many old versions of
them.
Change-Id: Ie010bc727d78d3742abc577c70f6578db2e68625
2015-01-29 17:30:40 -08:00
Dan Albert
cd1959b0c5
Merge "Add primitive CPPLINT.cfg."
2015-01-29 21:54:55 +00:00
Dan Albert
6ac4dd8ba9
Add primitive CPPLINT.cfg.
...
We'll add more things to this as we discover other warnings we don't
care about.
Change-Id: I408f688827cab0f74e055d8f1778069163663f0b
2015-01-29 11:41:59 -08:00
Elliott Hughes
a9c3d0569f
Merge "Modify MIPS64 stat structure to match a generic one in AOSP."
2015-01-29 01:31:59 +00:00
Raghu Gandham
86d2feef9f
Modify MIPS64 stat structure to match a generic one in AOSP.
...
The kernel version of the stat structure is used during the syscalls. After the syscall,
the kernel stat structure is converted to match the generic one. Eventually we would like
the generic stat structure and related syscalls be added to MIPS64 kernel, removing the
thunks added to AOSP.
Change-Id: I7764e80278c1cc8254754c3531ec2dda7544a8ec
2015-01-28 16:12:17 -08:00
Yabin Cui
80e6d6d825
Switch pthread_once_t to stdatomic.h.
...
Bug: 17574610
Change-Id: I653f2aa4b5b38dbdaffe4a6c3deccfe6ad3b0e74
2015-01-27 19:49:12 -08:00
Elliott Hughes
76f8916b90
Clean up <stdlib.h> slightly.
...
Interestingly, this mostly involves cleaning up our implementation of
various <string.h> functions.
Change-Id: Ifaef49b5cb997134f7bc0cc31bdac844bdb9e089
2015-01-26 14:28:41 -08:00
Christopher Ferris
419ed122aa
Merge "Update kernel headers to v3.18.3."
2015-01-26 21:27:52 +00:00
Elliott Hughes
b8a8cf0d1a
Add <error.h>.
...
Bug: https://code.google.com/p/android/issues/detail?id=79170
Change-Id: Id91765fac45124545e2674a5b2c814707c1a448b
2015-01-26 11:57:11 -08:00
Christopher Ferris
82d7504cd7
Update kernel headers to v3.18.3.
...
Bug: 19127803
Change-Id: I67fa0832322ddd0032d909476047578be052bcf2
2015-01-26 10:57:07 -08:00
Elliott Hughes
c5dc02a91e
Reduce <stdlib.h> namespace pollution.
...
<stdlib.h> shouldn't drag in all of <string.h>.
Change-Id: I949172f7ff17e329e411e5054e50f79c13775444
2015-01-24 15:22:57 -08:00
Elliott Hughes
6466292a7e
Reduce <signal.h> namespace pollution.
...
<signal.h> shouldn't drag in all of <string.h>.
Change-Id: I57aea36dad5e89ea2f9541c35594ca6225e532be
2015-01-24 14:18:16 -08:00
Elliott Hughes
d309877eee
Say "Bad file descriptor" rather than "Bad file number".
...
This text is actually in POSIX (though it's not mandatory) and it's what glibc
says. Who says "file number" anyway?
Change-Id: Icc91ac24587c2bc692e0b97c19d32ac1bdda4ea7
2015-01-24 13:38:57 -08:00
Andres Morales
9d9ebc5fc9
bionic: libc: Added path to root ramdisk build properties file.
...
Change-Id: Id850e4e5ef4e91cea7ad53f6858886daf660eeec
2015-01-13 18:07:23 -08:00
Yabin Cui
3471fcbb6a
Clean up paths.h.
...
Bug: 18905946
Change-Id: I02cd1ddd5c0b0af165685413bc1fb12ca6bf5f33
2015-01-09 20:04:04 -08:00
Faraz Shahbazker
e247e1c89e
[MIPS64] Add correct mcontext_t for 64-bit MIPS
...
Change-Id: I76d503860d0e1d937b6913bf2c1c6ebb531617da
2015-01-06 07:58:02 -08:00
Elliott Hughes
40360b379c
Remove bogus transitive includes.
...
<signal.h> shouldn't get you the contents of <errno.h>, and <fcntl.h>
shouldn't get you the contents of <unistd.h>.
Change-Id: I347499cd8671bfee98e6b8e875a97cab3a3655d3
2014-12-29 13:29:50 -08:00
Elliott Hughes
0a552407ad
Merge "Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>."
2014-12-29 19:40:45 +00:00
Elliott Hughes
64d8382394
Ensure <fcntl.h> defines the S_* constants from <sys/stat.h>.
...
POSIX says "The <fcntl.h> header shall define the symbolic constants for file
modes for use as values of mode_t as described in <sys/stat.h>".
Needed to build ToT strace.
Change-Id: Ia85a51ef6fd86a48084fe48ce24963000a937d37
2014-12-29 11:14:38 -08:00
Elliott Hughes
998f2d5a50
Remove more BSD cruft from the public headers.
...
Change-Id: I1e3097f745b526db448bf72fbc05fb2ba23929a0
2014-12-19 19:30:11 -08:00
Elliott Hughes
c631bb215e
Merge "Fix the types of some of the struct stat fields."
2014-12-18 23:38:26 +00:00
Elliott Hughes
9257c477ae
Fix the types of some of the struct stat fields.
...
Bug: 17062519
Change-Id: I5207867939f3c2876bf6448e565fa4364aa7e4f0
2014-12-18 15:17:42 -08:00
Elliott Hughes
0c92e8c3d1
Remove bogus #include <endian.h> from <sys/stat.h>.
...
Bug: 17062519
Change-Id: I3dc21ee8b90580f112c73c72aff5d3bec4778026
2014-12-18 15:10:19 -08:00
Elliott Hughes
1c52e6c926
Fix struct stat member types for x86-64.
...
Bug: 17062519
Change-Id: I93b1e8b1d4b6918ab7c3a985e2f7da277077375e
2014-12-18 15:03:33 -08:00
Yabin Cui
370a3e573d
Merge "Sync with upstream for gethnamaddr.c."
2014-12-18 01:06:10 +00:00
Yabin Cui
58d33a51f3
Sync with upstream for gethnamaddr.c.
...
Bug: 18566967
Change-Id: I37e7410226b49eec67614e20b2c1d5e3e47817a5
2014-12-17 16:19:27 -08:00
Elliott Hughes
badd7e1a58
Fix <net/route.h>.
...
Previously it couldn't be included alone. Also add a header and include guard,
and fix its siblings' include guards.
Bug: https://code.google.com/p/android/issues/detail?id=82638
Change-Id: I32139a4bda0a6b015508a2319bf4e1a1453345f2
2014-12-15 18:47:14 -08:00
Yabin Cui
3337435ec8
Merge "Use machine/timespec.h to separate timespec definition."
2014-12-10 19:29:24 +00:00
Yabin Cui
db49903732
Use machine/timespec.h to separate timespec definition.
...
Bug: 18627763
Change-Id: Ib1c406320f0ecc3705d19183a48f986cdf57c279
2014-12-10 06:36:11 +00:00
Elliott Hughes
a381fe8ebc
Fix ptsname(3) and ttyname(3) to use TLS.
...
Be safe by default.
Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
2014-12-09 20:30:23 -08:00
Elliott Hughes
824f914cae
Move BSD stuff together in <sys/endian.h>.
...
Change-Id: I8bb511840f3cd98d5008034e405d82e923bd3203
2014-12-09 19:44:42 -08:00
Elliott Hughes
a7feda3731
<net/route.h> should include IPv6 too.
...
Change-Id: I866097d8468aa8f326117d072444ebbc2a690719
2014-12-09 15:08:24 -08:00
Elliott Hughes
1ec05b7c78
Sync <net/if_types.h> with upstream.
...
Change-Id: I2c2ca47f5a21b78754c03deb3e9467ab79d9d033
2014-12-09 15:03:51 -08:00
Yabin Cui
94926f8cfa
Merge "support _POSIX_REALTIME_SIGNALS"
2014-12-09 20:10:19 +00:00
Yabin Cui
b033761cbf
Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."
2014-12-09 17:51:37 +00:00
Yabin Cui
725756045e
Change _POSIX_CPUTIME macro to make it compitable with glibc.
...
Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
2014-12-09 09:16:11 -08:00
Yabin Cui
634816055f
support _POSIX_REALTIME_SIGNALS
...
Bug: 18489947
Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
2014-12-08 21:52:43 -08:00
Elliott Hughes
56e017306e
Simplify our endian.h implementation.
...
We can rely on the compiler's builtins. Tested on arm, arm64, mips, x86,
and x86-64.
Change-Id: I0f774ed7e85b3c791a3178d8ef17c6500e6a9ace
2014-12-08 20:35:08 -08:00
Tao Bao
2421406711
Merge "Add cache related sysconf queries"
2014-12-05 18:11:53 +00:00
Tao Bao
1f40be97b1
Add cache related sysconf queries
...
Several cache related queries are added, such as
_SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL1_DCACHE_SIZE and etc. For the
moment, we always return 0 for these queries.
Change-Id: I36f67af8128672d8c1eef49d6f2431cca5a94719
2014-12-04 15:24:28 -08:00
Elliott Hughes
9e08a7bbb8
Merge "Restore symbols from <arpa/nameser.h>."
2014-12-04 21:39:58 +00:00
Elliott Hughes
42804c4b30
Restore symbols from <arpa/nameser.h>.
...
Bug: 18627252
Bug: https://code.google.com/p/android/issues/detail?id=81690
Change-Id: I45b6c09cf2b5aabb80900e267d27cc0ec93d4dd8
2014-12-04 12:39:46 -08:00
Yabin Cui
5afae64a1b
implement posix_madvise
...
Bug: 18472477
Change-Id: I8183de6c281acf69ed5f7f88351b056b9827b162
2014-12-04 11:01:28 -08:00
Elliott Hughes
6cbc56b84b
Merge "Implement <pty.h>."
2014-12-04 00:45:42 +00:00
Elliott Hughes
65f0df7873
Implement <pty.h>.
...
Based on the package/apps/Terminal implementation. I'll switch them over
shortly. This also lets us build the toybox version of netcat.
Change-Id: Ia922a100141a67409264b43b937eeca07b21f344
2014-12-03 15:55:34 -08:00