Hook perror(3).

This commit is contained in:
Simon Ruderich
2013-06-01 22:08:45 +02:00
parent b34a8ce50b
commit ad50ad9c54
4 changed files with 25 additions and 3 deletions

View File

@@ -230,6 +230,10 @@ HOOK_FILE1(int, putchar_unlocked, stdout,
HOOK_FILE1(int, puts_unlocked, stdout,
const char *, s)
/* perror(3) */
HOOK_VOID1(void, perror, STDERR_FILENO,
const char *, s)
/* Hook functions which duplicate file descriptors to track them. */