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:04:25 +0000 (19:04 -0400)
commit282b829b5df579f26e8506f58b6e7cb2a7a928b8
treeec35d6d76cd4f6518e8baae36ce733ba9a03559f
parent2c2a5bf944c7d0e3f5e2595a92b448b57bd625cf
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.026791 seconds and 4 git commands to generate.