Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src According to Opengroup online specifications[1], _POSIX_CPUT...



details:   https://anonhg.NetBSD.org/src/rev/6c1e61957524
branches:  trunk
changeset: 346607:6c1e61957524
user:      njoly <njoly%NetBSD.org@localhost>
date:      Thu Jul 21 16:01:58 2016 +0000

description:
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

diffstat:

 include/limits.h |  4 +---
 sys/sys/unistd.h |  6 +++++-
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (45 lines):

diff -r 5aa230394020 -r 6c1e61957524 include/limits.h
--- a/include/limits.h  Thu Jul 21 12:29:37 2016 +0000
+++ b/include/limits.h  Thu Jul 21 16:01:58 2016 +0000
@@ -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
diff -r 5aa230394020 -r 6c1e61957524 sys/sys/unistd.h
--- a/sys/sys/unistd.h  Thu Jul 21 12:29:37 2016 +0000
+++ b/sys/sys/unistd.h  Thu Jul 21 16:01:58 2016 +0000
@@ -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 */



Home | Main Index | Thread Index | Old Index