KallistiOS git master
Independent SDK for the Sega Dreamcast
|
VFS driver for accessing pseudo-TTY terminals More...
Files | |
file | fs_pty.h |
Pseudo-terminal virtual file system. | |
Functions | |
int | fs_pty_create (char *buffer, int maxbuflen, file_t *master_out, file_t *slave_out) |
Create a new pseudo-terminal. | |
VFS driver for accessing pseudo-TTY terminals
Create a new pseudo-terminal.
This function creates a new pseudo-terminal, opening up two files in the /pty portion of the VFS.
buffer | Storage for the name of the PTY, apparently not actually used (but potentially will be fixed at some point). If it was implemented, the name of the PTY would be here on successful return (if not NULL) |
maxbuflen | The length of buffer |
master_out | A pointer to store the file descriptor for the master end in (must not be NULL) |
slave_out | A pointer to store the file descriptor for the slave end in (must not be NULL) |
0 | On success |
-1 | On error |