Elliott Hughes
3cfb52aab2
Add GNU extensions mempcpy and wmemcpy.
...
Used by elfutils. On the bright side, they stopped using __mempcpy.
Bug: 18374026
Change-Id: Id29bbe6ef1c5ed5a171bb6c32182f129d8332abb
2015-02-18 22:02:56 -08:00
Yabin Cui
4add77b93c
Merge "Make gets() deprecated."
2015-02-18 21:33:02 +00:00
Yabin Cui
913fcb274f
Make gets() deprecated.
...
gets is already deprecated in glibc. Others with __warnattr are not deprecated.
Change-Id: I80a276d2b5964630218be47f1c94b146c0d31151
2015-02-18 12:20:32 -08:00
Elliott Hughes
1dbc6bb025
Merge "Implement _FILE_OFFSET_BITS (mostly)."
2015-02-18 18:01:05 +00:00
Elliott Hughes
68dc20d411
Implement _FILE_OFFSET_BITS (mostly).
...
I still don't think we can make stdio's fseeko and ftello work, but we can
have everything else, and very few programs use fseeko/ftello (and they can
just refrain from using _FILE_OFFSET_BITS and be no worse off than they are
today).
Bug: 11865851
Change-Id: Ic3cb409aae6713f4b345de954bcc4241fcd969ec
2015-02-17 19:54:43 -08:00
Yabin Cui
0e61c2c0ea
Merge "Revert "Move use of __warnattr to __deprecated.""
2015-02-17 23:56:29 +00:00
Yabin Cui
784de4e50a
Revert "Move use of __warnattr to __deprecated."
...
This reverts commit 4645c4f62df49d1ece5aabb7c9fa44ca34d30272.
Change-Id: I6c1062d54a4e2c4f41ce7a403e4e7840e6339146
2015-02-17 23:54:40 +00:00
Yabin Cui
b5c2379687
Merge "Move use of __warnattr to __deprecated."
2015-02-17 23:10:31 +00:00
Yabin Cui
4645c4f62d
Move use of __warnattr to __deprecated.
...
clang don't support warning attribute. Replacing warning attriubte with
deprecated attribute can achieve the same behavior whether compiled by
gcc or clang.
Bug: 19340053
Change-Id: I064432b81cf55212458edbc749eb72dc15a810fb
2015-02-17 14:14:45 -08:00
Yabin Cui
62533de98e
Change getgrent error declaration message to proper style.
...
Bug: 19340053
Change-Id: I9c47a2016f356d171a5f2082acb8391d81e019b2
2015-02-17 11:33:42 -08:00
Elliott Hughes
92b9c6ff3e
POSIX says flock is in <sys/file.h>, not <unistd.h>.
...
Bug: 19392265
Change-Id: I14d0b56883f0354e13db04a1d140b8f60dae08d7
2015-02-17 09:08:24 -08:00
Yabin Cui
4181cc691e
Merge "Declare getgrent/setgrent/endgrent as missing."
2015-02-14 02:37:19 +00:00
Dmitriy Ivanov
13ed3f0af1
Add missing SHT_LOOS/SHT_HIOS values
...
Change-Id: Ib0b0987a7e85af7863c6ef894263b5980e32344d
2015-02-13 16:34:38 -08:00
Yabin Cui
c9d09431b9
Declare getgrent/setgrent/endgrent as missing.
...
Bug: 19340053
Change-Id: I42bfeda95e6f262e2e74ab47336ea346c2de7e4a
2015-02-13 10:52:35 -08:00
Yabin Cui
ee17e88004
Merge "Define MAXHOSTNAMELEN explicitly in source files."
2015-02-10 17:51:33 +00:00
Yabin Cui
2d8f9b5aea
Define MAXHOSTNAMELEN explicitly in source files.
...
Bug: 19093777
Bug: 19092844
Change-Id: I0778507ca2d5c008abb9a6d6315d0909263a8817
2015-02-09 19:56:47 -08:00
Yabin Cui
e375ecaa39
Merge "Switch pthread_cond_t to <stdatomic.h>."
2015-02-10 00:10:45 +00:00
Yabin Cui
e5f816c017
Switch pthread_cond_t to <stdatomic.h>.
...
Bug: 17574458
Change-Id: Ic7f79861df4fe751cfa6c6b20b71123cc31e7114
2015-02-09 15:54:22 -08:00
Yabin Cui
a4fc89badf
Merge "Stop including <linux/param.h> in <sys/param.h>."
2015-02-09 19:46:46 +00:00
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
Yabin Cui
7e1b3d3e68
Merge "Switch sem_t from bionic atomics to stdatomic.h."
2015-02-04 02:42:16 +00:00
Yabin Cui
a3d97da4c5
Switch sem_t from bionic atomics to stdatomic.h.
...
Bug: 17572887
Change-Id: If66851ba9b831cdd698b9f1303289bb14448bd03
2015-02-03 16:35:57 -08:00
Hans Boehm
d57bf449fe
Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."
2015-02-03 02:42:53 +00:00
Yabin Cui
86fc96f733
Switch pthread_mutex_t from bionic atomics to <stdatomic.h>.
...
Bug: 17574456
Change-Id: I5ce3d3dc07e804e9ce55c42920f47531b56e04de
2015-02-02 15:00:01 -08:00
Elliott Hughes
1ed337dbdf
Clean up SEEK_SET definitions.
...
If we lose the #ifndef, the compiler will tell us if the definitions
of SEEK_SET and friends ever get out of sync.
Change-Id: I357cabec7c9cd451c604342344f210bba20fb6bc
2015-02-02 14:02:09 -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