OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [fileio/] [current/] [cdl/] [fileio.cdl] - Blame information for rev 825

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      fileio.cdl
4
#
5
#      FILEIO layer configuration data
6
#
7
# ====================================================================
8
## ####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      nickg
43
# Contributors:
44
# Date:           2000-5-25
45
#
46
#####DESCRIPTIONEND####
47
#
48
# ====================================================================
49
 
50
cdl_package CYGPKG_IO_FILEIO {
51
    display        "POSIX File IO compatibility layer"
52
    description    "This package enables the POSIX compatibility
53
                    layer that implements IEEE 1003.1 file IO."
54
    include_dir    cyg/fileio
55
    doc            ref/fileio.html
56
 
57
    requires       CYGPKG_ISOINFRA
58
    requires       CYGPKG_ERROR
59
    requires       CYGINT_ISO_ERRNO
60
    requires       CYGINT_ISO_ERRNO_CODES
61
    requires       CYGINT_ISO_STRING_STRFUNCS
62
 
63
    implements     CYGINT_ISO_FCNTL
64
    implements     CYGINT_ISO_OPEN
65
    implements     CYGINT_ISO_DIRENT
66
 
67
    requires       { CYGBLD_ISO_DIRENT_HEADER == "" }
68
    requires       { CYGBLD_ISO_OPEN_MAX_HEADER == "" }
69
    requires       { CYGBLD_ISO_NAME_MAX_HEADER == "" }
70
 
71
    compile        fd.cxx file.cxx io.cxx dir.cxx
72
    compile        -library=libextras.a misc.cxx
73
 
74
    cdl_interface     CYGINT_IO_FILEIO_FS {
75
        display       "Filesystems interfacing to FILEIO"
76
        no_define
77
        description "
78
           Each filesystem driver which FILEIO can use implements
79
           this interface. You can use this to determine if there are
80
           any filesystems configured in the system."
81
    }
82
 
83
    cdl_option CYGFUN_IO_FILEIO_SELECT {
84
        display          "Enable support for select()"
85
        active_if        CYGPKG_KERNEL
86
        implements       CYGINT_ISO_SELECT
87
        default_value    1
88
        description      "
89
            This option enables support for select()."
90
 
91
        compile          select.cxx
92
    }
93
 
94
    cdl_option CYGPKG_IO_FILEIO_DEVFS_SUPPORT {
95
        display          "Enable devfs support"
96
        active_if        CYGPKG_IO
97
        default_value    { CYGPKG_REDBOOT ? 0 : 1 }
98
        description      "
99
            This option enables support for the devfs file system."
100
 
101
        compile           -library=libextras.a devfs.cxx
102
    }
103
 
104
    cdl_option CYGPKG_IO_FILEIO_SOCKET_SUPPORT {
105
        display          "Enable socket support"
106
        active_if        CYGPKG_NET
107
        active_if        CYGPKG_KERNEL
108
        default_value    1
109
        description      "
110
            This option enables support for the socket interface. It is
111
            only present if the NET package is included."
112
 
113
        compile          socket.cxx
114
    }
115
 
116
    cdl_option CYGNUM_FILEIO_NFILE {
117
        display          "Maximum number of open files"
118
        flavor           data
119
        default_value    16
120
        legal_values     1 to 9999999
121
        description      "This option controls the number of open files
122
                          that are allowed for all filesystems."
123
    }
124
 
125
    cdl_option CYGNUM_FILEIO_NFD {
126
        display          "Maximum number of open file descriptors"
127
        flavor           data
128
        default_value    16
129
        legal_values     CYGNUM_FILEIO_NFILE to 9999999
130
        description      "This option controls the number of open file descriptors
131
                          that are allowed for all filesystems."
132
    }
133
 
134
    cdl_option CYGNUM_FILEIO_FSTAB_MAX {
135
        display          "Maximum number of installed filesystems"
136
        flavor           data
137
        default_value    4
138
        legal_values     1 to 9999999
139
        description      "This option controls the maximum number of filesystems
140
                          that can be handled by the fileio system."
141
 
142
    }
143
 
144
    cdl_option CYGNUM_FILEIO_MTAB_MAX {
145
        display          "Maximum number of mounted filesystems"
146
        flavor           data
147
        default_value    8
148
        legal_values     CYGNUM_FILEIO_MTAB_EXTRA to 9999999
149
        description      "This option controls the maximum number of mounted
150
                          filesystems that can be handled by the fileio system."
151
 
152
    }
153
 
154
    cdl_option CYGNUM_FILEIO_MTAB_EXTRA {
155
        display          "Number of dynamically mounted filesystems"
156
        flavor           data
157
        default_value    8
158
        legal_values     0 to 9999999
159
        description      "This option controls the number of mounted
160
                          filesystems that can be created dynamically."
161
    }
162
 
163
    cdl_option CYGNUM_FILEIO_NSTAB_MAX {
164
        display          "Maximum number of installed network stacks"
165
        flavor           data
166
        default_value    1
167
        legal_values     1 to 9999999
168
        description      "This option controls the maximum number of installed
169
                          network stacks that can be handled by the fileio system."
170
    }
171
 
172
    cdl_option CYGPKG_IO_FILEIO_TRACK_CWD {
173
        display          "Enable current directory tracking"
174
        flavor           bool
175
        default_value    1
176
        description      "This option enables tracking of the name of the current
177
                          directory in the FILEIO package, to support the getcwd()
178
                          function. When this option is enabled the FILEIO package
179
                          will attempt to maintain a string that names the current
180
                          directory. It does this textually, dealing with \".\" and
181
                          \"..\" entries by textual manipulation. While this should
182
                          always provide a path for the current directory, it may not
183
                          be the best, if symbolic links are present. This tracked CWD
184
                          is only used if a filesystem does not support the
185
                          FS_INFO_GETCWD key. "
186
    }
187
 
188
    cdl_component CYGPKG_IO_FILEIO_INODE {
189
        display          "Generic inode support"
190
        flavor           bool
191
        description      "This option enables generic inode support useful to
192
                          some filesystems. Not all filesystems require this
193
                          so it is not enabled by default."
194
        default_value    0
195
        requires         CYGINT_ISO_MALLOC
196
        compile          inocache.cxx
197
 
198
        cdl_option CYGNUM_IO_FILEIO_MAX_INODE_CACHE_DEAD {
199
            display          "Maximum space for unused cached inodes"
200
            flavor           data
201
            default_value    10
202
            description      "The inode cache allows a maximum limit to be set
203
                              for the number of unused inodes still in the
204
                              cache before they are freed. It may be set to 0
205
                              to indicate no dead inode caching should be
206
                              provided."
207
        }
208
    }
209
 
210
    cdl_option CYGNUM_FILEIO_IOVEC_MAX {
211
        display          "Maximum size of iovec used by readv/writev"
212
        flavor           data
213
        default_value    16
214
        legal_values     1 to 9999999
215
        description      "This option controls the maximum size of the iovec
216
                          structure that can be used by readv()/writev().  This
217
                          limit is required because the iovec structure must be
218
                          invariant (to the user), thus a copy needs to be made
219
                          by the interface routines.  The limit is merely a
220
                          control over the amount of stack space used by the
221
                          readv()/writev() functions."
222
 
223
    }
224
 
225
    cdl_option CYGSEM_FILEIO_INFO_DISK_USAGE {
226
        display       "cyg_fs_getinfo call for disk usage"
227
        flavor        bool
228
        default_value 0
229
        description   "
230
            Enabling this option includes code in some filesystems to
231
            implement a call using cyg_fs_getinfo to return the current
232
            filesystem block usage."
233
    }
234
 
235
    cdl_component CYGPKG_FILEIO_FNMATCH {
236
        display           "POSIX fnmatch configuration"
237
        flavor            bool
238
        default_value     ( CYGINT_ISO_STRING_STRFUNCS && CYGINT_ISO_CTYPE )
239
        requires          { CYGBLD_ISO_FNMATCH_HEADER == \
240
                            "" }
241
        description       "
242
            This component provides configuration controls for
243
            the POSIX fnmatch() function."
244
 
245
        compile          fnmatch.c
246
    }
247
 
248
    cdl_option CYGPKG_FILEIO_DIRENT_DTYPE {
249
        display          "Struct dirent contains a d_type field"
250
        flavor           bool
251
        default_value    0
252
        description      "
253
            If this option is enabled then struct dirent contains a
254
            d_type field. With this field, file type may be
255
            distinguished directly without calling stat.  Note: This
256
            member is not part of the POSIX standard, however is
257
            commonely implemented in Linux, FreeBSD, but not SunOS.
258
            Also, not all filesystems support it.  So this feature is
259
            not portable and should be used with caution."
260
    }
261
 
262
    # ----------------------------------------------------------------
263
    # Tests
264
 
265
        cdl_option CYGPKG_IO_FILEIO_TESTS {
266
            display "Fileio tests"
267
            flavor  data
268
            no_define
269
            calculated { "tests/fileio1 tests/socket tests/select tests/stdio tests/pselect tests/fnmatch" }
270
            description   "
271
                This option specifies the set of tests for the FileIO package."
272
        }
273
}
274
 
275
# ====================================================================
276
# End of fileio.cdl
277
 
278
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.