williamr@2: /* STDIO_R.H williamr@2: * williamr@4: * Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies). williamr@4: * All rights reserved. williamr@2: */ williamr@2: williamr@2: /* williamr@2: * Copyright (c) 1990 The Regents of the University of California. williamr@2: * All rights reserved. williamr@2: * williamr@2: * Redistribution and use in source and binary forms are permitted williamr@2: * provided that the above copyright notice and this paragraph are williamr@2: * duplicated in all such forms and that any documentation, williamr@2: * advertising materials, and other materials related to such williamr@2: * distribution and use acknowledge that the software was developed williamr@2: * by the University of California, Berkeley. The name of the williamr@2: * University may not be used to endorse or promote products derived williamr@2: * from this software without specific prior written permission. williamr@2: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR williamr@2: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED williamr@2: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. williamr@2: * williamr@2: * Based on @(#)stdio.h 5.3 (Berkeley) 3/15/86 williamr@2: */ williamr@2: williamr@2: /** @file williamr@2: @publishedAll williamr@2: @released williamr@2: */ williamr@2: williamr@2: #ifndef _STDIO_R_H_ williamr@2: #define _STDIO_R_H_ williamr@2: williamr@2: #ifdef __cplusplus williamr@2: extern "C" { williamr@2: #endif williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: #define _stdin_r(x) (&((x)->_sf[0])) williamr@2: #define _stdout_r(x) (&((x)->_sf[1])) williamr@2: #define _stderr_r(x) (&((x)->_sf[2])) williamr@2: williamr@2: /** williamr@2: Reentrant versions of the functions williamr@2: */ williamr@2: IMPORT_C void _cleanup_r (struct _reent *); williamr@2: IMPORT_C FILE * _fdopen_r (struct _reent *, int, const char *); williamr@2: IMPORT_C FILE * _wfdopen_r (struct _reent *, int, const wchar_t *); williamr@2: IMPORT_C FILE * _fopen_r (struct _reent *, const char *, const char *); williamr@2: IMPORT_C FILE * _wfopen_r (struct _reent *, const wchar_t *, const wchar_t *); williamr@2: IMPORT_C int _getchar_r (struct _reent *); williamr@2: IMPORT_C char * _gets_r (struct _reent *, char *); williamr@2: IMPORT_C int _iprintf_r (struct _reent *, const char *, ...); williamr@2: IMPORT_C int _mkstemp_r (struct _reent *, char *); williamr@2: IMPORT_C char * _mktemp_r (struct _reent *, char *); williamr@2: IMPORT_C void _perror_r (struct _reent *, const char *); williamr@2: IMPORT_C int _printf_r (struct _reent *, const char *, ...); williamr@2: IMPORT_C int _putchar_r (struct _reent *, int); williamr@2: IMPORT_C int _puts_r (struct _reent *, const char *); williamr@2: IMPORT_C int _scanf_r (struct _reent *, const char *, ...); williamr@2: IMPORT_C int _sprintf_r (struct _reent *, char *, const char *, ...); williamr@2: IMPORT_C char * _tempnam_r (struct _reent *, char *, char *); williamr@2: IMPORT_C FILE * _tmpfile_r (struct _reent *); williamr@2: IMPORT_C char * _tmpnam_r (struct _reent *, char *); williamr@2: IMPORT_C wchar_t * _wtmpnam_r (struct _reent *, wchar_t *); williamr@2: IMPORT_C int _vfprintf_r (struct _reent *, FILE *, const char *, __e32_va_list); williamr@2: IMPORT_C int _popen3_r (struct _reent *, const char *cmd, const char *mode, char** envp, int fids[3]); williamr@2: IMPORT_C int _wpopen3_r (struct _reent *, const wchar_t *cmd, const wchar_t *mode, wchar_t** envp, int fids[3]); williamr@2: williamr@2: #ifdef __cplusplus williamr@2: } williamr@2: #endif williamr@2: #endif /* _STDIO_H_ */