]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
clock_getres.2: Add LIBRARY section
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 6 Oct 2021 19:47:14 +0000 (21:47 +0200)
committerAlejandro Colomar <alx.manpages@gmail.com>
Fri, 25 Feb 2022 15:33:04 +0000 (16:33 +0100)
man2/clock_getres.2

index 8c836244dac8738a5f2db811d8ed54ab8d8c81d2..22713f2aa6e63090137d14759e2d4c4e29915058 100644 (file)
 .TH CLOCK_GETRES 2 2021-03-22 "" "Linux Programmer's Manual"
 .SH NAME
 clock_getres, clock_gettime, clock_settime \- clock and time functions
+.SH LIBRARY
+Standard C library
+.RI ( libc ", " -lc ),
+since glibc 2.17
+.PP
+Before glibc 2.17,
+Real-time library
+.RI ( librt ", " -lrt )
 .SH SYNOPSIS
 .nf
 .B #include <time.h>
@@ -21,8 +29,6 @@ clock_getres, clock_gettime, clock_settime \- clock and time functions
 .BI "int clock_settime(clockid_t " clockid ", const struct timespec *" tp );
 .fi
 .PP
-Link with \fI\-lrt\fP (only for glibc versions before 2.17).
-.PP
 .RS -4
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):