splice(2): splice data to/from pipe - Linux man page

google_ad_section_start splice - splice data to/from a pipe #define _GNU_SOURCE /* See feature_test_macros (7) */#include < fcntl.h >ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t lenunsigned int " flags ); splice () moves data between two file descriptors without copying between kernel address space and user address space. It transfers up to len bytes of data from the file descriptor fd_in to the file descriptor fd_out , where one of the descriptors must refer to a pipe. If fd_in refers to a pipe, then off_in must be NULL. If fd_in does not refer to a pipe and off_in is NULL, then bytes are read from fd_in starting from the current file offset, and the current file offset is adjusted appropriately. If fd_in does not refer to a pipe and off_in is not NULL, then off_in must point to a buffer which specifies the start...

Linked on 2015-02-13 10:53:45 | Similar Links