devfs(3)
DESCRIPTION
Astia mounts the fixed devfs instance at /dev. It exposes registered character devices, including /dev/null and /dev/zero, and the dynamic /dev/tty node. /dev/tty exists for metadata lookup even when the caller has no controlling terminal, but opening it fails unless the caller has one. Device entries use character type and their registered permission mode.
SYNOPSIS
#include <fcntl.h> /* mounted at /dev */
RETURN VALUE
- There is no callable devfs function in libc
- applications use the ordinary open, read, write, and ioctl interfaces.
ERRORS
-EACCES- The requested descriptor access is not allowed by the node's other permission bits.
-ENOENT- The requested device entry is not registered or /dev/tty has no controlling terminal.
NOTES
The devfs registry holds at most 32 exact absolute paths. /dev/null discards writes and returns end of file on reads; /dev/zero fills reads with zero bytes.