]> git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/src/core/errno_freebsd.h
import ceph 16.2.7
[ceph.git] / ceph / src / pmdk / src / core / errno_freebsd.h
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright 2017-2020, Intel Corporation */
3
4 /*
5 * errno_freebsd.h -- map Linux errno's to something close on FreeBSD
6 */
7
8 #ifndef PMDK_ERRNO_FREEBSD_H
9 #define PMDK_ERRNO_FREEBSD_H 1
10
11 #ifdef __FreeBSD__
12 #define EBADFD EBADF
13 #define ELIBACC EINVAL
14 #define EMEDIUMTYPE EOPNOTSUPP
15 #define ENOMEDIUM ENODEV
16 #define EREMOTEIO EIO
17 #endif
18
19 #endif /* PMDK_ERRNO_FREEBSD_H */