summary refs log tree commit diff
path: root/src/libstddjb/buffer_flush1read.c
blob: 49c919fd630e411dcfd6dafd12dc65bc274ec642 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <sys/uio.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>

ssize_t buffer_flush1read (int fd, struct iovec const *v, unsigned int n)
{
  if (!buffer_flush(buffer_1)) return -1 ;
  return fd_readv(fd, v, n) ;
}