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:
parent
2a62cae77a
commit
5057986451
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue