Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2014 17:24:33 +0800
From:      Kevin Lo <kevlo@FreeBSD.org>
To:        freebsd-standards@FreeBSD.org
Subject:   Change the type of the blksize_t from uint32_t to a POSIX compliant int32_t
Message-ID:  <20141230092433.GA75137@ns.kevlo.org>

next in thread | raw e-mail | index | archive | help

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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20141230092433.GA75137>