blob: a2ac8facc49d46a3e00bfbb7b0607b430f57af59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* ISC license. */
#include <errno.h>
#include <skalibs/tai.h>
#include <skalibs/iopause.h>
int iopause_stamp (iopause_fd *x, unsigned int n, tain const *deadline, tain *stamp)
{
int r ;
do
{
r = iopause(x, n, deadline, stamp) ;
if (stamp)
{
int e = errno ;
tain_now(stamp) ;
errno = e ;
}
}
while ((r < 0) && (errno == EINTR)) ;
return r ;
}
|