MCPcopy Create free account
hub / github.com/GJDuck/e9patch / _mmap

Function _mmap

test/regtest/init.c:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include "stdlib.c"
6
7void *_mmap(void *addr, size_t length, int prot, int flags, int fd,
8 off_t offset)
9{
10 static bool seen = false;
11 if (!seen)
12 fprintf(stderr, "mmap() intercepted\n");
13 seen = true;
14 prot |= PROT_WRITE;
15 return mmap(addr, length, prot, flags, fd, offset);
16}
17
18asm
19(

Callers

nothing calls this directly

Calls 2

mmapFunction · 0.85
fprintfFunction · 0.50

Tested by

no test coverage detected