]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
crypt.3: Reformat FTM info (in preparation for next patch)
authorMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 15 Jan 2021 22:33:07 +0000 (23:33 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 15 Jan 2021 22:33:07 +0000 (23:33 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/crypt.3

index 746b6cab661e61eec117268b8b82172fa5581107..e0d47e307127b0c8f03630cc73f8a515b761b763 100644 (file)
 crypt, crypt_r \- password and data encryption
 .SH SYNOPSIS
 .nf
-.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
 .B #include <unistd.h>
 .PP
 .BI "char *crypt(const char *" key ", const char *" salt );
 .PP
-.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .B #include <crypt.h>
 .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.