119int tarf_access(
void* ctx,
const char *path,
int amode);
167int tarf_open(
void* ctx,
const char * path,
int flags,
int mode);
187ssize_t
tarf_pread(
void* ctx,
int fd,
void *dst,
size_t size, off_t offset);
199off_t
tarf_lseek(
void* ctx,
int fd, off_t offset,
int whence);
215int tarf_fstat(
void* ctx,
int fd,
struct stat * st);
246int tarf_fcntl(
void *ctx,
int fd,
int cmd,
int arg);
272int tarf_ioctl(
void *ctx,
int fd,
int cmd, va_list args);
298int tarf_stat(
void* ctx,
const char *path,
struct stat *st);
360void *
tarf_mmap(
void *ctx,
void *addr,
size_t length,
int prot,
int flags,
int fd, off_t offset);
377int tarf_munmap(
void *ctx,
void *addr,
size_t length);
398ssize_t
tarf_sendfile(
void *ctx,
int sock,
int fd, off_t *offset,
size_t count);
int tarf_stat(void *ctx, const char *path, struct stat *st)
Retrieve file status information.
off_t tarf_lseek(void *ctx, int fd, off_t offset, int whence)
lseek()
ssize_t tarf_sendfile(void *ctx, int sock, int fd, off_t *offset, size_t count)
Send TARFS file to a socket.
int tarf_open(void *ctx, const char *path, int flags, int mode)
Open a TARFS file or directory.
int tarf_close(void *ctx, int fd)
int tarf_access(void *ctx, const char *path, int amode)
Check the accessibility of a file or directory in the TarFS filesystem.
int tarf_fstat(void *ctx, int fd, struct stat *st)
Get file status information.
ssize_t tarf_pread(void *ctx, int fd, void *dst, size_t size, off_t offset)
Read data from an open TARFS file at a specified offset.
int tarf_ioctl(void *ctx, int fd, int cmd, va_list args)
Perform TARFS-specific I/O control operations.
ssize_t tarf_read(void *ctx, int fd, void *dst, size_t size)
Read data from an open TARFS file.
void * tarf_mmap(void *ctx, void *addr, size_t length, int prot, int flags, int fd, off_t offset)
Map a file into the process address space.
int tarf_dupfd(void *ctx, int fd)
Create an independent duplicate of a file descriptor.
int tarf_fcntl(void *ctx, int fd, int cmd, int arg)
Perform file descriptor control operations.
int tarf_munmap(void *ctx, void *addr, size_t length)
Remove a previously created memory mapping.
int tarf_fsync(void *ctx, int fd)
Synchronize file contents.
TARFS File API: tarf_open(), tarf_close(), tarf_read(), tarf_pread(), tarf_lseek(),...