skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

buffer_flush1read.c (255B)


      1 /* ISC license. */
      2 
      3 #include <sys/uio.h>
      4 #include <skalibs/allreadwrite.h>
      5 #include <skalibs/buffer.h>
      6 
      7 ssize_t buffer_flush1read (int fd, struct iovec const *v, unsigned int n)
      8 {
      9   if (!buffer_flush(buffer_1)) return -1 ;
     10   return fd_readv(fd, v, n) ;
     11 }