summaryrefslogtreecommitdiff
path: root/src/libstddjb/buffer_flush1read.c
blob: 9dcdf816991d496141e28a8a0fde074b80f1933e (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/buffer.h>
#include <skalibs/siovec.h>

int buffer_flush1read (int fd, siovec_t const *v, unsigned int n, void *aux)
{
  if (!buffer_flush(buffer_1)) return -1 ;
  return buffer_read(fd, v, n, aux) ;
}