From: Alejandro Colomar Date: Wed, 6 Oct 2021 19:47:14 +0000 (+0200) Subject: clock_getres.2: Add LIBRARY section X-Git-Tag: man-pages-5.19-rc1~469 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=430fb656cc768ea2bf5ae556a12fa0ff407b28b4;p=thirdparty%2Fman-pages.git clock_getres.2: Add LIBRARY section --- diff --git a/man2/clock_getres.2 b/man2/clock_getres.2 index 8c836244da..22713f2aa6 100644 --- a/man2/clock_getres.2 +++ b/man2/clock_getres.2 @@ -11,6 +11,14 @@ .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 @@ -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)):