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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to