blob: c6f580fe72694932a8e479b980545d36d6ebb545 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* ISC license. */
#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>
#include <skalibs/functypes.h>
#include <skalibs/tai.h>
#include <skalibs/unix-timed.h>
static int get (buffer *b)
{
return sanitize_read(buffer_fill(b)) ;
}
int buffer_timed_fill (buffer *b, tain_t const *deadline, tain_t *stamp)
{
return timed_get(b, (initfunc_t_ref)&buffer_getfd, (initfunc_t_ref)&get, deadline, stamp) ;
}
|