1 /* -*-comment-start: "//";comment-end:""-*-
2 * Mes --- Maxwell Equations of Software
3 * Copyright © 2017 Jan Nieuwenhuizen <janneke@gnu.org>
5 * This file is part of Mes.
7 * 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 * 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 Mes. If not, see <http://www.gnu.org/licenses/>.
31 asm ("mov____0x8(%ebp),%ebx !8");
33 asm ("mov____$i32,%eax SYS_close");
38 getcwd (char *buf, size_t size)
40 asm ("mov____0x8(%ebp),%ebx !8");
41 asm ("mov____0x8(%ebp),%ecx !12");
43 asm ("mov____$i32,%eax SYS_getcwd");
48 unlink (char const *file_name)
50 asm ("mov____0x8(%ebp),%ebx !8");
52 asm ("mov____$i32,%eax SYS_unlink");
57 lseek (int fd, off_t offset, int whence)
59 asm ("mov____0x8(%ebp),%ebx !8");
60 asm ("mov____0x8(%ebp),%ecx !12");
61 asm ("mov____0x8(%ebp),%edx !16");
63 asm ("mov____$i32,%eax SYS_lseek");
75 fdopen (int fd, char const *mode)
81 fprintf (FILE *stream, char const *format, ...)
87 fwrite (void const *ptr, size_t size, size_t nmemb, FILE *stream)
93 localtime (time_t const *timep)
99 memcpy (void *dest, void const *src, size_t n)
105 memmove (void *dest, void const *src, size_t n)
111 memset (void *s, int c, size_t n)
117 memcmp (void const *s1, void const *s2, size_t n)
123 qsort (void *base, size_t nmemb, size_t size, int (*compar)(void const *, void const *))
128 snprintf(char *str, size_t size, char const *format, ...)
134 strchr (char const *s, int c)
140 strtoul (char const *nptr, char **endptr, int base)
145 time_t time (time_t *tloc)