mirror of
git://git.musl-libc.org/musl
synced 2024-12-26 00:22:35 +00:00
208eb584ef
now public syscall.h only exposes __NR_* and SYS_* constants and the variadic syscall function. no macros or inline functions, no __syscall_ret or other internal details, no 16-/32-bit legacy syscall renaming, etc. this logic has all been moved to src/internal/syscall.h with the arch-specific parts in arch/$(ARCH)/syscall_arch.h, and the amount of arch-specific stuff has been reduced to a minimum. changes still need to be reviewed/double-checked. minimal testing on i386 and mips has already been performed.
17 lines
197 B
C
17 lines
197 B
C
#ifndef _SYS_SYSCALL_H
|
|
#define _SYS_SYSCALL_H
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
|
|
long syscall(long, ...);
|
|
|
|
#include <bits/syscall.h>
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|