Skip to contentSkip to conversation

time_t.3type: reference _TIME_BITS

PATCH Superseded Sam James 2 participants 2 messages Oct 13, 2022 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sam James

author
#0 lore raw

PATCH 1/1 time_t.3type: reference _TIME_BITS

Just like we do with _FILE_OFFSET_BITS in off_t.3type.

Reference: https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
Reference: https://sourceware.org/pipermail/libc-alpha/2022-January/134985.html

---
 man3type/time_t.3type | 6 ++++++
 1 file changed, 6 insertions(+)
man3type/time_t.3type +6 -0
index d40dd0c0d..9b8f07356 100644
@@ -70,6 +70,12 @@ POSIX.1-2001 and later.
 POSIX.1-2001 and later.
 .PD
 .SH NOTES
+On some architectures,
+the width of
+.I time_t
+can be controlled with the feature test macro
+.BR _TIME_BITS .
+.PP
 .TP
 .I time_t
 The following headers also provide
Signature · 1 line
2.38.0
#1 lore raw

Hi Sam,

Quoted 5 lines · Sam James

Just like we do with _FILE_OFFSET_BITS in off_t.3type.

Reference: https://wiki.gentoo.org/wiki/Project:Toolchain/time64_migration
Reference: https://sourceware.org/pipermail/libc-alpha/2022-January/134985.html

Looks good. However, I see there's no documentation at all about _TIME_BITS in the man-pages. Maybe you want to send a patch for ftm(7)?

Thanks!

Alex

Quoted 21 lines
---
  man3type/time_t.3type | 6 ++++++
  1 file changed, 6 insertions(+)
man3type/time_t.3type +6 -0
index d40dd0c0d..9b8f07356 100644
@@ -70,6 +70,12 @@ POSIX.1-2001 and later.
  POSIX.1-2001 and later.
  .PD
  .SH NOTES
+On some architectures,
+the width of
+.I time_t
+can be controlled with the feature test macro
+.BR _TIME_BITS .
+.PP
  .TP
  .I time_t
  The following headers also provide
Signature · 1 line
<http://www.alejandro-colomar.es/>