2017-07-24 10:21:24 +00:00
|
|
|
/* -*-comment-start: "//";comment-end:""-*-
|
2018-07-22 12:24:36 +00:00
|
|
|
* GNU Mes --- Maxwell Equations of Software
|
2018-05-26 20:33:00 +00:00
|
|
|
* Copyright © 2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2017-07-24 10:21:24 +00:00
|
|
|
*
|
2018-07-22 12:24:36 +00:00
|
|
|
* This file is part of GNU Mes.
|
2017-07-24 10:21:24 +00:00
|
|
|
*
|
2018-07-22 12:24:36 +00:00
|
|
|
* GNU Mes is free software; you can redistribute it and/or modify it
|
2017-07-24 10:21:24 +00:00
|
|
|
* under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
2018-07-22 12:24:36 +00:00
|
|
|
* GNU Mes is distributed in the hope that it will be useful, but
|
2017-07-24 10:21:24 +00:00
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-22 12:24:36 +00:00
|
|
|
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
2017-07-24 10:21:24 +00:00
|
|
|
*/
|
|
|
|
|
2018-06-02 09:41:06 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <fcntl.h>
|
2018-06-20 22:27:49 +00:00
|
|
|
#include <limits.h>
|
2017-07-24 17:19:31 +00:00
|
|
|
#include <setjmp.h>
|
2017-07-24 17:07:18 +00:00
|
|
|
#include <stdarg.h>
|
2017-07-24 11:39:34 +00:00
|
|
|
#include <stdio.h>
|
2017-07-24 15:04:11 +00:00
|
|
|
#include <stdlib.h>
|
2017-07-24 10:43:04 +00:00
|
|
|
#include <string.h>
|
2017-07-24 11:25:54 +00:00
|
|
|
#include <time.h>
|
2017-07-28 06:07:41 +00:00
|
|
|
#include <signal.h>
|
|
|
|
#include <sys/mman.h>
|
2018-05-30 19:55:39 +00:00
|
|
|
#include <sys/stat.h>
|
2017-07-27 21:44:22 +00:00
|
|
|
#include <sys/time.h>
|
2017-07-24 15:33:33 +00:00
|
|
|
#include <unistd.h>
|
2017-07-24 10:21:24 +00:00
|
|
|
|
2018-05-29 18:07:46 +00:00
|
|
|
#include <libc.c>
|
2018-06-30 11:11:03 +00:00
|
|
|
|
|
|
|
#if __GNU__
|
|
|
|
#include <hurd/tcc.c>
|
|
|
|
#elif __linux__
|
|
|
|
#include <linux/tcc.c>
|
|
|
|
#else
|
|
|
|
#error both __GNU__ and _linux__ are undefined, choose one
|
|
|
|
#endif
|
2018-05-29 18:07:46 +00:00
|
|
|
|
|
|
|
#if __MESC__
|
2018-08-11 16:39:48 +00:00
|
|
|
#include <x86-mes/setjmp.c>
|
|
|
|
#elif __i386__
|
|
|
|
#include <x86-mes-gcc/setjmp.c>
|
|
|
|
#elif __x86_64__
|
|
|
|
#include <x86_64-mes-gcc/setjmp.c>
|
|
|
|
#else
|
|
|
|
#error arch not supported
|
|
|
|
#endif
|
2018-05-29 18:07:46 +00:00
|
|
|
|
2018-08-22 05:23:27 +00:00
|
|
|
#include <ctype/islower.c>
|
|
|
|
#include <ctype/isupper.c>
|
|
|
|
#include <ctype/tolower.c>
|
|
|
|
#include <ctype/toupper.c>
|
|
|
|
#include <mes/search-path.c>
|
|
|
|
#include <posix/execvp.c>
|
|
|
|
#include <stdio/fclose.c>
|
|
|
|
#include <stdio/fdopen.c>
|
|
|
|
#include <stdio/ferror.c>
|
|
|
|
#include <stdio/fflush.c>
|
|
|
|
#include <stdio/fopen.c>
|
|
|
|
#include <stdio/fprintf.c>
|
|
|
|
#include <stdio/fread.c>
|
|
|
|
#include <stdio/fseek.c>
|
|
|
|
#include <stdio/ftell.c>
|
|
|
|
#include <stdio/fwrite.c>
|
|
|
|
#include <stdio/printf.c>
|
|
|
|
#include <stdio/remove.c>
|
|
|
|
#include <stdio/snprintf.c>
|
|
|
|
#include <stdio/sprintf.c>
|
|
|
|
#include <stdio/sscanf.c>
|
|
|
|
#include <stdio/vfprintf.c>
|
|
|
|
#include <stdio/vprintf.c>
|
|
|
|
#include <stdio/vsnprintf.c>
|
|
|
|
#include <stdio/vsprintf.c>
|
|
|
|
#include <stdio/vsscanf.c>
|
|
|
|
#include <stdlib/calloc.c>
|
|
|
|
#include <stdlib/qsort.c>
|
|
|
|
#include <stdlib/strtof.c>
|
|
|
|
#include <stdlib/strtol.c>
|
|
|
|
#include <stdlib/strtold.c>
|
|
|
|
#include <stdlib/strtoll.c>
|
|
|
|
#include <stdlib/strtoul.c>
|
|
|
|
#include <stdlib/strtoull.c>
|
|
|
|
#include <string/memcmp.c>
|
|
|
|
#include <string/memmem.c>
|
|
|
|
#include <string/memmove.c>
|
|
|
|
#include <string/memset.c>
|
|
|
|
#include <string/strcat.c>
|
|
|
|
#include <string/strchr.c>
|
|
|
|
#include <string/strlwr.c>
|
|
|
|
#include <string/strncpy.c>
|
|
|
|
#include <string/strrchr.c>
|
|
|
|
#include <string/strstr.c>
|
|
|
|
#include <string/strupr.c>
|
|
|
|
#include <stub/sigaction.c>
|
|
|
|
#include <stub/ldexp.c>
|
|
|
|
#include <stub/mprotect.c>
|
|
|
|
#include <stub/localtime.c>
|
|
|
|
#include <stub/strtod.c>
|
|
|
|
#include <stub/sigemptyset.c>
|