1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
/*
* [gs]etsockopt() wrappers that avoid glibc and perform syscalls directly.
*
* Copyright (c) 2019 Dmitry V. Levin <ldv@strace.io>
* Copyright (c) 2019-2025 The strace developers.
* All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef STRACE_K_SOCKOPT_H
# define STRACE_K_SOCKOPT_H
extern long
k_getsockopt(const unsigned int fd, const unsigned int level,
const unsigned int optname, const void *const optval,
const unsigned int *len);
extern long
k_setsockopt(const unsigned int fd, const unsigned int level,
const unsigned int optname, const void *const optval,
const unsigned int len);
#endif /* STRACE_K_SOCKOPT_H */
|