shithub: scc

Download patch

ref: d7817d2266e6188d63d6f9bf7e658c7d0a5d8892
parent: a3e03967a9f98413c65ec14840579f6ab473645f
author: Roberto E. Vargas Caballero <[email protected]>
date: Sat Dec 10 07:11:21 EST 2016

[libc-amd64] Add stdarg.h

--- /dev/null
+++ b/libc/include/amd64-sysv/stdarg.h
@@ -1,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