70890254b3
Reviewed by: kib Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26388
22 lines
362 B
C
22 lines
362 B
C
/* $FreeBSD$ */
|
|
|
|
#include <sys/cdefs.h>
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
#include <sys/param.h>
|
|
#include <sys/errno.h>
|
|
#include <sys/systm.h>
|
|
|
|
#include <compat/linux/linux.h>
|
|
#include <compat/linux/linux_errno.inc>
|
|
|
|
int
|
|
linux_to_bsd_errno(int error)
|
|
{
|
|
|
|
KASSERT(error >= 0 && error <= ELAST,
|
|
("%s: bad error %d", __func__, error));
|
|
|
|
return (linux_errtbl[error]);
|
|
}
|