Unify EWOULDBLOCK and EAGAIN.

This commit is contained in:
Jonas 'Sortie' Termansen 2020-03-08 12:43:30 +01:00
parent 245ec6458a
commit d3a2eb8a79
2 changed files with 2 additions and 3 deletions

View File

@ -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
* purpose with or without fee is hereby granted, provided that the above
@ -24,7 +24,6 @@
#define ENOTBLK 12
#define ENODEV 13
#define EWOULDBLOCK 14
#define EBADF 15
#define EOVERFLOW 16
#define ENOENT 17
@ -112,6 +111,7 @@
#define ENOMOUNT 99
#define EOPNOTSUPP ENOTSUP
#define EWOULDBLOCK EAGAIN
#ifdef __cplusplus
extern "C" {

View File

@ -27,7 +27,6 @@ const char* sortix_strerror(int errnum)
{
case ENOTBLK: return "Block device required";
case ENODEV: return "No such device";
case EWOULDBLOCK: return "Operation would block";
case EBADF: return "Bad file descriptor";
case EOVERFLOW: return "Value too large to be stored in data type";
case ENOENT: return "No such file or directory";