Simon Ruderich
|
0a909cac79
|
Use locally defined functions in hooks where possible.
Don't create a hook and call the "real" function when it's enough to
call an existing hook for this function.
|
2013-06-15 01:58:36 +02:00 |
|
Simon Ruderich
|
217e8c8bc5
|
Define real_*() static variables with macros.
|
2013-06-15 00:54:46 +02:00 |
|
Simon Ruderich
|
0ad5e4db04
|
hookmacros.h: Remove duplication in _HOOK_PRE_FD_/_HOOK_PRE_FILE.
|
2013-06-13 21:44:55 +02:00 |
|
Simon Ruderich
|
7adfbfd2cf
|
Fix hook for putc_unlocked() with glibc.
putc_unlocked() is a macro which expands to __overflow() in some cases.
|
2013-06-13 12:59:12 +02:00 |
|
Simon Ruderich
|
52b4e91146
|
hookmacros.h: Minor style fix.
|
2013-06-13 01:27:45 +02:00 |
|
Simon Ruderich
|
86352712fd
|
Fix save/restore of errno for isatty().
|
2013-06-10 14:05:51 +02:00 |
|
Simon Ruderich
|
048bd6f9e7
|
Use likely()/unlikely() macros to improve branch prediction.
|
2013-06-10 14:05:51 +02:00 |
|
Simon Ruderich
|
9862b8c8f1
|
Inline check_handle_fd() into hook macros.
It's very small and prologue/epilogue have a lot of overhead.
|
2013-06-10 14:05:51 +02:00 |
|
Simon Ruderich
|
dfd317650f
|
Remove errno save/restore where not necessary.
|
2013-06-10 14:05:45 +02:00 |
|
Simon Ruderich
|
fe3f7d4c63
|
handle_*_pre(),handle_*_post(): Remove unused action parameter.
|
2013-06-10 04:53:30 +02:00 |
|
Simon Ruderich
|
66140e14e4
|
hookmacros.h: Be more careful to restore the errno.
check_handle_fd() or handle_fd_pre() might also modify it.
|
2013-06-01 22:47:23 +02:00 |
|
Simon Ruderich
|
73870d5ed5
|
hookmacros.h: Reduce duplication in HOOK_VOID1().
|
2013-06-01 22:44:22 +02:00 |
|
Simon Ruderich
|
ad50ad9c54
|
Hook perror(3).
|
2013-06-01 22:08:45 +02:00 |
|
Simon Ruderich
|
6d15f6c990
|
Rename macros.h to hookmacros.h.
|
2013-05-31 18:36:21 +02:00 |
|