summaryrefslogtreecommitdiff
path: root/src/libstddjb/buffer_flush1read.c
blob: 1a771ea159b990d1e90e325f4496e380ccbf4d0d (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)
{
  if (!buffer_flush(buffer_1)) return -1 ;
  return buffer_read(fd, v, n) ;
}