]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/fuzzer/FuzzerShmemFuchsia.cpp
Add compiler-rt's libFuzzer, not connected to buildworld yet.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / fuzzer / FuzzerShmemFuchsia.cpp
1 //===- FuzzerShmemPosix.cpp - Posix shared memory ---------------*- C++ -* ===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 // SharedMemoryRegion.  For Fuchsia, this is just stubs as equivalence servers
10 // are not currently supported.
11 //===----------------------------------------------------------------------===//
12 #include "FuzzerDefs.h"
13
14 #if LIBFUZZER_FUCHSIA
15
16 #include "FuzzerShmem.h"
17
18 namespace fuzzer {
19
20 bool SharedMemoryRegion::Create(const char *Name) {
21   return false;
22 }
23
24 bool SharedMemoryRegion::Open(const char *Name) {
25   return false;
26 }
27
28 bool SharedMemoryRegion::Destroy(const char *Name) {
29   return false;
30 }
31
32 void SharedMemoryRegion::Post(int Idx) {}
33
34 void SharedMemoryRegion::Wait(int Idx) {}
35
36 }  // namespace fuzzer
37
38 #endif  // LIBFUZZER_FUCHSIA