ERR_SET_MARK(3ossl)
πΈ NAME πΈ
okay bestie, welcome to the 3ossl manual page for the error-stack mark squad: ERR_set_mark, ERR_clear_last_mark, ERR_pop_to_mark, ERR_count_to_mark, and ERR_pop β set mark, clear mark, pop errors until mark and pop last error. π
β¨
π¦ SYNOPSIS π¦
no cap, here are the exact include and signatures:
#include <openssl/err.h>
int ERR_set_mark(void);
int ERR_pop_to_mark(void);
int ERR_clear_last_mark(void);
int ERR_count_to_mark(void);
int ERR_pop(void);
β¨ DESCRIPTION β¨
okay so here's the group-chat lore for each one:
ERR_set_mark()β sets a mark on the current topmost error record if there is one. πERR_pop_to_mark()β pops the top of the error stack until a mark is found. Then the mark is removed. If there is no mark, the whole stack is removed. ππERR_clear_last_mark()β removes the last mark added if there is one. π§ERR_count_to_mark()β returns the number of entries on the error stack above the most recently marked entry, not including that entry. If there is no mark in the error stack, it returns the number of entries in the error stack. π₯ERR_pop()β unconditionally pops a single error entry from the top of the error stack (which is the entry obtainable viaERR_peek_last_error(3)). periodt. π
π RETURN VALUES π
ERR_set_mark()β returns0if the error stack is empty, otherwise1. πERR_clear_last_mark()andERR_pop_to_mark()β return0if there was no mark in the error stack, which implies that the stack became empty; otherwise1. π«ΆERR_count_to_mark()β returns the number of error stack entries found above the most recent mark, if any, or the total number of error stack entries. βERR_pop()β returns1if an error was popped or0if the error stack was empty. π
π°οΈ HISTORY π°οΈ
ERR_count_to_mark()was added in OpenSSL3.2. π¦ERR_pop()was added in OpenSSL3.3. β¨
π COPYRIGHT π
Copyright 2003-2024 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>. πΈ
kisses bestie, this iconic page is from OpenSSL source/version 3.5.6, dated 2026-04-07. ππ«Ά no cap, go mark that error stack. β¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms