1 //===- FuzzerShmemWindows.cpp - Posix shared memory -------------*- C++ -* ===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
11 #include "FuzzerDefs.h"
15 #include "FuzzerShmem.h"
20 #include <sys/types.h>
24 std::string SharedMemoryRegion::Path(const char *Name) {
25 return DirPlusFile(TmpDir(), Name);
28 std::string SharedMemoryRegion::SemName(const char *Name, int Idx) {
29 std::string Res(Name);
30 return Res + (char)('0' + Idx);
33 bool SharedMemoryRegion::Map(int fd) {
34 assert(0 && "UNIMPLEMENTED");
38 bool SharedMemoryRegion::Create(const char *Name) {
39 assert(0 && "UNIMPLEMENTED");
43 bool SharedMemoryRegion::Open(const char *Name) {
44 assert(0 && "UNIMPLEMENTED");
48 bool SharedMemoryRegion::Destroy(const char *Name) {
49 assert(0 && "UNIMPLEMENTED");
53 void SharedMemoryRegion::Post(int Idx) {
54 assert(0 && "UNIMPLEMENTED");
57 void SharedMemoryRegion::Wait(int Idx) {
58 Semaphore[1] = nullptr;
59 assert(0 && "UNIMPLEMENTED");
64 #endif // LIBFUZZER_WINDOWS