ERR_set_mark.pod 781 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. =pod
  2. =head1 NAME
  3. ERR_set_mark, ERR_pop_to_mark - set marks and pop errors until mark
  4. =head1 SYNOPSIS
  5. #include <openssl/err.h>
  6. int ERR_set_mark(void);
  7. int ERR_pop_to_mark(void);
  8. =head1 DESCRIPTION
  9. ERR_set_mark() sets a mark on the current topmost error record if there
  10. is one.
  11. ERR_pop_to_mark() will pop the top of the error stack until a mark is found.
  12. The mark is then removed. If there is no mark, the whole stack is removed.
  13. =head1 RETURN VALUES
  14. ERR_set_mark() returns 0 if the error stack is empty, otherwise 1.
  15. ERR_pop_to_mark() returns 0 if there was no mark in the error stack, which
  16. implies that the stack became empty, otherwise 1.
  17. =head1 SEE ALSO
  18. L<err(3)|err(3)>
  19. =head1 HISTORY
  20. ERR_set_mark() and ERR_pop_to_mark() were added in OpenSSL 0.9.8.
  21. =cut