blob: 70f779c01f62a2916f550ecd4cf3cc6ee46a13a1 [file] [log] [blame]
nethercote75a8c982004-11-11 19:03:34 +00001#include <assert.h>
2#include <fcntl.h>
3#include <stdio.h>
4#include <stdlib.h>
5#include <unistd.h>
6#include <sys/stat.h>
7#include <sys/syscall.h>
8#include <sys/types.h>
9
10// Thorough syscall scalar arg checking. Also serves as thorough checking
11// for (very) basic syscall use. Generally not trying to do anything
12// meaningful with the syscalls.
13
14#define GO(__NR_xxx, s) \
15 fprintf(stderr, "-----------------------------------------------------\n" \
16 "%3d:%20s %s\n" \
17 "-----------------------------------------------------\n", \
18 __NR_xxx, #__NR_xxx, s);
19
20#define SY syscall
21
22