2 * SPDX-License-Identifier: LGPL-2.1-only
4 * Copyright (C) 2011 David Goulet <david.goulet@polymtl.ca>
5 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 #include "common/utils.h"
14 ssize_t
lttng_ust_read(int fd
, void *buf
, size_t len
)
17 size_t copied
= 0, to_copy
= len
;
20 ret
= read(fd
, buf
+ copied
, to_copy
);
25 } while ((ret
> 0 && to_copy
> 0)
26 || (ret
< 0 && errno
== EINTR
));
This page took 0.031089 seconds and 4 git commands to generate.