From: Michael Kerrisk Date: Fri, 15 Jan 2021 22:33:07 +0000 (+0100) Subject: crypt.3: Reformat FTM info (in preparation for next patch) X-Git-Tag: man-pages-5.11~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7200ac321f2138cb1bbf57eddd2c94ffc65d4cb;p=thirdparty%2Fman-pages.git crypt.3: Reformat FTM info (in preparation for next patch) Signed-off-by: Michael Kerrisk --- diff --git a/man3/crypt.3 b/man3/crypt.3 index 746b6cab66..e0d47e3071 100644 --- a/man3/crypt.3 +++ b/man3/crypt.3 @@ -38,12 +38,10 @@ crypt, crypt_r \- password and data encryption .SH SYNOPSIS .nf -.BR "#define _XOPEN_SOURCE" " /* See feature_test_macros(7) */" .B #include .PP .BI "char *crypt(const char *" key ", const char *" salt ); .PP -.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */" .B #include .PP .BI "char *crypt_r(const char *" key ", const char *" salt , @@ -51,6 +49,22 @@ crypt, crypt_r \- password and data encryption .fi .PP Link with \fI\-lcrypt\fP. +.PP +.RS -4 +Feature Test Macro Requirements for glibc (see +.BR feature_test_macros (7)): +.RE +.PP +.BR crypt (): +.nf + __XOPEN_SOURCE +.fi +.BR +.PP +.BR crypt_r (): +.nf + _GNU_SOURCE +.fi .SH DESCRIPTION .BR crypt () is the password encryption function.