Lines Matching +full:non +full:- +full:safety

2  * Copyright 2024-2025 The OpenSSL Project Authors. All Rights Reserved.
17 * Sets a socket as close-on-exec, except that this is a no-op if we are certain
63 /* Create a close-on-exec socket. */
72 * non-inheritable, avoiding race conditions if another thread is about to in create_socket()
74 * NOTE: windows xp (0x501) doesn't support the non-inheritance flag here in create_socket()
75 * but preventing inheritance isn't mandatory, just a safety precaution in create_socket()
124 * Make socket close-on-exec unless this was already done above at socket in create_socket()
149 int rc, lfd = -1, rfd = -1, wfd = -1; in ossl_rio_notifier_init()
160 /* Create a close-on-exec socket. */ in ossl_rio_notifier_init()
241 lfd = -1; in ossl_rio_notifier_init()
244 * Sanity check - ensure someone else didn't connect to our listener during in ossl_rio_notifier_init()
253 /* Make both sides of the connection non-blocking. */ in ossl_rio_notifier_init()
266 nfy->rfd = rfd; in ossl_rio_notifier_init()
267 nfy->wfd = wfd; in ossl_rio_notifier_init()
323 nfy->rfd = fds[0]; in ossl_rio_notifier_init()
324 nfy->wfd = fds[1]; in ossl_rio_notifier_init()
337 if (nfy->rfd < 0) in ossl_rio_notifier_cleanup()
340 BIO_closesocket(nfy->wfd); in ossl_rio_notifier_cleanup()
341 BIO_closesocket(nfy->rfd); in ossl_rio_notifier_cleanup()
342 nfy->rfd = nfy->wfd = -1; in ossl_rio_notifier_cleanup()
355 wr = writesocket(nfy->wfd, (void *)&ch, sizeof(ch)); in ossl_rio_notifier_signal()
371 rd = readsocket(nfy->rfd, (void *)buf, sizeof(buf)); in ossl_rio_notifier_unsignal()