scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 59f2d1357632043dac44c14a573e1fd4dc3879d5
parent 8b4ea9f94a44b0f265f82b061459b54c353c9634
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 27 Aug 2021 11:44:57 +0200

libc: Update include sys to last version

This code is being updated out of the tree of scc and
it is time to synchroniza both copies now.

Diffstat:
Ainclude/bits/darwin/amd64/time.h | 3+++
Minclude/bits/darwin/sys/cdefs.h | 1+
Minclude/bits/darwin/sys/errno.h | 2+-
Minclude/bits/darwin/sys/signal.h | 2+-
Ainclude/bits/darwin/sys/stdio.h | 8++++++++
Ainclude/bits/darwin/sys/stdlib.h | 2++
Ainclude/bits/dragonfly/amd64/time.h | 3+++
Minclude/bits/dragonfly/sys/cdefs.h | 1+
Minclude/bits/dragonfly/sys/errno.h | 1-
Minclude/bits/dragonfly/sys/signal.h | 2+-
Ainclude/bits/dragonfly/sys/stdio.h | 8++++++++
Ainclude/bits/dragonfly/sys/stdlib.h | 2++
Ainclude/bits/linux/amd64/arch/time.h | 3+++
Ainclude/bits/linux/arm/arch/time.h | 3+++
Ainclude/bits/linux/arm64/arch/time.h | 3+++
Ainclude/bits/linux/ppc/arch/time.h | 3+++
Minclude/bits/linux/sys.h | 4++--
Minclude/bits/linux/sys/cdefs.h | 1+
Minclude/bits/linux/sys/errno.h | 1-
Minclude/bits/linux/sys/signal.h | 2+-
Ainclude/bits/linux/sys/stdio.h | 8++++++++
Ainclude/bits/linux/sys/stdlib.h | 2++
Ainclude/bits/netbsd/amd64/time.h | 3+++
Minclude/bits/netbsd/sys/cdefs.h | 1+
Minclude/bits/netbsd/sys/errno.h | 1-
Minclude/bits/netbsd/sys/signal.h | 2+-
Ainclude/bits/netbsd/sys/stdio.h | 8++++++++
Ainclude/bits/netbsd/sys/stdlib.h | 2++
Ainclude/bits/openbsd/amd64/time.h | 3+++
Minclude/bits/openbsd/sys/cdefs.h | 1+
Minclude/bits/openbsd/sys/errno.h | 1-
Minclude/bits/openbsd/sys/signal.h | 2+-
Ainclude/bits/openbsd/sys/stdio.h | 8++++++++
Ainclude/bits/openbsd/sys/stdlib.h | 2++
34 files changed, 87 insertions(+), 12 deletions(-)

