]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
grantpt.3: SYNOPSIS: Explicitly show #define _XOPEN_SOURCE requirement
authorEmanuele Torre <torreemanuele6@gmail.com>
Sun, 26 May 2024 06:42:18 +0000 (08:42 +0200)
committerAlejandro Colomar <alx@kernel.org>
Sun, 26 May 2024 10:37:34 +0000 (12:37 +0200)
Like the unlockpt(3) function, grantpt(3) requires _XOPEN_SOURCE to be
defined before including stdlib.h.

unlockpt.3 explicitly shows this requirement in its SYNOPSIS:

    SYNOPSIS
           #define _XOPEN_SOURCE
           #include <stdlib.h>

           int unlockpt(int fd);

But grantpt.3 did not:

    SYNOPSIS
           #include <stdlib.h>

           int grantpt(int fd);

Message-ID: <20240526064227.937757-1-torreemanuele6@gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/grantpt.3

index 94526691b591a0591ee26c387718fae4213e1cfd..f2d70ebd6f39ec3f41b72de622fb03ace9c33d12 100644 (file)
@@ -11,6 +11,7 @@ Standard C library
 .RI ( libc ", " \-lc )
 .SH SYNOPSIS
 .nf
+.B #define _XOPEN_SOURCE
 .B #include <stdlib.h>
 .P
 .BI "int grantpt(int " fd ");"