genericopenlibs/openenvcore/backend/inc/stdio_r.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /* STDIO_R.H
       
     2  * 
       
     3  */
       
     4 
       
     5 /*
       
     6  * Copyright (c) 1990 The Regents of the University of California.
       
     7  * All rights reserved.
       
     8  *
       
     9  * Redistribution and use in source and binary forms are permitted
       
    10  * provided that the above copyright notice and this paragraph are
       
    11  * duplicated in all such forms and that any documentation,
       
    12  * advertising materials, and other materials related to such
       
    13  * distribution and use acknowledge that the software was developed
       
    14  * by the University of California, Berkeley.  The name of the
       
    15  * University may not be used to endorse or promote products derived
       
    16  * from this software without specific prior written permission.
       
    17  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
       
    18  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
       
    19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
       
    20  *
       
    21  *	Based on @(#)stdio.h	5.3 (Berkeley) 3/15/86
       
    22  */
       
    23 /* Portions Copyright (c) 1990-2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. */
       
    24 /* @file
       
    25 @internalComponent
       
    26 */
       
    27 
       
    28 #ifndef _STDIO_R_H_
       
    29 #define	_STDIO_R_H_
       
    30 
       
    31 #ifdef __cplusplus
       
    32 extern "C" {
       
    33 #endif
       
    34 
       
    35 #include <stdio.h>
       
    36 #include "reent.h"
       
    37 
       
    38 #define _stdin_r(x)	(&((x)->_sf[0]))
       
    39 #define _stdout_r(x)	(&((x)->_sf[1]))
       
    40 #define _stderr_r(x)	(&((x)->_sf[2]))
       
    41 
       
    42 /*
       
    43 Reentrant versions of the <stdio.h> functions
       
    44 */
       
    45 void	_cleanup_r	(struct _reent *);
       
    46 FILE *	_fdopen_r	(struct _reent *, int, const char *);
       
    47 FILE *	_wfdopen_r	(struct _reent *, int, const wchar_t *);
       
    48 FILE *	_fopen_r	(struct _reent *, const char *, const char *);
       
    49 FILE *	_wfopen_r	(struct _reent *, const wchar_t *, const wchar_t *);
       
    50 int	_getchar_r	(struct _reent *);
       
    51 char *	_gets_r		(struct _reent *, char *);
       
    52 int	_iprintf_r	(struct _reent *, const char *, ...);
       
    53 int	_mkstemp_r	(struct _reent *, char *);
       
    54 char *	_mktemp_r	(struct _reent *, char *);
       
    55 void	_perror_r	(struct _reent *, const char *);
       
    56 int	_printf_r	(struct _reent *, const char *, ...);
       
    57 int	_putchar_r	(struct _reent *, int);
       
    58 int	_puts_r		(struct _reent *, const char *);
       
    59 int	_scanf_r	(struct _reent *, const char *, ...);
       
    60 int	_sprintf_r	(struct _reent *, char *, const char *, ...);
       
    61 char *	_tempnam_r	(struct _reent *, char *, char *);
       
    62 FILE *	_tmpfile_r	(struct _reent *);
       
    63 char *	_tmpnam_r	(struct _reent *, char *);
       
    64 wchar_t *	_wtmpnam_r	(struct _reent *, wchar_t *);
       
    65 int	_vfprintf_r	(struct _reent *, FILE *, const char *, __e32_va_list);
       
    66 
       
    67 
       
    68 #ifdef __cplusplus
       
    69 }
       
    70 #endif
       
    71 #endif /* _STDIO_H_ */