full_io.h
Go to the documentation of this file.
/*
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
Copyright (C) 2022 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef FULL_IO_H
#define FULL_IO_H
#include <sys/types.h>
#include <stdint.h>
#include <stdio.h>
ssize_t full_read(int fd, void *buf, size_t count);
ssize_t full_write(int fd, const void *buf, size_t count);
ssize_t full_pread(int fd, void *buf, size_t count, off_t offset);
ssize_t full_pwrite(int fd, const void *buf, size_t count, off_t offset);
ssize_t full_pread64(int fd, void *buf, size_t count, int64_t offset);
ssize_t full_pwrite64(int fd, const void *buf, size_t count, int64_t offset);
ssize_t full_fread(FILE * file, void *buf, size_t count);
ssize_t full_fwrite(FILE * file, const void *buf, size_t count);
#endif
full_pread64
ssize_t full_pread64(int fd, void *buf, size_t count, int64_t offset)
Read arbitrary bytes from a file descriptor.
full_pwrite
ssize_t full_pwrite(int fd, const void *buf, size_t count, off_t offset)
Write arbitrary bytes to a file descriptor.
full_fread
ssize_t full_fread(FILE *file, void *buf, size_t count)
Read the next bytes from a file stream.
full_write
ssize_t full_write(int fd, const void *buf, size_t count)
Write the next bytes to a file descriptor.
full_pread
ssize_t full_pread(int fd, void *buf, size_t count, off_t offset)
Read arbitrary bytes from a file descriptor.
full_fwrite
ssize_t full_fwrite(FILE *file, const void *buf, size_t count)
Write the next bytes to a file stream.
full_pwrite64
ssize_t full_pwrite64(int fd, const void *buf, size_t count, int64_t offset)
Write arbitrary bytes to a file descriptor.
full_read
ssize_t full_read(int fd, void *buf, size_t count)
Read the next bytes from a file descriptor.