revert to oldcode
[snitchaser:mainline.git] / checkpoint / munmap.c
1
2 #include "syscalls.h"
3
4 #ifndef SYSCALL_PRINTER
5
6 int SCOPE
7 post_munmap(const struct syscall_regs * regs)
8 {
9         write_eax(regs);
10         return 0;
11 }
12
13 int SCOPE
14 replay_munmap(const struct syscall_regs * regs)
15 {
16         int32_t eax = read_int32();
17         if (eax >= 0) {
18 #ifdef IN_INJECTOR
19                 INTERNAL_SYSCALL(munmap, 2,
20                                 regs->ebx, regs->ecx);
21 #endif
22         }
23         return eax;
24 }
25
26
27 #else
28
29 void
30 output_munmap(int nr)
31 {
32         printf("munmap:\t%d\n", read_eax());
33 }
34 #endif
35