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.
This commit is contained in:
Kacper Słomiński 2021-08-27 05:32:39 +02:00
parent 2a62cae77a
commit 5057986451
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
#ifndef _ABIBITS_MODE_T_H #ifndef _ABIBITS_MODE_T_H
#define _ABIBITS_MODE_T_H #define _ABIBITS_MODE_T_H
typedef int mode_t; typedef unsigned int mode_t;
#endif // _ABIBITS_MODE_T_H #endif // _ABIBITS_MODE_T_H

View file

@ -2,7 +2,7 @@
#ifndef _ABIBITS_NLINK_T_H #ifndef _ABIBITS_NLINK_T_H
#define _ABIBITS_NLINK_T_H #define _ABIBITS_NLINK_T_H
typedef int nlink_t; typedef unsigned long nlink_t;
#endif // _ABIBITS_NLINK_T_H #endif // _ABIBITS_NLINK_T_H