debuggers.hg

view tools/libaio/src/syscall.h @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents 2937703f0ed0
children
line source
1 #include <sys/syscall.h>
2 #include <unistd.h>
4 #define _SYMSTR(str) #str
5 #define SYMSTR(str) _SYMSTR(str)
7 #define SYMVER(compat_sym, orig_sym, ver_sym) \
8 __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@LIBAIO_" SYMSTR(ver_sym));
10 #define DEFSYMVER(compat_sym, orig_sym, ver_sym) \
11 __asm__(".symver " SYMSTR(compat_sym) "," SYMSTR(orig_sym) "@@LIBAIO_" SYMSTR(ver_sym));
13 #if defined(__i386__)
14 #include "syscall-i386.h"
15 #elif defined(__x86_64__)
16 #include "syscall-x86_64.h"
17 #elif defined(__ia64__)
18 #include "syscall-ia64.h"
19 #elif defined(__PPC__)
20 #include "syscall-ppc.h"
21 #elif defined(__s390__)
22 #include "syscall-s390.h"
23 #elif defined(__alpha__)
24 #include "syscall-alpha.h"
25 #else
26 #error "add syscall-arch.h"
27 #endif