Skip to content

Instantly share code, notes, and snippets.

@tahaconfiant
Created December 10, 2019 08:35
Show Gist options
  • Select an option

  • Save tahaconfiant/1e8494af168618ee73253fa29d3c65da to your computer and use it in GitHub Desktop.

Select an option

Save tahaconfiant/1e8494af168618ee73253fa29d3c65da to your computer and use it in GitHub Desktop.
man2write
WRITE(2) BSD System Calls Manual WRITE(2)
NAME
pwrite, write, writev -- write output
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
ssize_t
pwrite(int fildes, const void *buf, size_t nbyte, off_t offset);
ssize_t
write(int fildes, const void *buf, size_t nbyte);
#include <sys/uio.h>
ssize_t
writev(int fildes, const struct iovec *iov, int iovcnt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment