<feed xmlns='http://www.w3.org/2005/Atom'>
<title>system_core/libsysutils, branch replicant-10</title>
<subtitle>Fork of system/core
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/'/>
<entry>
<title>core: mark libsysutils and libdiskconfig recovery_available</title>
<updated>2020-04-06T17:04:18+00:00</updated>
<author>
<name>Alessandro</name>
<email>ales.astone@gmail.com</email>
</author>
<published>2020-04-06T17:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=b4c666471898ccb0410daf7e116cb700f9760a6b'/>
<id>b4c666471898ccb0410daf7e116cb700f9760a6b</id>
<content type='text'>
Change-Id: I4e64c6d3951dac4a424617d8fdf6d37962d3b4f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I4e64c6d3951dac4a424617d8fdf6d37962d3b4f2
</pre>
</div>
</content>
</entry>
<entry>
<title>Make the SocketListener control pipe O_CLOEXEC.</title>
<updated>2019-05-09T04:02:57+00:00</updated>
<author>
<name>Lorenzo Colitti</name>
<email>lorenzo@google.com</email>
</author>
<published>2019-04-10T03:01:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=f38e182fbfb0dbdde24c8d7a8c653d2046d12d39'/>
<id>f38e182fbfb0dbdde24c8d7a8c653d2046d12d39</id>
<content type='text'>
Children of processes that use SocketListener should not be able
to stop the SocketListener.

