Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 722672
Collapse All | Expand All

(-)libaio-0.3.113/src/syscall-x86_64.h (+10 lines)
Lines 1-6 Link Here
1
#if ! defined(__ILP32__)
1
#define __NR_io_setup		206
2
#define __NR_io_setup		206
2
#define __NR_io_destroy		207
3
#define __NR_io_destroy		207
3
#define __NR_io_getevents	208
4
#define __NR_io_getevents	208
4
#define __NR_io_submit		209
5
#define __NR_io_submit		209
5
#define __NR_io_cancel		210
6
#define __NR_io_cancel		210
6
#define __NR_io_pgetevents	333
7
#define __NR_io_pgetevents	333
8
#else
9
#define __X32_SYSCALL_BIT       0x40000000
10
#define __NR_io_setup		(__X32_SYSCALL_BIT + 543)
11
#define __NR_io_destroy		(__X32_SYSCALL_BIT + 207)
12
#define __NR_io_getevents	(__X32_SYSCALL_BIT + 208)
13
#define __NR_io_submit		(__X32_SYSCALL_BIT + 544)
14
#define __NR_io_cancel		(__X32_SYSCALL_BIT + 210)
15
#define __NR_io_pgetevents	(__X32_SYSCALL_BIT + 333)
16
#endif
(-)libaio-0.3.113/src/io_pgetevents.c (+8 lines)
Lines 21-26 Link Here
21
#include <stdlib.h>
21
#include <stdlib.h>
22
#include <time.h>
22
#include <time.h>
23
#include <signal.h>
23
#include <signal.h>
24
#include <stdint.h>
24
#include "syscall.h"
25
#include "syscall.h"
25
#include "aio_ring.h"
26
#include "aio_ring.h"
26
27
Lines 33-42 Link Here
33
		struct io_event *events, struct timespec *timeout,
34
		struct io_event *events, struct timespec *timeout,
34
		sigset_t *sigmask)
35
		sigset_t *sigmask)
35
{
36
{
37
#if ! defined(__ILP32__)
36
	struct {
38
	struct {
37
		unsigned long ss;
39
		unsigned long ss;
38
		unsigned long ss_len;
40
		unsigned long ss_len;
39
	} data;
41
	} data;
42
#else
43
	struct {
44
		uint64_t ss;
45
		uint64_t ss_len;
46
	} data;
47
#endif
40
48
41
	if (aio_ring_is_empty(ctx, timeout))
49
	if (aio_ring_is_empty(ctx, timeout))
42
		return 0;
50
		return 0;

Return to bug 722672