KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches

POSIX-standard APIs for managing the filesystem More...

Files

file  dirent.h
 Directory entry functionality.
 
file  ioctl.h
 Header for terminal control operations.
 
file  uio.h
 Header for vector I/O.
 

Data Structures

struct  dirent
 POSIX directory entry structure. More...
 
struct  DIR
 Type representing a directory stream. More...
 
struct  iovec
 I/O vector structure. More...
 

Macros

#define UIO_MAXIOV   IOV_MAX
 Old alias for the maximum length of an iovec.
 

Directory File Types

POSIX file types for dirent::d_type

Remarks
These directory entry types are not part of the POSIX specifican per-se, but are used by BSD and glibc.
Todo
Ensure each VFS driver maps its directory types accordingly
#define DT_UNKNOWN   0
 Unknown.
 
#define DT_FIFO   1
 Named Pipe or FIFO.
 
#define DT_CHR   2
 Character Device.
 
#define DT_DIR   4
 Directory.
 
#define DT_BLK   6
 Block Device.
 
#define DT_REG   8
 Regular File.
 
#define DT_LNK   10
 Symbolic Link.
 
#define DT_SOCK   12
 Local-Domain Socket.
 
#define DT_WHT   14
 Whiteout (ignored)
 

Detailed Description

POSIX-standard APIs for managing the filesystem

Macro Definition Documentation

◆ DT_BLK

#define DT_BLK   6

Block Device.

◆ DT_CHR

#define DT_CHR   2

Character Device.

◆ DT_DIR

#define DT_DIR   4

Directory.

Referenced by browse_directory().

◆ DT_FIFO

#define DT_FIFO   1

Named Pipe or FIFO.

◆ DT_LNK

#define DT_LNK   10

Symbolic Link.

◆ DT_REG

#define DT_REG   8

Regular File.

◆ DT_SOCK

#define DT_SOCK   12

Local-Domain Socket.

◆ DT_UNKNOWN

#define DT_UNKNOWN   0

Unknown.

◆ DT_WHT

#define DT_WHT   14

Whiteout (ignored)

◆ UIO_MAXIOV

#define UIO_MAXIOV   IOV_MAX

Old alias for the maximum length of an iovec.