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