blob: d994d860c6c2d1339719b7a9d22ff6b5a8baddd0 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYSROOT_ZIRCON_TESTONLY_SYSCALLS_H_
#define SYSROOT_ZIRCON_TESTONLY_SYSCALLS_H_
#include <zircon/syscalls.h>
__BEGIN_CDECLS
// Make sure this matches <zircon/syscalls.h>.
#define _ZX_SYSCALL_DECL(name, type, attrs, nargs, arglist, prototype) \
extern attrs type zx_##name prototype; \
extern attrs type _zx_##name prototype;
#ifdef __clang__
#define _ZX_SYSCALL_ANNO(attr) __attribute__((attr))
#else
#define _ZX_SYSCALL_ANNO(attr) // Nothing for compilers without the support.
#endif
#include <zircon/syscalls/internal/testonly-cdecls.inc>
#undef _ZX_SYSCALL_ANNO
#undef _ZX_SYSCALL_DECL
__END_CDECLS
#endif // SYSROOT_ZIRCON_ONLY_SYSCALLS_H_