Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

/projects/cubeos/src_current/libc/cubereent.c

Go to the documentation of this file.
00001 /*  src_experimental/libc/cubereent.c
00002    CubeOS Version 0.4.90 experimental
00003    Copyright (C) 1999,2000 Holger Kenn
00004 
00005    CubeOS is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or any later version.
00009 
00010    CubeOS is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015  */
00016 #include <sys/reent.h>
00023 #define NEWNEWLIB 
00024 
00025 
00032 void _LIBC_init_reent (struct _reent *ptr)
00033 {
00034 #ifdef NEWNEWLIB
00035         struct _reent re = _REENT_INIT (re);
00036 
00037         bcopy (&re, ptr, sizeof (struct _reent));
00038         ptr->_stdin = &(ptr->__sf[0]);
00039         ptr->_stdout = &(ptr->__sf[1]);
00040         ptr->_stderr = &(ptr->__sf[2]);
00041 
00042 #else
00043         ptr->_errno = 0;
00044         ptr->_stdin = &(ptr->__sf[0]);
00045         ptr->_stdout = &(ptr->__sf[1]);
00046         ptr->_stderr = &(ptr->__sf[2]);
00047         ptr->_inc = 0;
00048         ptr->_emergency[0] = 0; /* Empty string */
00049         ptr->_current_category = 0;
00050         ptr->_current_locale = "C";
00051 #endif
00052 }

Generated on Thu Feb 20 15:38:45 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002