From 0af7d7fdb50a04232c7073547eaed027f8a06b5d Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Mon, 21 Jul 2025 00:22:38 +0000 Subject: [PATCH] Revert gid_t/uid_t --- include/sys/types_internal.h | 4 ++-- src/platform/types.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/sys/types_internal.h b/include/sys/types_internal.h index dd8cb0006e..9df164ec2a 100644 --- a/include/sys/types_internal.h +++ b/include/sys/types_internal.h @@ -5,8 +5,8 @@ typedef long blksize_t; typedef long dev_t; typedef unsigned long ino_t; -typedef unsigned int gid_t; -typedef unsigned int uid_t; +typedef int gid_t; +typedef int uid_t; typedef int mode_t; typedef unsigned long nlink_t; typedef long long off_t; diff --git a/src/platform/types.rs b/src/platform/types.rs index 999a9505d5..a6fdf693b5 100644 --- a/src/platform/types.rs +++ b/src/platform/types.rs @@ -61,8 +61,8 @@ pub type mode_t = c_int; pub type time_t = c_longlong; pub type pid_t = c_int; pub type id_t = c_uint; -pub type gid_t = c_uint; -pub type uid_t = c_uint; +pub type gid_t = c_int; +pub type uid_t = c_int; pub type dev_t = c_long; pub type ino_t = c_ulonglong; pub type nlink_t = c_ulong;