Change the type of the blksize_t from uint32_t to a POSIX compliant int32_t
Kevin Lo
kevlo at FreeBSD.org
Tue Dec 30 09:26:08 UTC 2014
Hi,
POSIX says that the blksize_t shall be signed integer types.
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
I have verified that this patch passes make universe.
Index: sys/sys/_types.h
===================================================================
--- sys/sys/_types.h (revision 276407)
+++ sys/sys/_types.h (working copy)
@@ -35,7 +35,7 @@
/*
* Standard type definitions.
*/
-typedef __uint32_t __blksize_t; /* file block size */
+typedef __int32_t __blksize_t; /* file block size */
typedef __int64_t __blkcnt_t; /* file block count */
typedef __int32_t __clockid_t; /* clock_gettime()... */
typedef __uint32_t __fflags_t; /* file flags */
More information about the freebsd-standards
mailing list