Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jun 2016 07:45:03 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301110 - head/sys/sys
Message-ID:  <201606010745.u517j3Qb033847@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Wed Jun  1 07:45:03 2016
New Revision: 301110
URL: https://svnweb.freebsd.org/changeset/base/301110

Log:
  Define the id_t type as required by POSIX.
  
  It seems that all versions of POSIX that I could find require that
  <sys/resource.h> defines id_t. Define it together with rlim_t. While
  there, move these typedefs closer to the top of the header file, right
  after the includes, which we do in most other header files.

Modified:
  head/sys/sys/resource.h

Modified: head/sys/sys/resource.h
==============================================================================
--- head/sys/sys/resource.h	Wed Jun  1 07:11:54 2016	(r301109)
+++ head/sys/sys/resource.h	Wed Jun  1 07:45:03 2016	(r301110)
@@ -37,6 +37,16 @@
 #include <sys/_timeval.h>
 #include <sys/_types.h>
 
+#ifndef _ID_T_DECLARED
+typedef	__id_t		id_t;
+#define	_ID_T_DECLARED
+#endif
+
+#ifndef _RLIM_T_DECLARED
+typedef	__rlim_t	rlim_t;
+#define	_RLIM_T_DECLARED
+#endif
+
 /*
  * Process priority specifications to get/setpriority.
  */
@@ -136,11 +146,6 @@ static const char *rlimit_ident[RLIM_NLI
 };
 #endif
 
-#ifndef _RLIM_T_DECLARED
-typedef	__rlim_t	rlim_t;
-#define	_RLIM_T_DECLARED
-#endif
-
 struct rlimit {
 	rlim_t	rlim_cur;		/* current (soft) limit */
 	rlim_t	rlim_max;		/* maximum value for rlim_cur */



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