blob: c5a8cd8dbe964466f46e6475db00d4edaa1ddce5 [file] [log] [blame]
Joel Kitchinga1b15172020-03-12 18:15:34 +08001/* SPDX-License-Identifier: GPL-2.0-only */
2
3/**
4 * Note: This file is only for POSIX compatibility, and is meant to be
5 * chain-included via string.h.
6 */
7
8#ifndef STDARG_H
9#define STDARG_H
10
11#include <stddef.h>
12
13#define va_start(v, l) __builtin_va_start(v, l)
14#define va_end(v) __builtin_va_end(v)
15#define va_arg(v, l) __builtin_va_arg(v, l)
16typedef __builtin_va_list va_list;
17
18int vsnprintf(char *buf, size_t size, const char *fmt, va_list args);
19
20#endif /* STDARG_H */