Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 886569 Details for
Bug 722672
dev-libs/libaio: broken on x32, causes sys-fs/lvm2 runtime failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch for libaio
libaio-x32.patch (text/plain), 1.50 KB, created by
Andrii Batyiev
on 2024-03-03 03:36:05 UTC
(
hide
)
Description:
proposed patch for libaio
Filename:
MIME Type:
Creator:
Andrii Batyiev
Created:
2024-03-03 03:36:05 UTC
Size:
1.50 KB
patch
obsolete
>diff -Naur libaio-0.3.113/src/syscall-x86_64.h libaio-0.3.113_new/src/syscall-x86_64.h >--- libaio-0.3.113/src/syscall-x86_64.h 2022-03-28 18:30:33.000000000 +0300 >+++ libaio-0.3.113_new/src/syscall-x86_64.h 2024-03-03 03:28:46.385275207 +0200 >@@ -1,6 +1,16 @@ >+#if ! defined(__ILP32__) > #define __NR_io_setup 206 > #define __NR_io_destroy 207 > #define __NR_io_getevents 208 > #define __NR_io_submit 209 > #define __NR_io_cancel 210 > #define __NR_io_pgetevents 333 >+#else >+#define __X32_SYSCALL_BIT 0x40000000 >+#define __NR_io_setup (__X32_SYSCALL_BIT + 543) >+#define __NR_io_destroy (__X32_SYSCALL_BIT + 207) >+#define __NR_io_getevents (__X32_SYSCALL_BIT + 208) >+#define __NR_io_submit (__X32_SYSCALL_BIT + 544) >+#define __NR_io_cancel (__X32_SYSCALL_BIT + 210) >+#define __NR_io_pgetevents (__X32_SYSCALL_BIT + 333) >+#endif >diff -Naur libaio-0.3.113/src/io_pgetevents.c libaio-0.3.113_new/src/io_pgetevents.c >--- libaio-0.3.113/src/io_pgetevents.c 2022-03-28 18:30:33.000000000 +0300 >+++ libaio-0.3.113_new/src/io_pgetevents.c 2024-03-03 03:59:26.934265178 +0200 >@@ -21,6 +21,7 @@ > #include <stdlib.h> > #include <time.h> > #include <signal.h> >+#include <stdint.h> > #include "syscall.h" > #include "aio_ring.h" > >@@ -33,10 +34,17 @@ > struct io_event *events, struct timespec *timeout, > sigset_t *sigmask) > { >+#if ! defined(__ILP32__) > struct { > unsigned long ss; > unsigned long ss_len; > } data; >+#else >+ struct { >+ uint64_t ss; >+ uint64_t ss_len; >+ } data; >+#endif > > if (aio_ring_is_empty(ctx, timeout)) > return 0;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 722672
:
638422
|
638424
| 886569