diff --git a/include/bits/darwin/amd64/time.h b/include/bits/darwin/amd64/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/darwin/sys/cdefs.h b/include/bits/darwin/sys/cdefs.h @@ -0,0 +1 @@ +/* nothing fpr darwin */ diff --git a/include/bits/darwin/sys/errno.h b/include/bits/darwin/sys/errno.h @@ -1,6 +1,6 @@ extern int errno; extern char *const _sys_errlist[]; -extern const int _sys_nerr; + #define EPERM 1 #define ENOENT 2 #define ESRCH 3 diff --git a/include/bits/darwin/sys/signal.h b/include/bits/darwin/sys/signal.h @@ -1,6 +1,6 @@ typedef int sig_atomic_t; -#define SIG_ERR ((void (*)(int))-1) +#define SIG_ERR ((void (*)(int)) -1) #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) diff --git a/include/bits/darwin/sys/stdio.h b/include/bits/darwin/sys/stdio.h @@ -0,0 +1,8 @@ +#define BUFSIZ 512 +#define FILENAME_MAX 256 +#define FOPEN_MAX 16 + +#define TMP_MAX 25 +#define L_tmpnam 256 + +#define _TMPNAME "/tmp/tmp.0000000" diff --git a/include/bits/darwin/sys/stdlib.h b/include/bits/darwin/sys/stdlib.h @@ -0,0 +1,2 @@ +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 diff --git a/include/bits/dragonfly/amd64/time.h b/include/bits/dragonfly/amd64/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/dragonfly/sys/cdefs.h b/include/bits/dragonfly/sys/cdefs.h @@ -0,0 +1 @@ +/* nothing for dragonfly */ diff --git a/include/bits/dragonfly/sys/errno.h b/include/bits/dragonfly/sys/errno.h @@ -1,6 +1,5 @@ extern int errno; extern char *const _sys_errlist[]; -extern const int _sys_nerr; #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ diff --git a/include/bits/dragonfly/sys/signal.h b/include/bits/dragonfly/sys/signal.h @@ -1,6 +1,6 @@ typedef int sig_atomic_t; -#define SIG_ERR ((void (*)(int))-1) +#define SIG_ERR ((void (*)(int)) -1) #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) diff --git a/include/bits/dragonfly/sys/stdio.h b/include/bits/dragonfly/sys/stdio.h @@ -0,0 +1,8 @@ +#define BUFSIZ 512 +#define FILENAME_MAX 256 +#define FOPEN_MAX 16 + +#define TMP_MAX 25 +#define L_tmpnam 256 + +#define _TMPNAME "/tmp/tmp.0000000" diff --git a/include/bits/dragonfly/sys/stdlib.h b/include/bits/dragonfly/sys/stdlib.h @@ -0,0 +1,2 @@ +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 diff --git a/include/bits/linux/amd64/arch/time.h b/include/bits/linux/amd64/arch/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/linux/arm/arch/time.h b/include/bits/linux/arm/arch/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 2038 + +typedef long time_t; diff --git a/include/bits/linux/arm64/arch/time.h b/include/bits/linux/arm64/arch/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/linux/ppc/arch/time.h b/include/bits/linux/ppc/arch/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 2038 + +typedef long time_t; diff --git a/include/bits/linux/sys.h b/include/bits/linux/sys.h @@ -15,5 +15,5 @@ struct sigaction { }; extern pid_t _getpid(void); -extern int _kill(pid_t pid, int signum); -extern int _sigaction(int sig, struct sigaction *new, struct sigaction *old); +extern int _kill(pid_t, int); +extern int _sigaction(int, struct sigaction *, struct sigaction *); diff --git a/include/bits/linux/sys/cdefs.h b/include/bits/linux/sys/cdefs.h @@ -0,0 +1 @@ +/* nothing for Linux */ diff --git a/include/bits/linux/sys/errno.h b/include/bits/linux/sys/errno.h @@ -1,6 +1,5 @@ extern int errno; extern char *const _sys_errlist[]; -extern const int _sys_nerr; #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ diff --git a/include/bits/linux/sys/signal.h b/include/bits/linux/sys/signal.h @@ -1,6 +1,6 @@ typedef int sig_atomic_t; -#define SIG_ERR ((void (*)(int))-1) +#define SIG_ERR ((void (*)(int)) -1) #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) diff --git a/include/bits/linux/sys/stdio.h b/include/bits/linux/sys/stdio.h @@ -0,0 +1,8 @@ +#define BUFSIZ 512 +#define FILENAME_MAX 256 +#define FOPEN_MAX 16 + +#define TMP_MAX 25 +#define L_tmpnam 256 + +#define _TMPNAME "/tmp/tmp.0000000" diff --git a/include/bits/linux/sys/stdlib.h b/include/bits/linux/sys/stdlib.h @@ -0,0 +1,2 @@ +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 diff --git a/include/bits/netbsd/amd64/time.h b/include/bits/netbsd/amd64/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/netbsd/sys/cdefs.h b/include/bits/netbsd/sys/cdefs.h @@ -0,0 +1 @@ +/* nothing for netbsd */ diff --git a/include/bits/netbsd/sys/errno.h b/include/bits/netbsd/sys/errno.h @@ -1,6 +1,5 @@ extern int errno; extern char *const _sys_errlist[]; -extern const int _sys_nerr; #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ diff --git a/include/bits/netbsd/sys/signal.h b/include/bits/netbsd/sys/signal.h @@ -1,6 +1,6 @@ typedef int sig_atomic_t; -#define SIG_ERR ((void (*)(int))-1) +#define SIG_ERR ((void (*)(int)) -1) #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) diff --git a/include/bits/netbsd/sys/stdio.h b/include/bits/netbsd/sys/stdio.h @@ -0,0 +1,8 @@ +#define BUFSIZ 512 +#define FILENAME_MAX 256 +#define FOPEN_MAX 16 + +#define TMP_MAX 25 +#define L_tmpnam 256 + +#define _TMPNAME "/tmp/tmp.0000000" diff --git a/include/bits/netbsd/sys/stdlib.h b/include/bits/netbsd/sys/stdlib.h @@ -0,0 +1,2 @@ +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0 diff --git a/include/bits/openbsd/amd64/time.h b/include/bits/openbsd/amd64/time.h @@ -0,0 +1,3 @@ +#define _MAXYEAR 9999 + +typedef long time_t; diff --git a/include/bits/openbsd/sys/cdefs.h b/include/bits/openbsd/sys/cdefs.h @@ -0,0 +1 @@ +/* nothing for Openbsd */ diff --git a/include/bits/openbsd/sys/errno.h b/include/bits/openbsd/sys/errno.h @@ -1,6 +1,5 @@ extern int errno; extern char *const _sys_errlist[]; -extern const int _sys_nerr; #define EPERM 1 /* Operation not permitted */ #define ENOENT 2 /* No such file or directory */ diff --git a/include/bits/openbsd/sys/signal.h b/include/bits/openbsd/sys/signal.h @@ -1,6 +1,6 @@ typedef int sig_atomic_t; -#define SIG_ERR ((void (*)(int))-1) +#define SIG_ERR ((void (*)(int)) -1) #define SIG_DFL ((void (*)(int)) 0) #define SIG_IGN ((void (*)(int)) 1) diff --git a/include/bits/openbsd/sys/stdio.h b/include/bits/openbsd/sys/stdio.h @@ -0,0 +1,8 @@ +#define BUFSIZ 512 +#define FILENAME_MAX 256 +#define FOPEN_MAX 16 + +#define TMP_MAX 25 +#define L_tmpnam 256 + +#define _TMPNAME "/tmp/tmp.0000000" diff --git a/include/bits/openbsd/sys/stdlib.h b/include/bits/openbsd/sys/stdlib.h @@ -0,0 +1,2 @@ +#define EXIT_FAILURE 1 +#define EXIT_SUCCESS 0