mirror of
https://github.com/troglobit/libite.git
synced 2026-11-06 15:50:57 +00:00
Document helper macros.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
121e8ee888
commit
1b4dd15614
1 file changed
+35
@@ -4,6 +4,41 @@
|
|||||||
Libite, or `-lite`, is a light-weight library of utility functions and
|
Libite, or `-lite`, is a light-weight library of utility functions and
|
||||||
missing C library functions.
|
missing C library functions.
|
||||||
|
|
||||||
|
Helper Macros
|
||||||
|
-------------
|
||||||
|
|
||||||
|
- `blkdev(dev)`
|
||||||
|
|
||||||
|
Create block device
|
||||||
|
|
||||||
|
- `chardev(dev)`
|
||||||
|
|
||||||
|
Create character device
|
||||||
|
|
||||||
|
- `erase(path)`
|
||||||
|
|
||||||
|
Erase file/directory with `remove()`. Errors on stderr
|
||||||
|
|
||||||
|
- `makedir(path)`
|
||||||
|
|
||||||
|
Create directory, like `mkdir()`. Errors on stderr
|
||||||
|
|
||||||
|
- `makefifo(path)`
|
||||||
|
|
||||||
|
Create a FIFO, like `mkfifo()`. Errors on stderr
|
||||||
|
|
||||||
|
- `touch(path)`
|
||||||
|
|
||||||
|
Create a file, or update mtime. Errors on stderr
|
||||||
|
|
||||||
|
- `S_ISEXEC(mode_t m)`
|
||||||
|
|
||||||
|
Mysteriously missing from GLIBC
|
||||||
|
|
||||||
|
- `UNUSED(var)`
|
||||||
|
|
||||||
|
Shorter and more readable version of `var __attribute__ ((unused))`
|
||||||
|
|
||||||
|
|
||||||
Generic Functions
|
Generic Functions
|
||||||
-----------------
|
-----------------
|
||||||
|
|||||||
Reference in new issue
Block a user