changeset 1773:4643fc05d753

* cdl/stdio.cdl (CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS): New option, to control whether or not fdopen()/fileno() are implemented.
author jlarmour
date Mon, 27 Sep 2004 11:27:08 +0000
parents 2821f66e3f5a
children 80c638069a65
files packages/language/c/libc/stdio/current/ChangeLog packages/language/c/libc/stdio/current/cdl/stdio.cdl
diffstat 2 files changed, 16 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/language/c/libc/stdio/current/ChangeLog
+++ b/packages/language/c/libc/stdio/current/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-27  Jonathan Larmour  <jifl@eCosCentric.com>
+
+	* cdl/stdio.cdl (CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS): New option,
+	to control whether or not fdopen()/fileno() are implemented.
+
 2004-08-18  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* cdl/stdio.cdl (CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE): Only use
--- a/packages/language/c/libc/stdio/current/cdl/stdio.cdl
+++ b/packages/language/c/libc/stdio/current/cdl/stdio.cdl
@@ -274,10 +274,9 @@ cdl_package CYGPKG_LIBC_STDIO {
             scanf() family of functions."
     }
     
-    cdl_option CYGPKG_LIBC_STDIO_OPEN {
+    cdl_component CYGPKG_LIBC_STDIO_OPEN {
         display       "Dynamic opening/closing of files"
         requires      CYGINT_ISO_MALLOC
-        implements    CYGINT_ISO_STDIO_POSIX_FDFUNCS
         default_value { 0 != CYGINT_ISO_MALLOC }
         description   "
             fopen() and fclose() use dynamic memory
@@ -288,6 +287,16 @@ cdl_package CYGPKG_LIBC_STDIO {
             fopen() and fclose(). If disabled, only the
             default console streams - stdin, stdout and
             stderr - will be available."
+
+        cdl_option CYGFUN_LIBC_STDIO_OPEN_POSIX_FDFUNCS {
+            display       "POSIX fdopen/fileno functions"
+            active_if     CYGPKG_LIBC_STDIO_FILEIO
+            implements    CYGINT_ISO_STDIO_POSIX_FDFUNCS
+            calculated    1
+            description   "This identifies to the rest of the system
+                           whether the POSIX fdopen() and
+                           fileno() functions are implemented."
+        }
     }
     
     cdl_option CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE {