From ba3b3528914f8e886b5fe2cba714de34c176a921 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 31 Jul 2023 10:52:12 -0700 Subject: [PATCH] Revert "std.os: fix uname usage." This reverts commit 138f1253deb48434af707ec5e9124e889520be08. --- lib/std/c/darwin.zig | 12 ------------ lib/std/c/freebsd.zig | 12 ------------ 2 files changed, 24 deletions(-) diff --git a/lib/std/c/darwin.zig b/lib/std/c/darwin.zig index f1f706fa6c..afa50c4286 100644 --- a/lib/std/c/darwin.zig +++ b/lib/std/c/darwin.zig @@ -4159,15 +4159,3 @@ pub const PTHREAD_STACK_MIN = switch (builtin.cpu.arch) { .arm, .aarch64 => 16 * 1024, else => 8 * 1024, }; - -pub const _SYS_NAMELEN = 256; - -pub const utsname = extern struct { - sysname: [255:0]u8, - nodename: [255:0]u8, - release: [255:0]u8, - version: [255:0]u8, - machine: [255:0]u8, -}; - -pub extern "c" fn uname(u: *utsname) c_int; diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index 546df22a1d..8c7548e174 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -2824,15 +2824,3 @@ pub const PTHREAD_STACK_MIN = switch (builtin.cpu.arch) { .x86, .powerpc => 4 * 512, else => 4 * 1024, }; - -pub const SYS_NMLN = 256; - -pub const utsname = extern struct { - sysname: [255:0]u8, - nodename: [255:0]u8, - release: [255:0]u8, - version: [255:0]u8, - machine: [255:0]u8, -}; - -pub extern "c" fn uname(u: *utsname) c_int;