No description
In POSIX, the declaration of open is 'int open(const char *path, int oflag, ...)' and there's an additional argument of type 'int' whenever oflag includes O_CREAT. Because the way arguments are passed to "..." functions is not necessarily the same way that arguments are passed to non-variable functions, it is not portable to cast open to the 2-arg or 3-arg version as the old formulation did. |
||
|---|---|---|
| include | ||
| lib | ||
| src | ||
| .gitignore | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| version.mk | ||
libtmperamental
tmperamental is a library that intercepts filesystem writes, and causes loud failures when writes are attempted on /tmp/*.
The idea here is by setting TMPDIR and friends, you are able to use libtmperamental to catch programs in the act of not respecting such env-vars.
Basic Usage:
TMPDIR=~/.tmp LD_PRELOAD=/usr/lib/libtmperamental.so app arguments
In the event the app causes problems, you should see some stderr and a nonzero exit status.
Things to keep in mind:
This library is not to be linked against, just preloaded.
