Module Name: src
Committed By: njoly
Date: Thu Jul 21 16:01:59 UTC 2016
Modified Files:
src/include: limits.h
src/sys/sys: unistd.h
Log Message:
According to Opengroup online specifications[1], _POSIX_CPUTIME and
_POSIX_THREAD_CPUTIME options should be present in unistd.h not
limits.h. Move them with other options.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html
To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/include/limits.h
cvs rdiff -u -r1.59 -r1.60 src/sys/sys/unistd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/include/limits.h
diff -u src/include/limits.h:1.38 src/include/limits.h:1.39
--- src/include/limits.h:1.38 Fri Jun 10 23:29:20 2016
+++ src/include/limits.h Thu Jul 21 16:01:58 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: limits.h,v 1.38 2016/06/10 23:29:20 christos Exp $ */
+/* $NetBSD: limits.h,v 1.39 2016/07/21 16:01:58 njoly Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -94,8 +94,6 @@
#define _POSIX_TIMER_MAX 32
#define _POSIX_SEM_NSEMS_MAX 256
-#define _POSIX_CPUTIME 200112L
-#define _POSIX_THREAD_CPUTIME 200112L
#define _POSIX_DELAYTIMER_MAX 32
#define _POSIX_TTY_NAME_MAX 9
#define _POSIX_TZNAME_MAX 6
Index: src/sys/sys/unistd.h
diff -u src/sys/sys/unistd.h:1.59 src/sys/sys/unistd.h:1.60
--- src/sys/sys/unistd.h:1.59 Sun Jul 3 14:24:59 2016
+++ src/sys/sys/unistd.h Thu Jul 21 16:01:59 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: unistd.h,v 1.59 2016/07/03 14:24:59 christos Exp $ */
+/* $NetBSD: unistd.h,v 1.60 2016/07/21 16:01:59 njoly Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -93,6 +93,8 @@
#define _POSIX_CHOWN_RESTRICTED 1
/* clock selection */
#define _POSIX_CLOCK_SELECTION -1
+ /* cputime clock */
+#define _POSIX_CPUTIME 200112L
/* CPU type */
#undef _POSIX_CPUTYPE
/* file synchronization is available */
@@ -145,6 +147,8 @@
#define _POSIX_THREAD_ATTR_STACKSIZE 200112L
/* pthread_attr for stack address */
#define _POSIX_THREAD_ATTR_STACKADDR 200112L
+ /* thread cputime clock */
+#define _POSIX_THREAD_CPUTIME 200112L
/* _r functions */
#define _POSIX_THREAD_PRIO_PROTECT 200112L
/* PTHREAD_PRIO_PROTECT */