+2017-07-15 John E. Malmberg <wb8tyw@gmail.com>
+
+ sys_resource: Add support for OpenVMS.
+ * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
+ * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
+
2017-07-15 John E. Malmberg <wb8tyw@gmail.com>
Bruno Haible <bruno@clisp.org>
On some platforms, this header file requires that <sys/types.h> and
<sys/time.h> already be included:
FreeBSD 5.0.
+@item
+On some platforms, this header file does not define the @code{RUSAGE_SELF} and
+@code{RUSAGE_CHILDREN} constants:
+OpenVMS.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On some platforms, this header does not define some or all of the
-symbolic constants required by POSIX@. For example, Android does not
-define @code{RLIM_SAVED_CUR} or @code{RLIM_SAVED_MAX}.
+symbolic constants required by POSIX@. For example, OpenVMS and Android do
+not define @code{RLIM_SAVED_CUR} or @code{RLIM_SAVED_MAX}.
@end itemize
}
# endif
+#else
+
+# ifdef __VMS /* OpenVMS */
+/* Define the RUSAGE_* constants. */
+# ifndef RUSAGE_SELF
+# define RUSAGE_SELF 0
+# endif
+# ifndef RUSAGE_CHILDREN
+# define RUSAGE_CHILDREN -1
+# endif
+# endif
+
#endif
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */