freebsd-src/lib/libsys/libsys.h
Brooks Davis 1fd880742a libsys: add a libsys.h
This declares an API for libsys which currently consists of
__sys_<foo>() declarations for system call stubs and function pointer
typedefs of the form __sys_<foo>_t.  The vast majority of the
implementation resides in a generated _libsys.h which ensures that all
system call stub declarations match syscalls.master.

Reviewed by:	kib
Differential Revision:	https://reviews.freebsd.org/D44387
2024-04-16 17:48:07 +01:00

26 lines
668 B
C

/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2024 SRI International
*
* This software was developed by SRI International, the University of
* Cambridge Computer Laboratory (Department of Computer Science and
* Technology), and Capabilities Limited under Defense Advanced Research
* Projects Agency (DARPA) Contract No. FA8750-24-C-B047 ("DEC").
*/
#ifndef _LIBSYS_H_
#define _LIBSYS_H_
#include <sys/types.h>
#include <_libsys.h>
typedef int (__sys_syscall_t)(int number, ...);
typedef int (__sys___syscall_t)(int64_t number, ...);
int __sys_syscall(int number, ...);
off_t __sys___syscall(int64_t number, ...);
#endif /* _LIBSYS_H_ */