mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
![Brooks Davis](/assets/img/avatar_default.png)
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
26 lines
668 B
C
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_ */
|