mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
Base: Add man pages for null/zero/full character devices
This commit is contained in:
parent
45a11ead9a
commit
89265be167
3 changed files with 80 additions and 0 deletions
35
Base/usr/share/man/man4/full.md
Normal file
35
Base/usr/share/man/man4/full.md
Normal file
|
@ -0,0 +1,35 @@
|
|||
## Name
|
||||
|
||||
full - always full device
|
||||
|
||||
## Description
|
||||
|
||||
`/dev/full` is a character device which is always full.
|
||||
|
||||
Reading from `/dev/full` returns '\0' bytes and exits with status 0.
|
||||
|
||||
Writing to `/dev/full` fails with ENOSPC error.
|
||||
|
||||
To create it manually:
|
||||
|
||||
```sh
|
||||
mknod /dev/full c 1 7
|
||||
chmod 666 /dev/full
|
||||
```
|
||||
|
||||
## Files
|
||||
|
||||
* /dev/full
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ head -c 8 /dev/full | hexdump
|
||||
00 00 00 00 00 00 00 00
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
* [`null`(4)](../man4/null.md)
|
||||
* [`zero`(4)](../man4/zero.md)
|
||||
|
19
Base/usr/share/man/man4/null.md
Normal file
19
Base/usr/share/man/man4/null.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
## Name
|
||||
|
||||
null - data sink
|
||||
|
||||
## Description
|
||||
|
||||
`/dev/null` is a character device file which discards input.
|
||||
|
||||
Reading from `/dev/null` returns end of file and exits with status 0.
|
||||
|
||||
## Files
|
||||
|
||||
* /dev/null
|
||||
|
||||
## See also
|
||||
|
||||
* [`full`(4)](../man4/full.md)
|
||||
* [`zero`(4)](../man4/zero.md)
|
||||
|
26
Base/usr/share/man/man4/zero.md
Normal file
26
Base/usr/share/man/man4/zero.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
## Name
|
||||
|
||||
zero - data sink
|
||||
|
||||
## Description
|
||||
|
||||
`/dev/zero` is a character device file which discards input.
|
||||
|
||||
Reading from `/dev/zero` returns '\0' bytes and exits with status 0.
|
||||
|
||||
## Files
|
||||
|
||||
* /dev/zero
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ head -c 8 /dev/zero | hexdump
|
||||
00 00 00 00 00 00 00 00
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
* [`null`(4)](../man4/null.md)
|
||||
* [`full`(4)](../man4/full.md)
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue