arch: wire up preadv2/pwritev2 for more architectures
[fio.git] / arch / arch-sparc.h
CommitLineData
697a606c
JA
1#ifndef ARCH_SPARC_H
2#define ARCH_SPARC_H
3
cca84643 4#define FIO_ARCH (arch_sparc)
697a606c
JA
5
6#ifndef __NR_ioprio_set
7#define __NR_ioprio_set 196
8#define __NR_ioprio_get 218
9#endif
10
11#ifndef __NR_fadvise64
12#define __NR_fadvise64 209
13#endif
14
15#ifndef __NR_sys_splice
16#define __NR_sys_splice 232
17#define __NR_sys_tee 280
18#define __NR_sys_vmsplice 25
19#endif
20
43cf00fd
JA
21#ifndef __NR_preadv2
22#define __NR_preadv2 358
23#endif
24#ifndef __NR_pwritev2
25#define __NR_pwritev2 359
26#endif
27
697a606c
JA
28#define nop do { } while (0)
29
30#define read_barrier() __asm__ __volatile__ ("" : : : "memory")
44c47feb 31#define write_barrier() __asm__ __volatile__ ("" : : : "memory")
697a606c
JA
32
33#endif