debuggers.hg

view tools/libaio/src/syscall.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
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