⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stdio.cdl

📁 ecos实时嵌入式操作系统
💻 CDL
📖 第 1 页 / 共 2 页
字号:
                (para 7.9.1), and says it must be at least 256                (para 7.9.2)."        }                cdl_option CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF {            display       "setbuf()/setvbuf() allows dynamic setting"            default_value 1            description   "                This option controls whether I/O buffers are                implemented dynamically within the stdio                implementation. Otherwise they will be static,                and cannot be changed by setbuf()/setvbuf(). If                they are static (i.e. this option is disabled),                any attempt to use an arbitrary buffer size, or                to pass a user-supplied buffer to setbuf() or                setvbuf() will fail - the buffer is implemented                internally as a static array taking the size                of the configuration option BUFSIZ. The only                exception is if a user buffer is not supplied,                and the buffer size requested is less than                BUFSIZ. In this case, the buffer will                be configured to only use that amount of                buffering. However the unused memory left over                will NOT be freed. If this option is enabled,		then setvbuf() can be used to assign a user supplied                buffer to the stream.                Either setting can be considered to                be compliant with the ISO C standard."        }        cdl_option CYGSEM_LIBC_STDIO_SETVBUF_MALLOC {            display       "setbuf()/setvbuf() uses malloc()"            requires      CYGINT_ISO_MALLOC            requires      CYGSEM_LIBC_STDIO_DYNAMIC_SETVBUF            default_value { 0 != CYGINT_ISO_MALLOC }            description   "		This option controls whether buffers set by setbuf() and		setvbuf() may be allocated using malloc()."        }    }    # Define BUFSIZ with same value as ..._BUFSIZE or 0    cdl_option BUFSIZ {        display       "Default buffer size (BUFSIZ)"        flavor        data        calculated    CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO \                       ? "CYGNUM_LIBC_STDIO_BUFSIZE" : 0    }        cdl_option CYGFUN_LIBC_STDIO_ungetc {        display       "Support for ungetc()"        default_value   1        description   "            This option controls whether ungetc() is            supported. If not, then some space can be            saved, and speed is improved. Note that you            MUST have this defined if you want to use the            scanf() family of functions."    }        cdl_option 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            allocation routines to allocate memory for            new FILE structure pointers. If a malloc            implementation is available, this option            may be enabled to use            fopen() and fclose(). If disabled, only the            default console streams - stdin, stdout and            stderr - will be available."    }        cdl_option CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE {        display       "Default console device"        flavor        data        default_value CYGDAT_IO_SERIAL_TTY_CONSOLE        description   "            This option allows you to choose the            default console device. In the current            implementation, all these devices begin            with the prefix /dev/ and are followed by            the name of a device. The name of the device            depends on the device drivers you have            configured in your system. For example,            /dev/ttydiag could be the HAL diagnostic output            pseudo-device, or /dev/tty0 could be your            first serial driver, depending on your            configuration."    }        cdl_component CYGPKG_LIBC_STDIO_FLOATING_POINT {        display       "Floating point support"        flavor        none        description   "            This component allows floating point support            to be enabled in certain standard I/O            functions."            cdl_option CYGSEM_LIBC_STDIO_PRINTF_FLOATING_POINT {            display       "printf() family"            requires      CYGPKG_LIBM            default_value { 0 != CYGPKG_LIBM }            description   "                This option enables the use of floating point                number output in the printf() family (i.e.                printf(), sprintf(), vprintf(), etc.) of                functions. A substantial amount of code space                can be saved if this option is disabled. If it                is disabled then floating point specifiers                (%e, %f, %g) are ignored, and nothing is                output."        }            cdl_option CYGSEM_LIBC_STDIO_SCANF_FLOATING_POINT {            display       "scanf() family"            requires      CYGPKG_LIBM            requires      CYGINT_ISO_STDLIB_STRCONV_FLOAT            default_value { 0 != CYGPKG_LIBM &&                            0 != CYGINT_ISO_STDLIB_STRCONV_FLOAT }            description   "                This option enables the use of floating point                number conversion in the scanf() family (i.e.                scanf(), sscanf(), vscanf(), etc.) of                functions. A substantial amount of code space                can be saved if this option is disabled. If it                is disabled then floating point specifiers                (%e, %f, %g) are ignored, and nothing is                converted."        }    }        cdl_option CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS {        display       "Thread safe I/O streams"        doc           ref/libc-thread-safety.html        requires      CYGPKG_KERNEL        default_value { 0 != CYGPKG_KERNEL }        description   "            This option controls whether standard I/O streams            are thread-safe. Having this option set allows            the streams to be locked when accessed by            multiple threads simultaneously."    }    # ====================================================================    cdl_component CYGPKG_LIBC_STDIO_OPTIONS {        display "C library stdio functions build options"        flavor  none        no_define        description   "	    Package specific build options including control over	    compiler flags used only in building this package,	    and details of which tests are built."        cdl_option CYGPKG_LIBC_STDIO_CFLAGS_ADD {            display "Additional compiler flags"            flavor  data            no_define            default_value { "" }            description   "                This option modifies the set of compiler flags for                building the C library. These flags are used in addition                to the set of global flags."        }        cdl_option CYGPKG_LIBC_STDIO_CFLAGS_REMOVE {            display "Suppressed compiler flags"            flavor  data            no_define            default_value { "" }            description   "                This option modifies the set of compiler flags for                building the C library. These flags are removed from                the set of global flags if present."        }        cdl_option CYGPKG_LIBC_STDIO_TESTS {            display "C library stdio function tests"            flavor  data            no_define            calculated { "tests/sprintf1 tests/sprintf2 tests/sscanf tests/stdiooutput" }            description   "                This option specifies the set of tests for the C library                stdio functions."        }    }# ====================================================================    cdl_option CYGPKG_LIBC_STDIO_FILEIO {	display "Enable use of FILEIO package for IO operations."	active_if CYGPKG_IO_FILEIO	requires CYGSEM_LIBC_STDIO_WANT_BUFFERED_IO	calculated 1    }}# ====================================================================# EOF stdio.cdl

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -