FreeBSD Bugzilla – Attachment 197167 Details for
Bug 231425
Fix C11 and POSIX 1003.1b-1993 compliance in time.h
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to make time.h C11 and POSIX 1003.1b-1993 compliant
timespec.diff (text/plain), 953 bytes, created by
Tamas Szakaly
on 2018-09-17 11:11:32 UTC
(
hide
)
Description:
patch to make time.h C11 and POSIX 1003.1b-1993 compliant
Filename:
MIME Type:
Creator:
Tamas Szakaly
Created:
2018-09-17 11:11:32 UTC
Size:
953 bytes
patch
obsolete
>diff --git a/include/time.h b/include/time.h >index 26e208ffa65..f9e59664276 100644 >--- a/include/time.h >+++ b/include/time.h >@@ -207,9 +207,12 @@ time_t posix2time(time_t t); > #include <xlocale/_time.h> > #endif > >+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) >+#include <sys/_timespec.h> > /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */ > #define TIME_UTC 1 /* time elapsed since epoch */ > int timespec_get(struct timespec *ts, int base); >+#endif > > __END_DECLS > >diff --git a/lib/libc/gen/timespec_get.c b/lib/libc/gen/timespec_get.c >index 1dd0147e933..8dff2102ee3 100644 >--- a/lib/libc/gen/timespec_get.c >+++ b/lib/libc/gen/timespec_get.c >@@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); > > #include <time.h> > >+#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) > /* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */ > > int >@@ -52,3 +53,4 @@ timespec_get(struct timespec *ts, int base) > > return base; > } >+#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231425
: 197167