source: mainline/uspace/lib/cpp/include/cstdio@ dcec5d2

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since dcec5d2 was b251af5a, checked in by Jiří Zárevúcky <zarevucky.jiri@…>, 6 years ago

Remove <lib/cpp/include/bits/common.hpp>, which is no longer necessary

  • Property mode set to 100644
File size: 4.2 KB
Line 
1/*
2 * Copyright (c) 2018 Jaroslav Jindrak
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * - Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * - Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * - The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef LIBCPP_CSTDIO
30#define LIBCPP_CSTDIO
31
32
33namespace std::hel
34{
35 extern "C" {
36 #include <stdio.h>
37 }
38}
39
40namespace std
41{
42 using std::hel::FILE;
43 using std::hel::stdin;
44 using std::hel::stdout;
45 using std::hel::stderr;
46 /* using std::hel::fpos_t */
47 using std::hel::size_t;
48
49 using std::hel::clearerr;
50 using std::hel::fclose;
51 using std::hel::feof;
52 using std::hel::ferror;
53 using std::hel::fflush;
54 using std::hel::fgetc;
55 /* using std::hel::fgetpos; */
56 using std::hel::fgets;
57 using std::hel::fopen;
58 using std::hel::fprintf;
59 using std::hel::fputc;
60 using std::hel::fputs;
61 using std::hel::fread;
62 using std::hel::freopen;
63 /* using std::hel::fscanf; */
64 using std::hel::fseek;
65 /* using std::hel::fsetpos; */
66 using std::hel::ftell;
67 using std::hel::fwrite;
68 /* using std::hel::getc; */
69 using std::hel::getchar;
70 /* using std::hel::perror; */
71 using std::hel::printf;
72 /* using std::hel::putc; */
73 using std::hel::putchar;
74 using std::hel::puts;
75 using std::hel::remove;
76 using std::hel::rename;
77 using std::hel::rewind;
78 /* using std::hel::scanf; */
79 using std::hel::setbuf;
80 using std::hel::setvbuf;
81 using std::hel::snprintf;
82 /* using std::hel::sprintf; */
83 /* using std::hel::sscanf; */
84 /* using std::hel::tmpfile; */
85 /* using std::hel::tmpnam; */
86 using std::hel::ungetc;
87 using std::hel::vfprintf;
88 using std::hel::vprintf;
89 /* using std::hel::vscanf; */
90 using std::hel::vsnprintf;
91 /* using std::hel::vsprintf; */
92 /* using std::hel::vsscanf; */
93}
94
95using std::hel::FILE;
96/* using std::hel::fpos_t */
97using std::hel::size_t;
98
99using std::hel::clearerr;
100using std::hel::fclose;
101using std::hel::feof;
102using std::hel::ferror;
103using std::hel::fflush;
104using std::hel::fgetc;
105/* using std::hel::fgetpos; */
106using std::hel::fgets;
107using std::hel::fopen;
108using std::hel::fprintf;
109using std::hel::fputc;
110using std::hel::fputs;
111using std::hel::fread;
112using std::hel::freopen;
113/* using std::hel::fscanf; */
114using std::hel::fseek;
115/* using std::hel::fsetpos; */
116using std::hel::ftell;
117using std::hel::fwrite;
118/* using std::hel::getc; */
119using std::hel::getchar;
120/* using std::hel::perror; */
121using std::hel::printf;
122/* using std::hel::putc; */
123using std::hel::putchar;
124using std::hel::puts;
125using std::hel::remove;
126using std::hel::rename;
127using std::hel::rewind;
128/* using std::hel::scanf; */
129using std::hel::setbuf;
130using std::hel::setvbuf;
131using std::hel::snprintf;
132/* using std::hel::sprintf; */
133/* using std::hel::sscanf; */
134/* using std::hel::tmpfile; */
135/* using std::hel::tmpnam; */
136using std::hel::ungetc;
137using std::hel::vfprintf;
138using std::hel::vprintf;
139/* using std::hel::vscanf; */
140using std::hel::vsnprintf;
141/* using std::hel::vsprintf; */
142/* using std::hel::vsscanf; */
143
144#endif
Note: See TracBrowser for help on using the repository browser.