]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grantpt.3, ptsname.3, unlockpt.3: Update feature test macro-requirements for glibc...
authorFerdinand Thiessen <f.thiessen@gmx.de>
Fri, 16 Jun 2017 07:40:55 +0000 (09:40 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 16 Jun 2017 09:42:36 +0000 (11:42 +0200)
Cowritten-by: Michael Kerrisk <mtk.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/grantpt.3
man3/ptsname.3
man3/unlockpt.3

index c1e5c282b9499e980f12c732e34d64de1d513059..f3ce0e6699b45de0ba7285b280b1792ef4b0dced 100644 (file)
@@ -6,13 +6,27 @@
 .SH NAME
 grantpt \- grant access to the slave pseudoterminal
 .SH SYNOPSIS
-.nf
-.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
-.br
 .B #include <stdlib.h>
 .sp
 .BI "int grantpt(int " fd ");"
-.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.PP
+.ad l
+.BR grantpt ():
+.br
+.RS 4
+Since glibc 2.24:
+    _XOPEN_SOURCE\ >=\ 500 ||
+        (_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED)
+.br
+Glibc 2.23 and earlier:
+    _XOPEN_SOURCE
+.RE
+.ad
 .SH DESCRIPTION
 The
 .BR grantpt ()
index 90133fed4dce3e24eb85300baad5119898cb0180..0ce88a1717200fdeed1683d59739059274e4afd5 100644 (file)
@@ -8,19 +8,32 @@
 .SH NAME
 ptsname, ptsname_r \- get the name of the slave pseudoterminal
 .SH SYNOPSIS
-.nf
-.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
-.br
 .B #include <stdlib.h>
 .sp
 .BI "char *ptsname(int " fd ");"
-.sp
-.BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
 .br
-.B #include <stdlib.h>
-.sp
 .BI "int ptsname_r(int " fd ", char *" buf ", size_t " buflen ");"
-.fi
+.PP
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.PP
+.ad l
+.BR ptsname ():
+.br
+.RS 4
+Since glibc 2.24:
+    _XOPEN_SOURCE\ >=\ 500 ||
+        (_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED)
+.br
+Glibc 2.23 and earlier:
+    _XOPEN_SOURCE
+.RE
+.PP
+.BR ptsname_r ():
+    _GNU_SOURCE
+.ad
 .SH DESCRIPTION
 The
 .BR ptsname ()
index c0a8199ab2b948791e3aab347fd07aa6df39dfe8..0b41d6ad4434c706bbf63a0f4ae1a90956c78e88 100644 (file)
@@ -6,13 +6,29 @@
 .SH NAME
 unlockpt \- unlock a pseudoterminal master/slave pair
 .SH SYNOPSIS
-.nf
-.BR "#define _XOPEN_SOURCE" "       /* See feature_test_macros(7) */"
+.B #define _XOPEN_SOURCE
 .br
 .B #include <stdlib.h>
 .sp
 .BI "int unlockpt(int " fd ");"
-.fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.PP
+.ad l
+.BR unlockpt ():
+.br
+.RS 4
+Since glibc 2.24:
+    _XOPEN_SOURCE\ >=\ 500 ||
+        (_XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTENDED)
+.br
+Glibc 2.23 and earlier:
+    _XOPEN_SOURCE
+.RE
+.ad
 .SH DESCRIPTION
 The
 .BR unlockpt ()