<feed xmlns='http://www.w3.org/2005/Atom'>
<title>replicant/core/libutils/ProcessCallStack.cpp, branch replicant-9</title>
<subtitle>Patches not merged yet, used for building and testing them
</subtitle>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/'/>
<entry>
<title>libutils: include what you use</title>
<updated>2017-04-14T17:06:33+00:00</updated>
<author>
<name>Steven Moreland</name>
<email>smoreland@google.com</email>
</author>
<published>2017-04-13T22:17:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=8da9613b3f866b298bee1236b80bbbc63c554fdf'/>
<id>8da9613b3f866b298bee1236b80bbbc63c554fdf</id>
<content type='text'>
These includes are included transitively by liblog, but not by the VNDK
version of liblog.

Bug: 33241851
Test: links with BOARD_VNDK_VERSION := current
Change-Id: Ide4aee3cacad2a2bf6bd0cbdf0254c6c245f4020
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These includes are included transitively by liblog, but not by the VNDK
version of liblog.

Bug: 33241851
Test: links with BOARD_VNDK_VERSION := current
Change-Id: Ide4aee3cacad2a2bf6bd0cbdf0254c6c245f4020
</pre>
</div>
</content>
</entry>
<entry>
<title>Add missing includes.</title>
<updated>2017-03-10T17:05:30+00:00</updated>
<author>
<name>Steven Moreland</name>
<email>smoreland@google.com</email>
</author>
<published>2017-03-10T16:58:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=d21cfab2446f07945b822641681e6b59c839158d'/>
<id>d21cfab2446f07945b822641681e6b59c839158d</id>
<content type='text'>
Includes are transitively imported by &lt;string&gt; in String8.h + String16.h
but that include is being removed.

Test: pass
Change-Id: Ide5c011b40b4a4f031dd26ead08b5c8d5d299693
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Includes are transitively imported by &lt;string&gt; in String8.h + String16.h
but that include is being removed.

Test: pass
Change-Id: Ide5c011b40b4a4f031dd26ead08b5c8d5d299693
</pre>
</div>
</content>
</entry>
<entry>
<title>clean-up libutils includes</title>
<updated>2017-03-03T22:47:47+00:00</updated>
<author>
<name>Mathias Agopian</name>
<email>mathias@google.com</email>
</author>
<published>2017-02-28T23:06:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=22dbf3947fedf988e714a4703ddf85fc41413f90'/>
<id>22dbf3947fedf988e714a4703ddf85fc41413f90</id>
<content type='text'>
moved Foo.h as first include of Foo.cpp, and
removed redundant includes.

Made NativeHandle non virtual.


Test: run &amp; compile
Bug: n/a

Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
moved Foo.h as first include of Foo.cpp, and
removed redundant includes.

Made NativeHandle non virtual.


Test: run &amp; compile
Bug: n/a

Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a</pre>
</div>
</content>
</entry>
<entry>
<title>Use readdir instead of readdir_r.</title>
<updated>2016-09-28T21:04:12+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2016-09-28T20:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=9f206938edc2243e4e4f5de74d67e15befd95576'/>
<id>9f206938edc2243e4e4f5de74d67e15befd95576</id>
<content type='text'>
http://elliotth.blogspot.com/2012/10/how-not-to-use-readdirr3.html

Test: boots.
Change-Id: If75532e24fe4d17743bf8e8c9590156dee378a63
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
http://elliotth.blogspot.com/2012/10/how-not-to-use-readdirr3.html

Test: boots.
Change-Id: If75532e24fe4d17743bf8e8c9590156dee378a63
</pre>
</div>
</content>
</entry>
<entry>
<title>system/core: Cleanup direct calls to opendir by containing in a</title>
<updated>2016-02-18T22:52:46+00:00</updated>
<author>
<name>James Hawkins</name>
<email>jhawkins@google.com</email>
</author>
<published>2016-02-18T22:52:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=588a2cad7faee54bfb16050d0c7398709f304fea'/>
<id>588a2cad7faee54bfb16050d0c7398709f304fea</id>
<content type='text'>
std::unique_ptr.

Bug: 26643633
Change-Id: Ia3491fdbff086558da694ae949cf08e4c89d0307
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
std::unique_ptr.

