Update contrib.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * WARNING: All identifiers here must begin with an underscore. This file is
16 * included by stdio.h and others and we therefore must only use identifiers
17 * in the namespace allotted to us.
28 #if (defined(__SYMBIAN32__) && (defined(__WINSCW__) || defined(__WINS__)))
43 #include <sys/types.h>
48 This structure contains *all* globals needed by the library.
49 It's raison d'etre is to facilitate threads by making all library routines
51 Currently only error number, which is per thread basis and
52 pointer to CLocalSystemInterface is stored in _reent structure.
56 #define _ASCTIME_SIZE (26+8) /* 26 min, plus caution factor! */
59 int _errno; /* local copy of errno */
60 void *_netdb; /* used by gethostbyaddr and similar netdb functions */
61 void *_memaddr; /* To hold mapped memory address during mmap syscall */
65 This exported API is used for fetching reent structure for TLS
67 struct _reent* ImpurePtr (void);
70 Support for explicit release of all STDLIB resources belonging to this thread
74 #define _REENT (ImpurePtr())
75 #define __errno_r(ptr) ((ptr)->_errno)
81 #endif /* _REENT_H_ */