[hackers] [scc] [libc-amd64] Add stdarg.h || Roberto E. Vargas Caballero
commit b5678d336ab34f9377f139d7bdc9a4f76417ebc6
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Dec 10 12:11:21 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Dec 10 12:14:33 2016 +0100
[libc-amd64] Add stdarg.h
diff --git a/libc/include/amd64-sysv/stdarg.h b/libc/include/amd64-sysv/stdarg.h
new file mode 100644
index 0000000..bde8c75
--- /dev/null
+++ b/libc/include/amd64-sysv/stdarg.h
_AT_@ -0,0 +1,19 @@
+/* See LICENSE file for copyright and license details. */
+#ifndef _STDARG_H_
+#define _STDARG_H_
+
+typedef struct {
+ unsigned gp_offset;
+ unsigned fp_offset;
+ void *overflow_arg_area;
+ void *reg_save_area;
+} __va_elem;
+
+typedef __va_elem va_list[1];
+
+#define va_start(X, Y) __builtin_va_start((X), (Y))
+#define va_end(X) (X)
+
+int vfprintf(FILE *stream, const char *format, va_list ap);
+
+#endif
Received on Sat Dec 10 2016 - 12:15:13 CET
This archive was generated by hypermail 2.3.0
: Sat Dec 10 2016 - 12:24:17 CET