diff options
author | Werner Koch <wk@gnupg.org> | 2017-11-29 20:22:06 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2017-11-29 20:22:06 +0100 |
commit | adc786d034b63176b941a1ef8d996acbf8d0ea5d (patch) | |
tree | b19d82491cc7666f18cb44d2f7458f2f28fbe936 /src/gpgrt-int.h | |
parent | 1865c0ba1769b407a3c504f1ab0a4278704a9fc1 (diff) | |
download | libgpg-error-adc786d034b63176b941a1ef8d996acbf8d0ea5d.tar.gz |
core: Unify syscall_clamp functions.
* src/estream.c (_gpgrt_set_syscall_clamp)
(_gpgrt_get_syscall_clamp): Move to ...
* src/syscall-clamp.c: new file.
(_gpgrt_pre_syscall, _gpgrt_post_syscall): New.
* src/Makefile.am (libgpg_error_la_SOURCES): Add that file.
* src/estream.c: Replace the syscall wrapper with the new functions.
* src/posix-lock.c: Ditto.
* src/w32-lock.c: Ditto.
* src/posix-thread.c: Ditto.
* src/w32-thread.c: Ditto.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'src/gpgrt-int.h')
-rw-r--r-- | src/gpgrt-int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpgrt-int.h b/src/gpgrt-int.h index 2413257..fcce082 100644 --- a/src/gpgrt-int.h +++ b/src/gpgrt-int.h @@ -124,7 +124,8 @@ char *_gpgrt_strconcat_core (const char *s1, va_list arg_ptr); #define xtryrealloc(a,b) _gpgrt_realloc ((a),(b)) #define xtrystrdup(a) _gpgrt_strdup ((a)) - +void _gpgrt_pre_syscall (void); +void _gpgrt_post_syscall (void); const char *_gpg_error_check_version (const char *req_version); |