os/ossrv/genericopenlibs/cstdlib/LINC/STDIO_R.H
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/LINC/STDIO_R.H	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,75 @@
     1.4 +/* STDIO_R.H
     1.5 + * 
     1.6 + * Portions Copyright (c) 1990-1999 Nokia Corporation and/or its subsidiary(-ies).
     1.7 + * All rights reserved.
     1.8 + */
     1.9 +
    1.10 +/*
    1.11 + * Copyright (c) 1990 The Regents of the University of California.
    1.12 + * All rights reserved.
    1.13 + *
    1.14 + * Redistribution and use in source and binary forms are permitted
    1.15 + * provided that the above copyright notice and this paragraph are
    1.16 + * duplicated in all such forms and that any documentation,
    1.17 + * advertising materials, and other materials related to such
    1.18 + * distribution and use acknowledge that the software was developed
    1.19 + * by the University of California, Berkeley.  The name of the
    1.20 + * University may not be used to endorse or promote products derived
    1.21 + * from this software without specific prior written permission.
    1.22 + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
    1.23 + * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
    1.24 + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    1.25 + *
    1.26 + *	Based on @(#)stdio.h	5.3 (Berkeley) 3/15/86
    1.27 + */
    1.28 +
    1.29 +/** @file
    1.30 +@publishedAll
    1.31 +@released
    1.32 +*/
    1.33 +
    1.34 +#ifndef _STDIO_R_H_
    1.35 +#define	_STDIO_R_H_
    1.36 +
    1.37 +#ifdef __cplusplus
    1.38 +extern "C" {
    1.39 +#endif
    1.40 +
    1.41 +#include <stdio.h>
    1.42 +#include <sys/reent.h>
    1.43 +
    1.44 +#define _stdin_r(x)	(&((x)->_sf[0]))
    1.45 +#define _stdout_r(x)	(&((x)->_sf[1]))
    1.46 +#define _stderr_r(x)	(&((x)->_sf[2]))
    1.47 +
    1.48 +/**
    1.49 +Reentrant versions of the <stdio.h> functions
    1.50 +*/
    1.51 +IMPORT_C void	_cleanup_r	(struct _reent *);
    1.52 +IMPORT_C FILE *	_fdopen_r	(struct _reent *, int, const char *);
    1.53 +IMPORT_C FILE *	_wfdopen_r	(struct _reent *, int, const wchar_t *);
    1.54 +IMPORT_C FILE *	_fopen_r	(struct _reent *, const char *, const char *);
    1.55 +IMPORT_C FILE *	_wfopen_r	(struct _reent *, const wchar_t *, const wchar_t *);
    1.56 +IMPORT_C int	_getchar_r	(struct _reent *);
    1.57 +IMPORT_C char *	_gets_r		(struct _reent *, char *);
    1.58 +IMPORT_C int	_iprintf_r	(struct _reent *, const char *, ...);
    1.59 +IMPORT_C int	_mkstemp_r	(struct _reent *, char *);
    1.60 +IMPORT_C char *	_mktemp_r	(struct _reent *, char *);
    1.61 +IMPORT_C void	_perror_r	(struct _reent *, const char *);
    1.62 +IMPORT_C int	_printf_r	(struct _reent *, const char *, ...);
    1.63 +IMPORT_C int	_putchar_r	(struct _reent *, int);
    1.64 +IMPORT_C int	_puts_r		(struct _reent *, const char *);
    1.65 +IMPORT_C int	_scanf_r	(struct _reent *, const char *, ...);
    1.66 +IMPORT_C int	_sprintf_r	(struct _reent *, char *, const char *, ...);
    1.67 +IMPORT_C char *	_tempnam_r	(struct _reent *, char *, char *);
    1.68 +IMPORT_C FILE *	_tmpfile_r	(struct _reent *);
    1.69 +IMPORT_C char *	_tmpnam_r	(struct _reent *, char *);
    1.70 +IMPORT_C wchar_t *	_wtmpnam_r	(struct _reent *, wchar_t *);
    1.71 +IMPORT_C int	_vfprintf_r	(struct _reent *, FILE *, const char *, __e32_va_list);
    1.72 +IMPORT_C int	_popen3_r	(struct _reent *, const char *cmd, const char *mode, char** envp, int fids[3]);
    1.73 +IMPORT_C int	_wpopen3_r	(struct _reent *, const wchar_t *cmd, const wchar_t *mode, wchar_t** envp, int fids[3]);
    1.74 +
    1.75 +#ifdef __cplusplus
    1.76 +}
    1.77 +#endif
    1.78 +#endif /* _STDIO_H_ */