dca34b591430a1f1c1aabab1beb5cd6e5bd4d2f8 |
|
03-Jul-2013 |
Lorenzo Colitti <lorenzo@google.com> |
Add a definition for IPPROTO_ICMPV6. This will allow us to write a CTS test for ICMPv6 datagram socket support. Bug: 9469865 Change-Id: I3da0918fa0797e7319f8b2f71856f455858bdc18
|
9e0ca15905414dd4cbfe73844b0266df6eb15250 |
|
19-Apr-2013 |
Alex Klyubin <klyubin@google.com> |
Add kernel CAP_ constants to libcore.io.OsConstants. Change-Id: I8fecdc55b2cf0041ceed643eb48df53d22ecd600
|
f4a4259d8a548ab172ca98b702feafcd0ceb1411 |
|
22-Mar-2013 |
Elliott Hughes <enh@google.com> |
Remove EWOULDBLOCK from libcore. On Linux, EWOULDBLOCK == EAGAIN, and having a synonym is just confusing. Change-Id: If53c4ba6d82eed2236dec12003c4c9512c4ecbee
|
482a3fc5635ac431b8a7476d7fe3397af4c2e8ec |
|
21-Mar-2013 |
Elliott Hughes <enh@google.com> |
Add support for Unix domain sockets. Bug: 6513075 Change-Id: I0b0166f59745ac8175b39d7796c093041b2df4fd
|
dd538c3bbd85d14ccae83ab3b384b2ebcc4a4c13 |
|
18-Sep-2012 |
Kenny Root <kroot@google.com> |
OsConstants: add O_NOFOLLOW Change-Id: I91619191d83ca8e0a13d30588f761e4defefc30d
|
70c820401677ca251ad09ac64cc23c760764e75d |
|
12-May-2011 |
Elliott Hughes <enh@google.com> |
Expose poll(2) and reimplement java.nio.channels.Selector. This also adds UnsafeArrayList<T>, which is like ArrayList but lets you access the underlying array (as opposed to ArrayList.toArray which creates a copy). Bug: 3107501 Change-Id: I8dc570a9fd7951b1435047017ea7aa19f8f8fc53
|
1c039d71d3879f39e3a75b8788e656f7b4f88f08 |
|
05-May-2011 |
Elliott Hughes <enh@google.com> |
Add getaddrinfo(2). This only supports the "node" side of getaddrinfo(2), not the "service" side. There's also no support for AI_CANONNAME, so we currently return InetAddress[] rather than anything equivalent to C's linked list of struct addrinfo. Bug: 3107501 Change-Id: I8cf6baa3027a0fa05ac6e2f8fcc1dd8b576ff8c4
|
a5fb706fe4a6dbeaaf4cb1f8bbc2c68b0a2a3f3c |
|
29-Apr-2011 |
Elliott Hughes <enh@google.com> |
Add kill(2) to Libcore.os. Also kick the tires of ProcessManager, since we'll probably have to do some unrelated work in here soon. Bug: 3107501 Change-Id: I132c1e09d21ffcf0d5ea4aab93f04a36c1b30eaf
|
a37e971343883bb582a93ffbd9f0ba84f10e55ba |
|
21-Apr-2011 |
Elliott Hughes <enh@google.com> |
Rewrite NetworkInterface. This is part of the POSIX work, but also fixes a bug that asked for down interfaces to be returned. Additionally, I found a few bugs while rewriting this code. Most notably, we used to return a bogus broadcast address for the loopback interface. The only difference I notice between us and the RI when running on the host is that the RI claims that 127.0.0.1 has a prefix length of 0 rather than 8. I believe that we are correct on this issue. Bug: 4082343, 3107501 Change-Id: I677e0698e3a86676b4332b5d56fe514a99c3ddc0
|
4f11ebea266eada830d507b8f011e811a8e5d7bc |
|
20-Apr-2011 |
Elliott Hughes <enh@google.com> |
Add getnameinfo(3) (and gai_strerror(3)). There's quite a large corresponding change to InetAddress, plus I've changed the documentation for all the Permission classes to match the handful that we'd already documented as legacy cruft. Bug: http://b/3107501 Change-Id: Ia67aba79f0ab13e64085bd4a2df20ad0776bcc5b
|
b974666d79ebc392b37ec1ae83aae57ae6331c08 |
|
06-Apr-2011 |
Elliott Hughes <enh@google.com> |
Finish setsockopt(2). Bug: 3107501 Change-Id: I8f026dcba78acb555834bdcc594e114238f3cc52
|
0a9d1ee45a9884a9616624d747172e18734e8fe0 |
|
31-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add getsockname(2) and getsockopt(2). Bug: 3107501 Change-Id: Ibb0d5a576ecb46e51dbda6051776145eec9e7fe1
|
454a95f6a28855aa3c88d168b15a45bf315efc99 |
|
30-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add socket(2) and start adding setsockopt(2). I've added just enough setsockopt to keep the hack from our old socket creation code. More later (but not necessarily right away). Bug: 3107501 Change-Id: Id57bdd3c760bc58ed79d675b268c55493cbc24c8
|
461d0d860814c68154d8dd06d24f94118f33d28a |
|
29-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add ioctl(2) for int*. I'm not adding the "struct ifreq" stuff yet because that's really hairy and I plan on rewriting the NetworkInterface implementation anyway, so it'll mainly be based on /proc. With any luck, we won't even need those other ioctls then. I'm not sure _this_ ioctl is a good idea, but it does seem like a slight improvement on the old code, and we can always move it back out if/when these APIs become more public. Bug: 3107501 Change-Id: Iceac15e4a107c33bfc8795976a747c2ffa59a183
|
fc549a0b0388987b26dea524894d75a63d14783b |
|
25-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add fcntl(2). I initially used overloading, but that actually decreases safety in practice because which overload you need is (uniquely) determined by the specific command you're issuing. Forcing callers to explicitly state what they're doing works around this. As it was, I had to use strace(1) to find my bug. Bug: 3107501 Change-Id: Ia54b72dd6453372922f01b22f382eb93ac91aaa7
|
6fc1a0e1e68dc2e0d12341548e58fa7f1c5dafc4 |
|
18-Mar-2011 |
Elliott Hughes <enh@google.com> |
Add sysconf(3). This gives us a getpagesize(3) replacement right now, and will let us implement Runtime.availableProcessors here rather than in the VM in a later change. Bug: 3107501 Change-Id: I6fc1f83d36b026fbe8d37eca525550479677f2de
|
5b6296d6bf06784362394e1c4b25df316d140771 |
|
18-Mar-2011 |
Elliott Hughes <enh@google.com> |
Also give errno names (like EINVAL) when we know them. Bug: 3107501 Change-Id: I333f1efd72a2969ce87a0e7af45b0d47e50d5b00
|
bdb717ae237f4bb9b14b61a2d24150106ac8e6c7 |
|
18-Mar-2011 |
Elliott Hughes <enh@google.com> |
Simplify the constant initialization. Bug: 3107501 Change-Id: I07b035482de00cb39c735e3acd9387fcbc22b30a
|
2822a84736c46282ee3a12983340f594e38eac5a |
|
16-Mar-2011 |
Elliott Hughes <enh@google.com> |
More POSIX constants. This covers <errno.h>, <netinet/in.h>, <stdlib.h>, <sys/mman.h> (minus some POSIX constants missing in bionic), <sys/socket.h> (minus the getsockopt/setsockopt constants), <sys/stat.h>, <sys/wait.h>, and <unistd.h>. Bug: 3107501 Change-Id: I83d5beeb74cce31f3fbac1e1b350d73df7cb4b9d
|
cdf7a1f942469221bcfd63d9cdf71851b011eaf0 |
|
16-Mar-2011 |
Elliott Hughes <enh@google.com> |
Expose POSIX constants. And use them, too. This patch is a little confusing because we already had constants in Java that were using the POSIX names but that didn't actually correspond to the constants whose names they'd stolen. Ugh. Bug: 3107501 Change-Id: Ib64a109c9340b0ecdf80bec91074206c001f455a
|