| Kea 3.0.2-git

fork.h
Go to the documentation of this file.
1// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef UTIL_UNITTESTS_FORK_H
8#define UTIL_UNITTESTS_FORK_H 1
9
10#include <unistd.h>
11
18
19 namespace isc {
20 namespace util {
21 namespace unittests {
22
31 bool
32 process_ok(pid_t process);
33
34pid_t
35 provide_input(int* read_pipe, const void* input, const size_t length);
36
37pid_t
38 check_output(int* write_pipe, const void* const output, const size_t length);
39
40} // End of the namespace
41}
42}
43
44#endif // UTIL_UNITTESTS_FORK_H
isc::util::unittests
Definition check_valgrind.cc:11
isc::util::unittests::provide_input
pid_t provide_input(int *read_pipe, const void *input, const size_t length)
Definition fork.cc:67
isc::util::unittests::process_ok
bool process_ok(pid_t process)
Checks that a process terminates correctly.
Definition fork.cc:36
isc::util::unittests::check_output
pid_t check_output(int *write_pipe, const void *const output, const size_t length)
Definition fork.cc:95
isc::util
Definition time_utils.cc:43
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148