diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-07-19 10:49:08 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-07-19 10:49:08 -0500 |
| commit | edebb7a66e0b107c7b07fa119f4e6b517c442089 (patch) | |
| tree | a2011b7a2e0cd0a8d225c888dba0247601ffd7fc | |
| parent | 1b1bce16b15cbe3bc7394f7876cb064ef5b8e7ab (diff) | |
| download | portable-edebb7a66e0b107c7b07fa119f4e6b517c442089.tar.gz portable-edebb7a66e0b107c7b07fa119f4e6b517c442089.tar.bz2 portable-edebb7a66e0b107c7b07fa119f4e6b517c442089.zip | |
remove thread_private.h defines, moved to arc4random_*.h
| -rw-r--r-- | crypto/compat/thread_private.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/crypto/compat/thread_private.h b/crypto/compat/thread_private.h index c5b0daf..e69de29 100644 --- a/crypto/compat/thread_private.h +++ b/crypto/compat/thread_private.h | |||
| @@ -1,14 +0,0 @@ | |||
| 1 | #include <pthread.h> | ||
| 2 | |||
| 3 | static pthread_mutex_t arc4random_mtx = PTHREAD_MUTEX_INITIALIZER; | ||
| 4 | |||
| 5 | #define _ARC4_LOCK() pthread_mutex_lock(&arc4random_mtx) | ||
| 6 | #define _ARC4_UNLOCK() pthread_mutex_unlock(&arc4random_mtx) | ||
| 7 | |||
| 8 | #ifdef __GLIBC__ | ||
| 9 | extern void *__dso_handle; | ||
| 10 | extern int __register_atfork(void (*)(void), void(*)(void), void (*)(void), void *); | ||
| 11 | #define _ARC4_ATFORK(f) __register_atfork(NULL, NULL, (f), __dso_handle) | ||
| 12 | #else | ||
| 13 | #define _ARC4_ATFORK(f) pthread_atfork(NULL, NULL, (f)) | ||
| 14 | #endif | ||
