1 /* -*-comment-start: "//";comment-end:""-*-
2 * GNU Mes --- Maxwell Equations of Software
3 * Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
5 * This file is part of GNU Mes.
7 * GNU Mes is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or (at
10 * your option) any later version.
12 * GNU Mes is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
24 #include <mes/lib-mini.h>
27 void __ungetc_init ();
28 void __ungetc_clear (int filedes);
29 void __ungetc_set (int filedes, int c);
30 int __ungetc_p (int filedes);
31 long abtol (char const **p, int base);
32 char *itoa (int number);
33 char *ltoa (long number);
34 char *ltoab (long x, int base);
35 char *ntoab (long number, int base, int signed_p);
36 char *ultoa (unsigned long number);
37 char *utoa (unsigned number);
40 char * fdgets (char *s, int count, int fd);
41 int fdputc (int c, int fd);
42 int fdputs (char const *s, int fd);
43 int fdungetc (int c, int fd);
44 char * _getcwd (char *buffer, size_t size);
45 int isnumber (int c, int base);
46 int mes_open (char const *file_name, int flags, int mask);
47 int _open2 (char const *file_name, int flags);
48 int _open3 (char const *file_name, int flags, int mask);
50 int oputs (char const *s);
51 char *search_path (char const *file_name);
52 ssize_t _read (int fd, void *buffer, size_t size);
55 extern void (*__call_at_exit) (void);
57 #define __FILEDES_MAX 512
60 void __assert_fail (char *s);
61 ssize_t __buffered_read (int filedes, void *buffer, size_t size);
62 size_t __buffered_read_clear (int filedes);
63 void _exit (int code);
64 long brk (void *addr);
65 #endif // !SYSTEM_LIBC