Commit c883cf6
committed
refactor: change file off bindings in linux uclibc
The currently exposed bindings to file offset types and routines are
often found to be either lacking or incorrect in the current worktree.
This has been fixed by means of changing multiple type definitions
across child modules of the uClibc module under Linux, such that a more
cohesive interface is exposed.
Among those changes, the patch also switches the default definition of
types with LFS64 "variants," such that they use that definition by
default. This affects types such as `off_t` and `ino_t`, for which
support varied between platforms to either the regular definition
upstream or the LFS64 definition.
Beyond that, a few LFS64-specific routines have been deprecated in favor
of their unsuffixed variants. Much in the same vein as the prior
changes, this follows the trend towards supporting a single unsuffixed
type whose bitwidth is 64-bits. It has been assumed that this extends as
well to routines making use of such types.
Lastly, it must be noted that all changes submitted in this patch match
the definition of upstream uclibc-ng, but not necessarily of the
original uClibc (now unmaintained.) This was done by performing a regex
search through all header files under `**/{platform}/bits/*.h`, where
`{platform}` is replaced by one of: `common`, `common-generic`, `arm`,
`x86_64` or `mips`. The search term in question included any uses of the
`__USE_FILE_OFFSET64` or `__USE_LARGEFILE64` feature test macros. The
latter gates functionality that exposes 64-bit types, while the former
ensures the unsuffixed variants are defined in terms of the suffixed
types/routines. By default, upstream builds of uclibc-ng will have LFS
support added by default lest otherwise configured. This is shown in the
make configuration script generated by running make defconfig in the
root worktree.1 parent f4d6777 commit c883cf6
6 files changed
Lines changed: 172 additions & 306 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 7 | | |
13 | 8 | | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | | - | |
18 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
20 | 29 | | |
21 | 30 | | |
22 | 31 | | |
| |||
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 55 | + | |
| 56 | + | |
71 | 57 | | |
72 | 58 | | |
73 | 59 | | |
74 | 60 | | |
75 | 61 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
79 | 65 | | |
80 | | - | |
| 66 | + | |
81 | 67 | | |
82 | | - | |
| 68 | + | |
83 | 69 | | |
84 | | - | |
| 70 | + | |
85 | 71 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 72 | + | |
| 73 | + | |
96 | 74 | | |
97 | 75 | | |
98 | 76 | | |
| |||
128 | 106 | | |
129 | 107 | | |
130 | 108 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 109 | | |
163 | 110 | | |
164 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
| 26 | + | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
30 | | - | |
31 | | - | |
32 | | - | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | | - | |
| 41 | + | |
35 | 42 | | |
36 | | - | |
| 43 | + | |
37 | 44 | | |
38 | | - | |
| 45 | + | |
39 | 46 | | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | 52 | | |
84 | 53 | | |
85 | 54 | | |
| |||
108 | 77 | | |
109 | 78 | | |
110 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
111 | 86 | | |
112 | 87 | | |
113 | 88 | | |
| |||
173 | 148 | | |
174 | 149 | | |
175 | 150 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 151 | | |
207 | 152 | | |
208 | 153 | | |
| |||
228 | 173 | | |
229 | 174 | | |
230 | 175 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 176 | | |
242 | 177 | | |
243 | 178 | | |
| |||
665 | 600 | | |
666 | 601 | | |
667 | 602 | | |
668 | | - | |
669 | 603 | | |
670 | 604 | | |
671 | 605 | | |
| |||
675 | 609 | | |
676 | 610 | | |
677 | 611 | | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
678 | 619 | | |
679 | 620 | | |
680 | 621 | | |
681 | 622 | | |
682 | 623 | | |
683 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
684 | 632 | | |
685 | 633 | | |
686 | 634 | | |
| |||
0 commit comments