]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blobdiff - src/coloredstderr.c
Hook perror(3).
[coloredstderr/coloredstderr.git] / src / coloredstderr.c
index 10b83be2db01d074bb5b5f5255ecbc5aeda1a805..b16633f8534b8b7d9a1e4fdc64532a185497c598 100644 (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. */