common: add bt_common_read() function
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 3 May 2019 19:11:00 +0000 (15:11 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 23:06:12 +0000 (19:06 -0400)
commit03fb60893cf59e16f26d1f6d84b8a4921bbe8eae
tree2795347acfbb1c34f0bff8d2838f85318d3c203d
parent59241ba1e5f979605b24aa613b52f06473de8147
common: add bt_common_read() function

This function wraps the `read()` function to handle EINTR and partial
reads.

It returns the `count` value on success, or a smaller value than `count`
on error.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Change-Id: Ib0385855447200d97a58da704dcf68423e857033
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1248
Reviewed-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
include/babeltrace/common-internal.h
This page took 0.025646 seconds and 4 git commands to generate.