MySQL 8.0.39
Source Code Documentation
my_pread.cc File Reference
#include "my_config.h"
#include <errno.h>
#include <fcntl.h>
#include <stddef.h>
#include <stdio.h>
#include <sys/types.h>
#include <limits>
#include <unistd.h>
#include "my_base.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "my_thread_local.h"
#include "mysys_err.h"

Functions

size_t my_pread (File Filedes, uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags)
 Read a chunk of bytes from a file from a given position. More...
 
size_t my_pwrite (File Filedes, const uchar *Buffer, size_t Count, my_off_t offset, myf MyFlags)
 Write a chunk of bytes to a file at a given position. More...
 

Variables

ssize_t(* mock_pwrite )(int fd, const void *buf, size_t count, off_t offset) = nullptr
 

Variable Documentation

◆ mock_pwrite

ssize_t(* mock_pwrite) (int fd, const void *buf, size_t count, off_t offset) ( int  fd,
const void *  buf,
size_t  count,
off_t  offset 
) = nullptr