xref: /third_party/musl/src/misc/syscall.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/src/misc/
1570af302Sopenharmony_ci#define _BSD_SOURCE
2570af302Sopenharmony_ci#include <unistd.h>
3570af302Sopenharmony_ci#include "syscall.h"
4570af302Sopenharmony_ci#include <stdarg.h>
5570af302Sopenharmony_ci
6570af302Sopenharmony_ci#undef syscall
7570af302Sopenharmony_ci
8570af302Sopenharmony_cilong syscall(long n, ...)
9570af302Sopenharmony_ci{
10570af302Sopenharmony_ci	va_list ap;
11570af302Sopenharmony_ci	syscall_arg_t a,b,c,d,e,f;
12570af302Sopenharmony_ci	va_start(ap, n);
13570af302Sopenharmony_ci	a=va_arg(ap, syscall_arg_t);
14570af302Sopenharmony_ci	b=va_arg(ap, syscall_arg_t);
15570af302Sopenharmony_ci	c=va_arg(ap, syscall_arg_t);
16570af302Sopenharmony_ci	d=va_arg(ap, syscall_arg_t);
17570af302Sopenharmony_ci	e=va_arg(ap, syscall_arg_t);
18570af302Sopenharmony_ci	f=va_arg(ap, syscall_arg_t);
19570af302Sopenharmony_ci	va_end(ap);
20570af302Sopenharmony_ci	return __syscall_ret(__syscall(n,a,b,c,d,e,f));
21570af302Sopenharmony_ci}
22

Indexes created Thu Nov 07 10:32:03 CST 2024