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

#include <skalibs/allreadwrite.h>
#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 fd_readsv(fd, v, n) ;
}