]> git.ipfire.org Git - thirdparty/openssl.git/blame - test/testutil/output.h
Many spelling fixes/typo's corrected.
[thirdparty/openssl.git] / test / testutil / output.h
CommitLineData
579d0fab
RL
1/*
2 * Copyright 2014-2016 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the OpenSSL license (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */
9
10#ifndef HEADER_TU_OUTPUT_H
11# define HEADER_TU_OUTPUT_H
12
13#include <stdarg.h>
14
15/*
16 * The basic I/O functions used internally by the test framework. These
46f4e1be 17 * can be overridden when needed. Note that if one is, then all must be.
579d0fab
RL
18 */
19void test_open_streams(void);
20void test_close_streams(void);
21/* The following ALL return the number of characters written */
579d0fab
RL
22int test_vprintf_stdout(const char *fmt, va_list ap);
23int test_vprintf_stderr(const char *fmt, va_list ap);
24/* These return failure or success */
25int test_flush_stdout(void);
26int test_flush_stderr(void);
27
603ddbdb
RL
28/* Commodity functions. There's no need to override these */
29int test_printf_stdout(const char *fmt, ...);
30int test_printf_stderr(const char *fmt, ...);
31
579d0fab 32#endif /* HEADER_TU_OUTPUT_H */