Lines Matching full:init
37 # define DEFINE_RUN_ONCE(init) \ argument
38 static int init(void); \
39 int init##_ossl_ret_ = 0; \
40 void init##_ossl_(void) \
42 init##_ossl_ret_ = init(); \
44 static int init(void)
50 # define DECLARE_RUN_ONCE(init) \ argument
51 extern int init##_ossl_ret_; \
52 void init##_ossl_(void);
69 # define DEFINE_RUN_ONCE_STATIC(init) \ argument
70 static int init(void); \
71 static int init##_ossl_ret_ = 0; \
72 static void init##_ossl_(void) \
74 init##_ossl_ret_ = init(); \
76 static int init(void)
110 # define DEFINE_RUN_ONCE_STATIC_ALT(initalt, init) \ argument
114 init##_ossl_ret_ = initalt(); \
119 * RUN_ONCE - use CRYPTO_THREAD_run_once, and check if the init succeeded
121 * @init: function name that was previously given to DEFINE_RUN_ONCE,
127 * (*) by convention, since the init function must return 1 on success.
129 # define RUN_ONCE(once, init) \ argument
130 (CRYPTO_THREAD_run_once(once, init##_ossl_) ? init##_ossl_ret_ : 0)
139 * @init: primary initialiser function name that was previously given to
145 * (*) by convention, since the init function must return 1 on success.
147 # define RUN_ONCE_ALT(once, initalt, init) \ argument
148 (CRYPTO_THREAD_run_once(once, initalt##_ossl_) ? init##_ossl_ret_ : 0)