KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
fs_pty.h File Reference

Pseudo-terminal virtual file system. More...

#include <sys/cdefs.h>
#include <arch/types.h>
#include <kos/fs.h>

Go to the source code of this file.

Functions

int fs_pty_create (char *buffer, int maxbuflen, file_t *master_out, file_t *slave_out)
 Create a new pseudo-terminal.
 

Detailed Description

Pseudo-terminal virtual file system.

This file system implements a pseudo-terminal like concept (similar to /dev/pty in Linux). A call to fs_pty_create() will create two file entries in the VFS, /pty/maXX and /pty/slXX (XX being some hexadecimal number). From there, anybody can open up either end and send data to the other side. Think of it as a simple message passing interface.

This file system mounts on /pty.

Author
Megan Potter