blob: 9248495f0a97656abf0be293e24099de88d1a296 [file] [log] [blame]
robert.swiecki3bb518c2010-10-14 00:48:24 +00001/*
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00002 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +00003 * honggfuzz - architecture dependent code
4 * -----------------------------------------
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00005 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +00006 * Author: Robert Swiecki <swiecki@google.com>
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00007 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +00008 * Copyright 2010-2015 by Google Inc. All Rights Reserved.
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +00009 *
10 * Licensed under the Apache License, Version 2.0 (the "License"); you may
11 * not use this file except in compliance with the License. You may obtain
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000012 * a copy of the License at
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000013 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000014 * http://www.apache.org/licenses/LICENSE-2.0
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000015 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000016 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
19 * implied. See the License for the specific language governing
20 * permissions and limitations under the License.
robert.swiecki@gmail.com3b630b42015-02-16 10:53:53 +000021 *
robert.swiecki@gmail.com772b33d2015-02-14 20:35:00 +000022 */
robert.swiecki3bb518c2010-10-14 00:48:24 +000023
Jagger876a74c2016-02-09 22:09:11 +010024#ifndef _HF_ARCH_H_
25#define _HF_ARCH_H_
robert.swiecki3bb518c2010-10-14 00:48:24 +000026
Robert Swiecki0f937af2016-03-30 18:19:16 +020027#include "common.h"
28
robert.swiecki3bb518c2010-10-14 00:48:24 +000029extern bool arch_launchChild(honggfuzz_t * fuzz, char *fileName);
30
robert.swiecki@gmail.com6d6f7562015-02-17 22:18:51 +000031extern bool arch_archInit(honggfuzz_t * fuzz);
robert.swiecki3bb518c2010-10-14 00:48:24 +000032
Robert Swieckidecf14b2016-03-31 15:09:28 +020033extern bool arch_archThreadInit(honggfuzz_t * fuzz, fuzzer_t * fuzzer);
Robert Swiecki0f937af2016-03-30 18:19:16 +020034
Robert Swiecki12800cd2016-03-31 15:38:10 +020035extern pid_t arch_fork(honggfuzz_t * fuzz, fuzzer_t * fuzzer);
Robert Swiecki1df61a92015-10-08 17:26:06 +020036
robert.swiecki@gmail.com65cfa1c2015-02-11 15:59:28 +000037extern void arch_reapChild(honggfuzz_t * fuzz, fuzzer_t * fuzzer);
robert.swiecki28cba5c2011-06-22 01:38:55 +000038
Robert Swieckia8b8cb82016-08-17 18:27:08 +020039extern void arch_prepareChild(honggfuzz_t * fuzz, fuzzer_t * fuzzer);
40
Jagger48a1b902016-02-09 22:12:02 +010041#endif /* _HF_ARCH_H_ */