Skip to contentSkip to conversation

man3/fopencookie.3: Add missing _GNU_SOURCE requirement

PATCH In review Petr Baudis 2 participants 2 messages Dec 4, 2008 – Dec 5, 2008 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 man3/fopencookie.3: Add missing _GNU_SOURCE requirement

man3/fopencookie.3 +2 -0
index a69db65..5aadf04 100644
@@ -26,6 +26,7 @@
 fopencookie \- opening a custom stream
 .SH SYNOPSIS
 .nf
+.B #define _GNU_SOURCE
 .B #include <stdio.h>
 
 .BI "FILE *fopencookie(void *" cookie ", const char *" mode ,
@@ -432,6 +433,7 @@ main(int argc, char *argv[])
 .fi
 .SH SEE ALSO
 .BR fclose (3),
+.BR feature_test_macros (7),
 .BR fmemopen (3),
 .BR fopen (3),
 .BR fseek (3)

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Hi Petr,

Quoted 15 lines · Petr Baudis
man3/fopencookie.3 +1 -0
index a69db65..5aadf04 100644
@@ -26,6 +26,7 @@
 fopencookie \- opening a custom stream
 .SH SYNOPSIS
 .nf
+.B #define _GNU_SOURCE
 .B #include <stdio.h>
 
 .BI "FILE *fopencookie(void *" cookie ", const char *" mode ,

man3/fopencookie.3 main(int argc, char *argv[]) · line 436

Quoted 4 lines
man3/fopencookie.3 +1 -0
@@ -432,6 +433,7 @@ main(int argc, char *argv[])
 .fi
 .SH SEE ALSO
 .BR fclose (3),
+.BR feature_test_macros (7),

Good spotting to add this, but I moved it to the end of the list. See previous mail.

man3/fopencookie.3 main(int argc, char *argv[]) · line 439

Quoted 3 lines
man3/fopencookie.3 +0 -0
 .BR fmemopen (3),
 .BR fopen (3),
 .BR fseek (3)

Changes applies for 3.15.

Thanks!

Cheers,

Michael

Signature · 9 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html