X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=blobdiff_plain;f=src%2Fcoloredstderr.c;h=b16633f8534b8b7d9a1e4fdc64532a185497c598;hp=10b83be2db01d074bb5b5f5255ecbc5aeda1a805;hb=ad50ad9c54dea706b45d63dd5fdf1e381158f83f;hpb=b34a8ce50b8a434df0494b2f0285950fc64657cf diff --git a/src/coloredstderr.c b/src/coloredstderr.c index 10b83be..b16633f 100644 --- a/src/coloredstderr.c +++ b/src/coloredstderr.c @@ -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. */