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