BEEP-8 SDK 1.0.0
Loading...
Searching...
No Matches
file_operations Struct Reference

Represents the operations that can be performed on a file. More...

#include <crt.h>

Public Attributes

int(* open )(File *filep)
 Function pointer to open a file.
 
int(* close )(File *filep)
 Function pointer to close a file.
 
ssize_t(* read )(File *filep, char *buffer, size_t buflen)
 Function pointer to read from a file.
 
ssize_t(* write )(File *filep, const char *buffer, size_t buflen)
 Function pointer to write to a file.
 
off_t(* seek )(File *filep, int ptr, int dir)
 Function pointer to seek within a file.
 
int(* ioctl )(File *filep, unsigned int cmd, void *arg)
 Function pointer to perform IOCTL operations on a file.
 

Detailed Description

Represents the operations that can be performed on a file.

This structure contains function pointers for various file operations such as opening, closing, reading, writing, seeking, and performing IOCTL commands.


The documentation for this struct was generated from the following file: