ref: aa090633334efce050a77286366affc743f862b8
parent: 8b0c12fda4008321ef8cbd61f9af24e0e6464e74
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Fri Aug 27 07:44:57 EDT 2021
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.
--- /dev/null
+++ b/include/bits/darwin/amd64/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- a/include/bits/darwin/sys/cdefs.h
+++ b/include/bits/darwin/sys/cdefs.h
@@ -1,0 +1,1 @@
+/* nothing fpr darwin */
--- 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
--- 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)
--- /dev/null
+++ b/include/bits/darwin/sys/stdio.h
@@ -1,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"
--- /dev/null
+++ b/include/bits/darwin/sys/stdlib.h
@@ -1,0 +1,2 @@
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
--- /dev/null
+++ b/include/bits/dragonfly/amd64/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- a/include/bits/dragonfly/sys/cdefs.h
+++ b/include/bits/dragonfly/sys/cdefs.h
@@ -1,0 +1,1 @@
+/* nothing for dragonfly */
--- 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 */
--- 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)
--- /dev/null
+++ b/include/bits/dragonfly/sys/stdio.h
@@ -1,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"
--- /dev/null
+++ b/include/bits/dragonfly/sys/stdlib.h
@@ -1,0 +1,2 @@
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
--- /dev/null
+++ b/include/bits/linux/amd64/arch/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- /dev/null
+++ b/include/bits/linux/arm/arch/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 2038
+
+typedef long time_t;
--- /dev/null
+++ b/include/bits/linux/arm64/arch/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- /dev/null
+++ b/include/bits/linux/ppc/arch/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 2038
+
+typedef long time_t;
--- a/include/bits/linux/sys.h
+++ b/include/bits/linux/sys.h
@@ -15,5 +15,5 @@
};
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 *);
--- a/include/bits/linux/sys/cdefs.h
+++ b/include/bits/linux/sys/cdefs.h
@@ -1,0 +1,1 @@
+/* nothing for Linux */
--- 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 */
--- 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)
--- /dev/null
+++ b/include/bits/linux/sys/stdio.h
@@ -1,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"
--- /dev/null
+++ b/include/bits/linux/sys/stdlib.h
@@ -1,0 +1,2 @@
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
--- /dev/null
+++ b/include/bits/netbsd/amd64/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- a/include/bits/netbsd/sys/cdefs.h
+++ b/include/bits/netbsd/sys/cdefs.h
@@ -1,0 +1,1 @@
+/* nothing for netbsd */
--- 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 */
--- 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)
--- /dev/null
+++ b/include/bits/netbsd/sys/stdio.h
@@ -1,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"
--- /dev/null
+++ b/include/bits/netbsd/sys/stdlib.h
@@ -1,0 +1,2 @@
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0
--- /dev/null
+++ b/include/bits/openbsd/amd64/time.h
@@ -1,0 +1,3 @@
+#define _MAXYEAR 9999
+
+typedef long time_t;
--- a/include/bits/openbsd/sys/cdefs.h
+++ b/include/bits/openbsd/sys/cdefs.h
@@ -1,0 +1,1 @@
+/* nothing for Openbsd */
--- 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 */
--- 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)
--- /dev/null
+++ b/include/bits/openbsd/sys/stdio.h
@@ -1,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"
--- /dev/null
+++ b/include/bits/openbsd/sys/stdlib.h
@@ -1,0 +1,2 @@
+#define EXIT_FAILURE 1
+#define EXIT_SUCCESS 0