Sign in
gbmc
/
linux
/
01c93aa01c75e7a43f7f53229bcbecffac75eb84
/
.
/
tools
/
testing
/
selftests
/
bpf
/
io_helpers.h
blob: 21e1134cd3cef957a9b38213499480ed1f1af233 [
file
] [
log
] [
blame
]
// SPDX-License-Identifier: GPL-2.0
#include
<unistd.h>
/* As a regular read(2), but allows to specify a timeout in micro-seconds.
* Returns -EAGAIN on timeout.
*/
int
read_with_timeout
(
int
fd
,
char
*
buf
,
size_t
count
,
long
usec
);