Mercurial > flash_v2
comparison packages/language/c/libc/current/src/stdio/common/stdiofiles.cxx @ 2:443894e2e912 ecos-v1_2_1-release
Block commit of eCos version 1.2.1
| author | jlarmour |
|---|---|
| date | Tue, 11 May 1999 12:24:34 +0000 |
| parents | |
| children | c38311975d4f |
comparison
equal
deleted
inserted
replaced
| 1:72f549f0d891 | 2:443894e2e912 |
|---|---|
| 1 //======================================================================== | |
| 2 // | |
| 3 // stdiofiles.cxx | |
| 4 // | |
| 5 // ISO C library stdio central file data | |
| 6 // | |
| 7 //======================================================================== | |
| 8 //####COPYRIGHTBEGIN#### | |
| 9 // | |
| 10 // ------------------------------------------- | |
| 11 // The contents of this file are subject to the Cygnus eCos Public License | |
| 12 // Version 1.0 (the "License"); you may not use this file except in | |
| 13 // compliance with the License. You may obtain a copy of the License at | |
| 14 // http://sourceware.cygnus.com/ecos | |
| 15 // | |
| 16 // Software distributed under the License is distributed on an "AS IS" | |
| 17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 18 // License for the specific language governing rights and limitations under | |
| 19 // the License. | |
| 20 // | |
| 21 // The Original Code is eCos - Embedded Cygnus Operating System, released | |
| 22 // September 30, 1998. | |
| 23 // | |
| 24 // The Initial Developer of the Original Code is Cygnus. Portions created | |
| 25 // by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. | |
| 26 // ------------------------------------------- | |
| 27 // | |
| 28 //####COPYRIGHTEND#### | |
| 29 //======================================================================== | |
| 30 //#####DESCRIPTIONBEGIN#### | |
| 31 // | |
| 32 // Author(s): jlarmour | |
| 33 // Contributors: jlarmour | |
| 34 // Date: 1999-01-21 | |
| 35 // Purpose: Allocate storage for central file data object | |
| 36 // Description: This file allocates the actual objects used by the | |
| 37 // Cyg_libc_stdio_files class defined in | |
| 38 // "clibincl/stdiofiles.hxx" | |
| 39 // Usage: | |
| 40 // | |
| 41 //####DESCRIPTIONEND#### | |
| 42 // | |
| 43 //========================================================================= | |
| 44 | |
| 45 // CONFIGURATION | |
| 46 | |
| 47 #include <pkgconf/libc.h> // C library configuration | |
| 48 | |
| 49 #ifdef CYGPKG_LIBC_STDIO | |
| 50 | |
| 51 // INCLUDES | |
| 52 | |
| 53 #include <stddef.h> // NULL | |
| 54 #include "clibincl/stream.hxx" // Cyg_StdioStream | |
| 55 #include "clibincl/stdiofiles.hxx" // Class definition for | |
| 56 // Cyg_libc_stdio_files | |
| 57 | |
| 58 #ifdef CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS | |
| 59 # include <cyg/infra/cyg_type.h> // CYG_INIT_PRIORITY | |
| 60 # include <cyg/kernel/mutex.hxx> // mutexes | |
| 61 #endif | |
| 62 | |
| 63 | |
| 64 // GLOBAL VARIABLES | |
| 65 | |
| 66 Cyg_StdioStream *Cyg_libc_stdio_files::files[FOPEN_MAX] = { NULL }; | |
| 67 | |
| 68 # ifdef CYGSEM_LIBC_STDIO_THREAD_SAFE_STREAMS | |
| 69 Cyg_Mutex Cyg_libc_stdio_files::files_lock CYG_INIT_PRIORITY(LIBC); | |
| 70 # endif | |
| 71 | |
| 72 #endif // ifdef CYGPKG_LIBC_STDIO | |
| 73 | |
| 74 // EOF stdiofiles.cxx |
