1 // newlib.cxx - newlib support. -*- C++ -*-
3 // Copyright (C) 1999, 2000 Red Hat.
4 // This file is part of SID and is licensed under the GPL.
5 // See the file COPYING.SID for conditions for redistribution.
12 newlib::host_to_target_errno (int host_errno)
17 case EPERM : return ePerm;
20 case ENOENT : return eNoEnt;
23 case EBADF : return eBadF;
26 case EAGAIN : return eAgain;
29 case EFAULT : return eFault;
32 case EINVAL : return eInval;
35 case EPIPE : return ePipe;
38 case ENOSYS : return eNoSys;
40 default : return EINVAL;