Bug: 26643633
Change-Id: Ia3491fdbff086558da694ae949cf08e4c89d0307
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix windows 64-bit builds</title>
<updated>2016-02-06T00:10:10+00:00</updated>
<author>
<name>Dan Willemsen</name>
<email>dwillemsen@google.com</email>
</author>
<published>2016-02-04T07:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=86cf941c480de8d5693a24d3feb45574f5c89a86'/>
<id>86cf941c480de8d5693a24d3feb45574f5c89a86</id>
<content type='text'>
pid_t is 64-bit in 64-bit mingw, but the windows process/thread
functions return a DWORD(uint32_t). Instead of promoting to a pid_t and
fixing the format strings, just use a uint32_t to store the values.

android_thread_id also cannot be a 64-bit pointer, so for windows just
force it to be a uint32_t.

libutils/ProcessCallStack only works under Linux, since it makes heavy
use of /proc. Don't compile it under Windows or Darwin.

Bug: 26957718
Change-Id: I4e43e7cf18a96f22b3a9a08dbab8c3e960c12930
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
pid_t is 64-bit in 64-bit mingw, but the windows process/thread
functions return a DWORD(uint32_t). Instead of promoting to a pid_t and
fixing the format strings, just use a uint32_t to store the values.

android_thread_id also cannot be a 64-bit pointer, so for windows just
force it to be a uint32_t.

libutils/ProcessCallStack only works under Linux, since it makes heavy
use of /proc. Don't compile it under Windows or Darwin.

Bug: 26957718
Change-Id: I4e43e7cf18a96f22b3a9a08dbab8c3e960c12930
</pre>
</div>
</content>
</entry>
<entry>
<title>Consistently use strerror in libutils.</title>
<updated>2015-06-30T17:41:15+00:00</updated>
<author>
<name>Elliott Hughes</name>
<email>enh@google.com</email>
</author>
<published>2015-06-30T15:22:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=6ed68cc412752e4c78755df9a1516e610ec66fa8'/>
<id>6ed68cc412752e4c78755df9a1516e610ec66fa8</id>
<content type='text'>
It's easier for people to debug, and side-steps the problem that errno
values differ between architectures.

Bug: http://b/17458391
Change-Id: I1db9b2cbb653839d3936b91e37e5cff02671318a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's easier for people to debug, and side-steps the problem that errno
values differ between architectures.

Bug: http://b/17458391
Change-Id: I1db9b2cbb653839d3936b91e37e5cff02671318a
</pre>
</div>
</content>
</entry>
<entry>
<title>libutils: Don't segfault ProcessCallStack when getting thread name fails</title>
<updated>2014-08-19T18:48:52+00:00</updated>
<author>
<name>Igor Murashkin</name>
<email>iam@google.com</email>
</author>
<published>2014-08-19T18:48:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=63fbdb6440ce5009ef0bfd3d1e1cc60b46004973'/>
<id>63fbdb6440ce5009ef0bfd3d1e1cc60b46004973</id>
<content type='text'>
There's an inherent race in trying to read out the thread name from
the system and the thread closing out on its own (and thus being removed
from procfs).

Try to handle this by formatting the thread name unconditionally with
the tid when getting the thread name fails (instead of dereferencing
NULL and crashing).

Bug: 15406837
Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There's an inherent race in trying to read out the thread name from
the system and the thread closing out on its own (and thus being removed
from procfs).

Try to handle this by formatting the thread name unconditionally with
the tid when getting the thread name fails (instead of dereferencing
NULL and crashing).

Bug: 15406837
Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d
</pre>
</div>
</content>
</entry>
<entry>
<title>Move CallStack to libbacktrace.</title>
<updated>2013-11-06T20:37:14+00:00</updated>
<author>
<name>Christopher Ferris</name>
<email>cferris@google.com</email>
</author>
<published>2013-10-31T23:25:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=9b0e074c6d38143e01616404a08b0c7aa992f3c3'/>
<id>9b0e074c6d38143e01616404a08b0c7aa992f3c3</id>
<content type='text'>
Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.

Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.

Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
</pre>
</div>
</content>
</entry>
<entry>
<title>utils: Fix broken sdk build on windows</title>
<updated>2013-10-31T01:09:52+00:00</updated>
<author>
<name>Igor Murashkin</name>
<email>iam@google.com</email>
</author>
<published>2013-10-31T01:09:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.replicant.us/contrib/GNUtoo/replicant/core/commit/?id=e65b7ea8801145626504c724c28aedd0e5038a28'/>
<id>e65b7ea8801145626504c724c28aedd0e5038a28</id>
<content type='text'>
Bug: 11324229
Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Bug: 11324229
Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
</pre>
</div>
</content>
</entry>
</feed>
