Skip to contentSkip to conversation

man3/opendir.3: Specify feature traits for fdopendir(3)

PATCH In review Petr Baudis 2 participants 2 messages May 15, 2010 – May 24, 2010 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/opendir.3: Specify feature traits for fdopendir(3)

Currently, there is no note on the fact that fdopendir() is POSIX.2008-only.

---

man3/opendir.3 +12 -0
index a5c64a3..8e224ee 100644
@@ -39,6 +39,18 @@ opendir, fdopendir \- open a directory
 .BI "DIR *opendir(const char *" name );
 .BI "DIR *fdopendir(int " fd );
 .fi
+.sp
+.in -4n
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR fdopendir ():
+.br
+Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
+.br
+Before glibc 2.10:
+_GNU_SOURCE
 .SH DESCRIPTION
 The
 .BR opendir ()

--
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

#2 lore raw
In reply to a message not in the archive
Quoted 4 lines · Petr Baudis

Currently, there is no note on the fact that fdopendir() is POSIX.2008-only.

Thanks Petr. Applied for 3.25.

Cheers,

Michael

Quoted 26 lines

---

man3/opendir.3 +0 -0
index a5c64a3..8e224ee 100644
@@ -39,6 +39,18 @@ opendir, fdopendir \- open a directory
  .BI "DIR *opendir(const char *" name );
  .BI "DIR *fdopendir(int " fd );

 .fi
+.sp
+.in -4n

man3/opendir.3 +10 -0
+Feature Test Macro Requirements for glibc (see
+.BR feature_test_macros (7)):
+.in
+.sp
+.BR fdopendir ():
+.br
+Since glibc 2.10: _XOPEN_SOURCE >= 700 || _POSIX_C_SOURCE >= 200809L
+.br
+Before glibc 2.10:
+_GNU_SOURCE

 .SH DESCRIPTION
 The
 .BR opendir ()

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
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