PowerBlocks SDK
 
Loading...
Searching...
No Matches
fs_syscall.c File Reference

Implements libc's filesystem syscalls. More...

#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <errno.h>
#include <sys/stat.h>
#include <sys/unistd.h>
#include <fcntl.h>
#include "ff.h"

Classes

struct  file_descriptor_t
 

Functions

int open (const char *path, int flags,...)
 
ssize_t read (int fd, void *buf, size_t count)
 
ssize_t write (int fd, const void *buf, size_t count)
 
off_t lseek (int fd, off_t offset, int whence)
 
int close (int fd)
 
int fstat (int fd, struct stat *st)
 
int isatty (int fd)
 
int chdir (const char *path)
 

Detailed Description

Implements libc's filesystem syscalls.

Implements libc's filesystem syscalls

Author
Samuel Fitzsimons (rainbain)
Date
2025 @license MIT (see LICENSE file)

Function Documentation

◆ open()

int open ( const char * path,
int flags,
... )

BUG FIX: Avoid passing flags of zero