Skip to content

Commit 7ddcf7a

Browse files
[libc] Change fsfilcnt_t and fsblkcnt_t to be 64-bits long (#99876)
In 32-bit systems with 64-bit offsets, both fsfilcnt_t and fsblkcnt_t are 64-bit long, just like 64-bit systems. This patch changes both types to be 64-bit long for all platforms and follows the reasoning used to change off_t: the standard only requires it to be an unsigned int, so making it 64-bit long doesn't violate this property. It should be NFC for 64-bit systems.
1 parent 2e6558b commit 7ddcf7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/include/llvm-libc-types/fsblkcnt_t.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
#ifndef LLVM_LIBC_TYPES_FSBLKCNT_T_H
1010
#define LLVM_LIBC_TYPES_FSBLKCNT_T_H
1111

12-
typedef __SIZE_TYPE__ fsblkcnt_t;
12+
typedef __UINT64_TYPE__ fsblkcnt_t;
1313

1414
#endif // LLVM_LIBC_TYPES_FSBLKCNT_T_H

libc/include/llvm-libc-types/fsfilcnt_t.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
#ifndef LLVM_LIBC_TYPES_FSFILCNT_T_H
1010
#define LLVM_LIBC_TYPES_FSFILCNT_T_H
1111

12-
typedef __SIZE_TYPE__ fsfilcnt_t;
12+
typedef __UINT64_TYPE__ fsfilcnt_t;
1313

1414
#endif // LLVM_LIBC_TYPES_FSFILCNT_T_H

0 commit comments

Comments
 (0)