Unify EWOULDBLOCK and EAGAIN.
This commit is contained in:
parent
245ec6458a
commit
d3a2eb8a79
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016 Jonas 'Sortie' Termansen.
|
* Copyright (c) 2011-2016, 2020 Jonas 'Sortie' Termansen.
|
||||||
*
|
*
|
||||||
* Permission to use, copy, modify, and distribute this software for any
|
* Permission to use, copy, modify, and distribute this software for any
|
||||||
* purpose with or without fee is hereby granted, provided that the above
|
* purpose with or without fee is hereby granted, provided that the above
|
||||||
|
@ -24,7 +24,6 @@
|
||||||
|
|
||||||
#define ENOTBLK 12
|
#define ENOTBLK 12
|
||||||
#define ENODEV 13
|
#define ENODEV 13
|
||||||
#define EWOULDBLOCK 14
|
|
||||||
#define EBADF 15
|
#define EBADF 15
|
||||||
#define EOVERFLOW 16
|
#define EOVERFLOW 16
|
||||||
#define ENOENT 17
|
#define ENOENT 17
|
||||||
|
@ -112,6 +111,7 @@
|
||||||
#define ENOMOUNT 99
|
#define ENOMOUNT 99
|
||||||
|
|
||||||
#define EOPNOTSUPP ENOTSUP
|
#define EOPNOTSUPP ENOTSUP
|
||||||
|
#define EWOULDBLOCK EAGAIN
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -27,7 +27,6 @@ const char* sortix_strerror(int errnum)
|
||||||
{
|
{
|
||||||
case ENOTBLK: return "Block device required";
|
case ENOTBLK: return "Block device required";
|
||||||
case ENODEV: return "No such device";
|
case ENODEV: return "No such device";
|
||||||
case EWOULDBLOCK: return "Operation would block";
|
|
||||||
case EBADF: return "Bad file descriptor";
|
case EBADF: return "Bad file descriptor";
|
||||||
case EOVERFLOW: return "Value too large to be stored in data type";
|
case EOVERFLOW: return "Value too large to be stored in data type";
|
||||||
case ENOENT: return "No such file or directory";
|
case ENOENT: return "No such file or directory";
|
||||||
|
|
Loading…
Reference in New Issue