From 5057986451d77193d2e72d0f5dfeb803bc2cf6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20S=C5=82omi=C5=84ski?= Date: Fri, 27 Aug 2021 05:32:39 +0200 Subject: [PATCH] abis/linux: make nlink_t 64-bit. nlink_t was erroneously defined as 32-bit, which caused some of the later members of struct stat (st_mode, st_gid, st_uid) to unexpectedly shift. --- abis/linux/x86_64/mode_t.h | 2 +- abis/linux/x86_64/nlink_t.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/abis/linux/x86_64/mode_t.h b/abis/linux/x86_64/mode_t.h index c8332998..8374c125 100644 --- a/abis/linux/x86_64/mode_t.h +++ b/abis/linux/x86_64/mode_t.h @@ -2,7 +2,7 @@ #ifndef _ABIBITS_MODE_T_H #define _ABIBITS_MODE_T_H -typedef int mode_t; +typedef unsigned int mode_t; #endif // _ABIBITS_MODE_T_H diff --git a/abis/linux/x86_64/nlink_t.h b/abis/linux/x86_64/nlink_t.h index cb1e76b4..e0d9322d 100644 --- a/abis/linux/x86_64/nlink_t.h +++ b/abis/linux/x86_64/nlink_t.h @@ -2,7 +2,7 @@ #ifndef _ABIBITS_NLINK_T_H #define _ABIBITS_NLINK_T_H -typedef int nlink_t; +typedef unsigned long nlink_t; #endif // _ABIBITS_NLINK_T_H