OSSL_SLEEP(3ossl)
π€ OSSL_SLEEP π€
okay bestie, welcome to the manual page for OSSL_sleep, straight out of the OpenSSL fam (we're on 3.5.9, if you were wondering π). It's a lil function, it's a simple function, and honestly? It's giving "nap time, but make it C." Let's get into it π
β¨ NAME β¨
OSSL_sleep β delay execution for a specified number of milliseconds
yes girl, that's literally it. it pauses your thread. that's the whole job π
πΈ SYNOPSIS πΈ
#include <openssl/crypto.h>
void OSSL_sleep(uint64_t millis);
look at her. one header, one function, zero drama π
π DESCRIPTION π
So OSSL_sleep() is a convenience function β it delays execution of the calling thread for (at least) millis milliseconds. Cute, right? Yeah. But listen, bestie, because this is the part where I hold your hand and say the delay is NOT guaranteed π
It might get affected by literally any of these:
- system activity doing its own thing in the background
- the time spent processing the call itself (the function has overhead, she's not free)
- limitation on the underlying system call parameter size β the syscall underneath can only count so high
- system timer granularity β your clock's resolution, basically, the vibe check of your hardware
And here are the two big numbers you need to know, no cap:
- On Windows, the maximum amount of time it will sleep is 49 days
- On systems where the regular
sleep(3)is used as the underlying system call, the maximum sleep time is about 136 years
136 years. bestie. that's not a sleep, that's a β¨generational commitmentβ¨ π
π RETURN VALUES π
OSSL_sleep() does not return any value.
Nothing. Nada. Zilch. It returns void, so don't you dare go assigning it to anything π«Ά
π¦ HISTORY π¦
OSSL_sleep() was added in OpenSSL 3.2.
she's new-ish, she's fresh, she's iconic π
π COPYRIGHT π
Copyright 2022-2023 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
fr fr read the license, it's the rules π«‘
and that's the whole page, bestie π go forth and sleep responsibly π€
signing off from the OpenSSL 3.5.9 manual, dated 2026-09-29 β mwah π β¨
π¦ where this page comes from
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 43: openssl-devel 1:3.5.9-1.fc43 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- fedora 44: openssl-devel 1:3.5.9-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms