mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
38 lines
610 B
C
38 lines
610 B
C
|
/* SPDX-License-Identifier: GPL-2.0 */
|
||
|
/* Copyright (C) 2016-2020 Authors of Cilium */
|
||
|
|
||
|
#ifndef __BPF_ERRNO__
|
||
|
#define __BPF_ERRNO__
|
||
|
|
||
|
/* Few basic errno codes as we don't want to include errno.h. */
|
||
|
|
||
|
#ifndef EPERM
|
||
|
# define EPERM 1
|
||
|
#endif
|
||
|
#ifndef ENOENT
|
||
|
# define ENOENT 2
|
||
|
#endif
|
||
|
#ifndef ENXIO
|
||
|
# define ENXIO 6
|
||
|
#endif
|
||
|
#ifndef ENOMEM
|
||
|
# define ENOMEM 12
|
||
|
#endif
|
||
|
#ifndef EFAULT
|
||
|
# define EFAULT 14
|
||
|
#endif
|
||
|
#ifndef EINVAL
|
||
|
# define EINVAL 22
|
||
|
#endif
|
||
|
#ifndef ENOTSUP
|
||
|
# define ENOTSUP 95
|
||
|
#endif
|
||
|
#ifndef EADDRINUSE
|
||
|
# define EADDRINUSE 98
|
||
|
#endif
|
||
|
#ifndef ENOTSUPP
|
||
|
# define ENOTSUPP 524
|
||
|
#endif
|
||
|
|
||
|
#endif /* __BPF_ERRNO__ */
|