xref: /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/fuzzer/FuzzerShmemFuchsia.cpp (revision a7c257b03e4462df2b1020128fb82716512d7856)
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 
Create(const char * Name)20 bool SharedMemoryRegion::Create(const char *Name) {
21   return false;
22 }
23 
Open(const char * Name)24 bool SharedMemoryRegion::Open(const char *Name) {
25   return false;
26 }
27 
Destroy(const char * Name)28 bool SharedMemoryRegion::Destroy(const char *Name) {
29   return false;
30 }
31 
Post(int Idx)32 void SharedMemoryRegion::Post(int Idx) {}
33 
Wait(int Idx)34 void SharedMemoryRegion::Wait(int Idx) {}
35 
36 }  // namespace fuzzer
37 
38 #endif  // LIBFUZZER_FUCHSIA
39