Skip to contentSkip to conversation

timespec.3type: tfix: use correct name for nanosecond field

PATCH In review Thomas Weißschuh 2 participants 2 messages Jan 3, 2023 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 timespec.3type: tfix: use correct name for nanosecond field

The field is correctly called "tv_nsec" as it is also used in other places in the manpage.

---
 man3type/timespec.3type | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
man3type/timespec.3type +1 -1
index fdddcc778d6c..7cd80ce8669b 100644
@@ -16,7 +16,7 @@ Standard C library
 .PP
 .B struct timespec {
 .BR "    time_t  tv_sec;" "   /* Seconds */"
-.BR "    long    tv_usec;" "  /* Nanoseconds [" 0 ", " 999999999 "] */"
+.BR "    long    tv_nsec;" "  /* Nanoseconds [" 0 ", " 999999999 "] */"
 .B };
 .EE
 .SH DESCRIPTION

base-commit: 7474e450de3dc6c2b96fadd3271b1643b4f094a6

Signature · 1 line
2.39.0
#1 lore raw

Hi Thomas,

Quoted 4 lines · Thomas Weißschuh

The field is correctly called "tv_nsec" as it is also used in other places in the manpage.

Thanks. Patch applied. I had seen it, and I thought I had fixed it recently. It seems I didn't.

Cheers,

Alex

Quoted 19 lines
---
  man3type/timespec.3type | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
man3type/timespec.3type +1 -1
index fdddcc778d6c..7cd80ce8669b 100644
@@ -16,7 +16,7 @@ Standard C library
  .PP
  .B struct timespec {
  .BR "    time_t  tv_sec;" "   /* Seconds */"
-.BR "    long    tv_usec;" "  /* Nanoseconds [" 0 ", " 999999999 "] */"
+.BR "    long    tv_nsec;" "  /* Nanoseconds [" 0 ", " 999999999 "] */"
  .B };
  .EE
  .SH DESCRIPTION

base-commit: 7474e450de3dc6c2b96fadd3271b1643b4f094a6

Signature · 1 line
<http://www.alejandro-colomar.es/>