mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-07 12:44:45 +00:00
Also now checking the return value of every syscall in scalar, to make sure that they (mostly) fail as expected. Because occasionally one would succeed unexpectedly and unaddressable memory would be marked as addressable, and things would go haywire. (The fact that the wrapper sets the memory as addressable in these cases is a bug with the relevant wrappers; I'll fix them later.) git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3023
16 lines
202 B
C
16 lines
202 B
C
#include "scalar.h"
|
|
|
|
int main(void)
|
|
{
|
|
int res;
|
|
|
|
// All __NR_xxx numbers are taken from x86
|
|
|
|
// __NR_fork 2 --> arch/sys_fork()
|
|
GO(__NR_fork, "0e");
|
|
SY(__NR_fork);
|
|
|
|
return(0);
|
|
}
|
|
|