summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch')
-rw-r--r--meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch35
1 files changed, 21 insertions, 14 deletions
diff --git a/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
index 0cabdfe99f..fc6ed7ac4d 100644
--- a/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
+++ b/meta/recipes-devtools/strace/strace/0002-tests-Replace-off64_t-with-off_t.patch
@@ -1,4 +1,4 @@
1From 579b2ebe52d4b97f954e6188df2d07e137820075 Mon Sep 17 00:00:00 2001 1From 1891db87da3b204c512f47155aaa4e692008f1bf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 15 Dec 2022 15:56:13 -0800 3Date: Thu, 15 Dec 2022 15:56:13 -0800
4Subject: [PATCH] tests: Replace off64_t with off_t 4Subject: [PATCH] tests: Replace off64_t with off_t
@@ -10,9 +10,12 @@ Upstream-Status: Submitted [https://github.com/strace/strace/pull/230]
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11--- 11---
12 tests/readahead.c | 2 +- 12 tests/readahead.c | 2 +-
13 tests/sync_file_range.c | 4 ++--
13 tests/sync_file_range2.c | 4 ++-- 14 tests/sync_file_range2.c | 4 ++--
14 2 files changed, 3 insertions(+), 3 deletions(-) 15 3 files changed, 5 insertions(+), 5 deletions(-)
15 16
17diff --git a/tests/readahead.c b/tests/readahead.c
18index 1072378..b9597e6 100644
16--- a/tests/readahead.c 19--- a/tests/readahead.c
17+++ b/tests/readahead.c 20+++ b/tests/readahead.c
18@@ -42,7 +42,7 @@ static const int fds[] = { 21@@ -42,7 +42,7 @@ static const int fds[] = {
@@ -24,29 +27,33 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
24 -0x8000000000000000LL, 27 -0x8000000000000000LL,
25 -0x5060708090a0b0c0LL, 28 -0x5060708090a0b0c0LL,
26 -1LL, 29 -1LL,
27--- a/tests/sync_file_range2.c 30diff --git a/tests/sync_file_range.c b/tests/sync_file_range.c
28+++ b/tests/sync_file_range2.c 31index e93ab6c..dc76865 100644
32--- a/tests/sync_file_range.c
33+++ b/tests/sync_file_range.c
29@@ -20,8 +20,8 @@ int 34@@ -20,8 +20,8 @@ int
30 main(void) 35 main(void)
31 { 36 {
32 const int fd = -1; 37 const int fd = -1;
33- const off64_t offset = 0xdeadbeefbadc0ded; 38- const off64_t offset = 0xdeadbeefbadc0dedULL;
34- const off64_t nbytes = 0xfacefeedcafef00d; 39- const off64_t nbytes = 0xfacefeedcafef00dULL;
35+ const off_t offset = 0xdeadbeefbadc0ded; 40+ const off_t offset = 0xdeadbeefbadc0dedULL;
36+ const off_t nbytes = 0xfacefeedcafef00d; 41+ const off_t nbytes = 0xfacefeedcafef00dULL;
37 const unsigned int flags = -1; 42 const unsigned int flags = -1;
38 43
39 int rc = sync_file_range(fd, offset, nbytes, flags); 44 int rc = sync_file_range(fd, offset, nbytes, flags);
40--- a/tests/sync_file_range.c 45diff --git a/tests/sync_file_range2.c b/tests/sync_file_range2.c
41+++ b/tests/sync_file_range.c 46index b8dc712..e4b003c 100644
47--- a/tests/sync_file_range2.c
48+++ b/tests/sync_file_range2.c
42@@ -20,8 +20,8 @@ int 49@@ -20,8 +20,8 @@ int
43 main(void) 50 main(void)
44 { 51 {
45 const int fd = -1; 52 const int fd = -1;
46- const off64_t offset = 0xdeadbeefbadc0dedULL; 53- const off64_t offset = 0xdeadbeefbadc0ded;
47- const off64_t nbytes = 0xfacefeedcafef00dULL; 54- const off64_t nbytes = 0xfacefeedcafef00d;
48+ const off_t offset = 0xdeadbeefbadc0dedULL; 55+ const off_t offset = 0xdeadbeefbadc0ded;
49+ const off_t nbytes = 0xfacefeedcafef00dULL; 56+ const off_t nbytes = 0xfacefeedcafef00d;
50 const unsigned int flags = -1; 57 const unsigned int flags = -1;
51 58
52 int rc = sync_file_range(fd, offset, nbytes, flags); 59 int rc = sync_file_range(fd, offset, nbytes, flags);