Skip to content

Commit 64d8032

Browse files
committed
std.os.linux: remove unused MMAP2_UNIT constant
1 parent 079cb64 commit 64d8032

File tree

8 files changed

+0
-18
lines changed

8 files changed

+0
-18
lines changed

lib/std/os/linux/arm.zig

-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ pub fn restore_rt() callconv(.naked) noreturn {
170170
}
171171
}
172172

173-
pub const MMAP2_UNIT = 4096;
174-
175173
pub const F = struct {
176174
pub const DUPFD = 0;
177175
pub const GETFD = 1;

lib/std/os/linux/hexagon.zig

-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ pub const Stat = extern struct {
251251

252252
pub const Elf_Symndx = u32;
253253

254-
pub const MMAP2_UNIT = 4096;
255-
256254
pub const VDSO = void;
257255

258256
/// TODO

lib/std/os/linux/m68k.zig

-4
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,6 @@ pub const Stat = extern struct {
284284

285285
pub const Elf_Symndx = u32;
286286

287-
// m68k has multiple minimum page sizes.
288-
// glibc sets MMAP2_PAGE_UNIT to -1 so it is queried at runtime.
289-
pub const MMAP2_UNIT = -1;
290-
291287
// glibc 112a0ae18b831bf31f44d81b82666980312511d6
292288
pub const VDSO = void;
293289

lib/std/os/linux/mips.zig

-2
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,6 @@ pub const F = struct {
294294
pub const GETOWNER_UIDS = 17;
295295
};
296296

297-
pub const MMAP2_UNIT = 4096;
298-
299297
pub const VDSO = struct {
300298
pub const CGT_SYM = "__vdso_clock_gettime";
301299
pub const CGT_VER = "LINUX_2.6";

lib/std/os/linux/mips64.zig

-2
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,6 @@ pub const F = struct {
273273
pub const GETOWNER_UIDS = 17;
274274
};
275275

276-
pub const MMAP2_UNIT = 4096;
277-
278276
pub const VDSO = struct {
279277
pub const CGT_SYM = "__vdso_clock_gettime";
280278
pub const CGT_VER = "LINUX_2.6";

lib/std/os/linux/powerpc.zig

-2
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,5 @@ pub const ucontext_t = extern struct {
348348

349349
pub const Elf_Symndx = u32;
350350

351-
pub const MMAP2_UNIT = 4096;
352-
353351
/// TODO
354352
pub const getcontext = {};

lib/std/os/linux/riscv32.zig

-2
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,6 @@ pub const Stat = extern struct {
256256

257257
pub const Elf_Symndx = u32;
258258

259-
pub const MMAP2_UNIT = 4096;
260-
261259
pub const VDSO = struct {
262260
pub const CGT_SYM = "__vdso_clock_gettime";
263261
pub const CGT_VER = "LINUX_4.15";

lib/std/os/linux/x86.zig

-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ pub const F = struct {
230230
pub const UNLCK = 2;
231231
};
232232

233-
pub const MMAP2_UNIT = 4096;
234-
235233
pub const VDSO = struct {
236234
pub const CGT_SYM = "__vdso_clock_gettime";
237235
pub const CGT_VER = "LINUX_2.6";

0 commit comments

Comments
 (0)