diff options
| author | thegeorg <[email protected]> | 2023-07-26 17:26:21 +0300 |
|---|---|---|
| committer | thegeorg <[email protected]> | 2023-07-26 17:26:21 +0300 |
| commit | 3785d5f97965bccf048718d8717904cf50f9f8f9 (patch) | |
| tree | b7ce8ae67d7eb7fcf7767c54379f0564c281147f /contrib/libs/liburing/test/pollfree.c | |
| parent | 1f6b57071583f89299bb5abd3863d594f23c5be5 (diff) | |
Update contrib/libs/liburing to 2.4
Diffstat (limited to 'contrib/libs/liburing/test/pollfree.c')
| -rw-r--r-- | contrib/libs/liburing/test/pollfree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/libs/liburing/test/pollfree.c b/contrib/libs/liburing/test/pollfree.c index 4ed61e3091c..20a8bec60bd 100644 --- a/contrib/libs/liburing/test/pollfree.c +++ b/contrib/libs/liburing/test/pollfree.c @@ -253,7 +253,7 @@ static void kill_and_wait(int pid, int* status) } } -static void setup_test() +static void setup_test(void) { prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0); setpgrp(); @@ -343,7 +343,7 @@ static void loop(void) #define __NR_io_uring_enter 426 #endif -uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0}; +static uint64_t r[4] = {0xffffffffffffffff, 0xffffffffffffffff, 0x0, 0x0}; void execute_call(int call) { @@ -404,13 +404,13 @@ int main(int argc, char *argv[]) if (argc > 1) return 0; - ret = mmap((void *)0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); + ret = mmap((void *)0x1ffff000ul, 0x1000ul, 0ul, MAP_ANON|MAP_PRIVATE, -1, 0ul); if (ret == MAP_FAILED) return 0; - ret = mmap((void *)0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul); + ret = mmap((void *)0x20000000ul, 0x1000000ul, 7ul, MAP_ANON|MAP_PRIVATE, -1, 0ul); if (ret == MAP_FAILED) return 0; - ret = mmap((void *)0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul); + ret = mmap((void *)0x21000000ul, 0x1000ul, 0ul, MAP_ANON|MAP_PRIVATE, -1, 0ul); if (ret == MAP_FAILED) return 0; loop(); |