Test: builds, boots
Test: atest libsysutils_tests
Test: atest --test-mapping system/netd
Bug: 131268436
Signed-off-by: Maciej Żenczykowski &lt;maze@google.com&gt;
Change-Id: I64898d9966f62004468b8e8a43b59be4a81a8cc4
Merged-In: I64898d9966f62004468b8e8a43b59be4a81a8cc4
(cherry picked from commit dae0195380686dbec450e298f4acf47b5f9576e6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Children of processes that use SocketListener should not be able
to stop the SocketListener.

Test: builds, boots
Test: atest libsysutils_tests
Test: atest --test-mapping system/netd
Bug: 131268436
Signed-off-by: Maciej Żenczykowski &lt;maze@google.com&gt;
Change-Id: I64898d9966f62004468b8e8a43b59be4a81a8cc4
Merged-In: I64898d9966f62004468b8e8a43b59be4a81a8cc4
(cherry picked from commit dae0195380686dbec450e298f4acf47b5f9576e6)
</pre>
</div>
</content>
</entry>
<entry>
<title>Enlarge cmd buffer size of FrameworkListener</title>
<updated>2019-03-21T15:09:16+00:00</updated>
<author>
<name>Luke Huang</name>
<email>huangluke@google.com</email>
</author>
<published>2019-03-12T10:05:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=9f409f2e4c6e420ecce745868625d10a9b74dd33'/>
<id>9f409f2e4c6e420ecce745868625d10a9b74dd33</id>
<content type='text'>
Only Netd and Logd use FrameworkListener currently.
Run realted test to ensure anything are still fine.

Bug: 126307309
Test: built, flashed, booted
      system/netd/tests/runtests.sh pass
      atest CtsLogdTestCases

Change-Id: Iacd0cc13f23f457a0868a8a706080c3edc9a3cbd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only Netd and Logd use FrameworkListener currently.
Run realted test to ensure anything are still fine.

Bug: 126307309
Test: built, flashed, booted
      system/netd/tests/runtests.sh pass
      atest CtsLogdTestCases

Change-Id: Iacd0cc13f23f457a0868a8a706080c3edc9a3cbd
</pre>
</div>
</content>
</entry>
<entry>
<title>Refactor OWNERS files for Android Core Networking</title>
<updated>2019-02-14T06:13:53+00:00</updated>
<author>
<name>junyulai</name>
<email>junyulai@google.com</email>
</author>
<published>2019-02-12T05:39:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=54302442e2369986b0fceffe2208da8ee793f1e8'/>
<id>54302442e2369986b0fceffe2208da8ee793f1e8</id>
<content type='text'>
Bug: 120829091
Test: build/make/tools/checkowners.py -c -v path/OWNERS
Change-Id: I0b9dd6a6c01e46d887d1161179ca3791f461dce6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 120829091
Test: build/make/tools/checkowners.py -c -v path/OWNERS
Change-Id: I0b9dd6a6c01e46d887d1161179ca3791f461dce6
</pre>
</div>
</content>
</entry>
<entry>
<title>libsysutils can be linked statically</title>
<updated>2018-12-06T03:32:49+00:00</updated>
<author>
<name>Mike Yu</name>
<email>yumike@google.com</email>
</author>
<published>2018-12-05T11:53:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=c987859c702c2f6e299774cf7ab705945e0bd6ab'/>
<id>c987859c702c2f6e299774cf7ab705945e0bd6ab</id>
<content type='text'>
Let libsysutils able to be statically linked by libnetd_resolv to
minimize the dependence on system ABI.

Test: m libsysutils
Change-Id: Ideb322dbc8d594a8a37d64f8140bc37090a4e238
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Let libsysutils able to be statically linked by libnetd_resolv to
minimize the dependence on system ABI.

Test: m libsysutils
Change-Id: Ideb322dbc8d594a8a37d64f8140bc37090a4e238
</pre>
</div>
</content>
</entry>
<entry>
<title>Suppress implicit-fallthrough warning.</title>
<updated>2018-10-10T21:39:02+00:00</updated>
<author>
<name>Chih-Hung Hsieh</name>
<email>chh@google.com</email>
</author>
<published>2018-10-10T21:39:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=e6e2b3cda4d702cffd887ec653d4435b9fa77241'/>
<id>e6e2b3cda4d702cffd887ec653d4435b9fa77241</id>
<content type='text'>
Bug: 112564944
Test: make checkbuild
Change-Id: I2bcfd08ec62f6d5953a9e25dbeaa42ffefda6d1c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 112564944
Test: make checkbuild
Change-Id: I2bcfd08ec62f6d5953a9e25dbeaa42ffefda6d1c
</pre>
</div>
</content>
</entry>
<entry>
<title>Suppress implicit-fallthrough warnings.</title>
<updated>2018-09-17T16:50:11+00:00</updated>
<author>
<name>Chih-Hung Hsieh</name>
<email>chh@google.com</email>
</author>
<published>2018-09-13T18:08:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=502f4864d6c92fce4cb0e4f7f2b12d7124da902b'/>
<id>502f4864d6c92fce4cb0e4f7f2b12d7124da902b</id>
<content type='text'>
Add FALLTHROUGH_INTENDED for clang compiler.

Bug: 112564944
Test: build with global -Wimplicit-fallthrough.
Change-Id: I40f8bbf94e207c9dd90921e9b762ba51abab5777
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add FALLTHROUGH_INTENDED for clang compiler.

Bug: 112564944
Test: build with global -Wimplicit-fallthrough.
Change-Id: I40f8bbf94e207c9dd90921e9b762ba51abab5777
</pre>
</div>
</content>
</entry>
<entry>
<title>Delete sysutils/List.h</title>
<updated>2018-09-05T12:07:23+00:00</updated>
<author>
<name>Bernie Innocenti</name>
<email>codewiz@google.com</email>
</author>
<published>2018-09-05T07:52:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=11b33690e446897d228dd22273483a5901d47b66'/>
<id>11b33690e446897d228dd22273483a5901d47b66</id>
<content type='text'>
Convert the last user to a regular std::vector, and then put List.h out
of its misery.

Turns out there's another copy of this ancient header:
system/core/libutils/include/utils/List.h. This one is included in
various places, but most don't actually use it. There seems to
be a case for a tool to detect unused headers...

Test: m
Change-Id: Ie457bf5e06f6082537f5de2e1fefe7f05a1f0792
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Convert the last user to a regular std::vector, and then put List.h out
of its misery.

Turns out there's another copy of this ancient header:
system/core/libutils/include/utils/List.h. This one is included in
various places, but most don't actually use it. There seems to
be a case for a tool to detect unused headers...

Test: m
Change-Id: Ie457bf5e06f6082537f5de2e1fefe7f05a1f0792
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Use multiple patterns and emails in per-file syntax."</title>
<updated>2018-08-28T17:03:44+00:00</updated>
<author>
<name>Chih-hung Hsieh</name>
<email>chh@google.com</email>
</author>
<published>2018-08-28T17:03:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=33f91de2c60370edb336045aa9b65bb3cf099341'/>
<id>33f91de2c60370edb336045aa9b65bb3cf099341</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SocketListener: use poll() instead of select()</title>
<updated>2018-08-27T20:52:56+00:00</updated>
<author>
<name>Bernie Innocenti</name>
<email>codewiz@google.com</email>
</author>
<published>2018-05-23T10:02:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/replicant-next/system_core/commit/?id=ca76859aca4b7c69139e05014c5211781cfa3d56'/>
<id>ca76859aca4b7c69139e05014c5211781cfa3d56</id>
<content type='text'>
FD_SET is limited to 1024 file descriptors in Linux, which causes
processes with too many open files or connections to crash:

  FORTIFY: FD_ISSET: file descriptor 1024 &gt;= FD_SETSIZE 128

The fix we used elsewhere is replacing select() with poll(), but in the
case of SocketListener we additionally need to replace the SocketClient
list with a map indexed by fd in order to avoid quadratic behavior on
each poll() wakeup.

Bug: 79838856
Test: device boots and appears to work normally, tests pass
Change-Id: I4a8f1804fa990d3db3a2c96b9acd60b2c7135950
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
FD_SET is limited to 1024 file descriptors in Linux, which causes
processes with too many open files or connections to crash:

  FORTIFY: FD_ISSET: file descriptor 1024 &gt;= FD_SETSIZE 128

The fix we used elsewhere is replacing select() with poll(), but in the
case of SocketListener we additionally need to replace the SocketClient
list with a map indexed by fd in order to avoid quadratic behavior on
each poll() wakeup.

Bug: 79838856
Test: device boots and appears to work normally, tests pass
Change-Id: I4a8f1804fa990d3db3a2c96b9acd60b2c7135950
</pre>
</div>
</content>
</entry>
</feed>
