Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2017 16:29:56 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318959 - head/sys/sys
Message-ID:  <201705261629.v4QGTuLc000868@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri May 26 16:29:55 2017
New Revision: 318959
URL: https://svnweb.freebsd.org/changeset/base/318959

Log:
  Define a new __INO64 macro in <sys/_types.h>, to indicate the system
  uses 64-bit inode numbers.  Programs can use this to avoid including
  <sys/param.h>, with its associated namespace pollution.
  
  Reviewed by:	kib

Modified:
  head/sys/sys/_types.h

Modified: head/sys/sys/_types.h
==============================================================================
--- head/sys/sys/_types.h	Fri May 26 16:29:00 2017	(r318958)
+++ head/sys/sys/_types.h	Fri May 26 16:29:55 2017	(r318959)
@@ -120,4 +120,11 @@ typedef union {
 
 typedef __uintmax_t     __rman_res_t;
 
+/*
+ * When the following macro is defined, the system uses 64-bit inode numbers.
+ * Programs can use this to avoid including <sys/param.h>, with its associated
+ * namespace pollution.
+ */
+#define	__INO64
+
 #endif /* !_SYS__TYPES_H_ */



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