diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-10-12 08:27:57 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2017-10-12 08:27:57 +0000 |
commit | e51a7a84e97a6f5826f6965a55f9d6aa1783e43f (patch) | |
tree | 075581ba7e328a5e284b994c1e63fbf886e6bd8a | |
parent | 87453150d61e8bfba6c06d13e28307f577bfb995 (diff) |
Notes
-rw-r--r-- | lib/libcuse/cuse.3 | 3 | ||||
-rw-r--r-- | sys/fs/cuse/cuse.c | 2 | ||||
-rw-r--r-- | sys/fs/cuse/cuse_defs.h | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/lib/libcuse/cuse.3 b/lib/libcuse/cuse.3 index 6d8d2a3cd8607..89eef889a8b62 100644 --- a/lib/libcuse/cuse.3 +++ b/lib/libcuse/cuse.3 @@ -25,7 +25,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd June 6, 2014 +.Dd October 5, 2017 .Dt CUSE 3 .Os .Sh NAME @@ -292,6 +292,7 @@ enum { CUSE_ERR_SIGNAL CUSE_ERR_OTHER CUSE_ERR_NOT_LOADED + CUSE_ERR_NO_DEVICE CUSE_POLL_NONE CUSE_POLL_READ diff --git a/sys/fs/cuse/cuse.c b/sys/fs/cuse/cuse.c index 79a2d1b2d0207..02e29bdb3d4b1 100644 --- a/sys/fs/cuse/cuse.c +++ b/sys/fs/cuse/cuse.c @@ -390,6 +390,8 @@ cuse_convert_error(int error) return (EFAULT); case CUSE_ERR_SIGNAL: return (EINTR); + case CUSE_ERR_NO_DEVICE: + return (ENODEV); default: return (ENXIO); } diff --git a/sys/fs/cuse/cuse_defs.h b/sys/fs/cuse/cuse_defs.h index 0134bfee8fdc9..cf148af85d156 100644 --- a/sys/fs/cuse/cuse_defs.h +++ b/sys/fs/cuse/cuse_defs.h @@ -27,7 +27,7 @@ #ifndef _CUSE_DEFS_H_ #define _CUSE_DEFS_H_ -#define CUSE_VERSION 0x000122 +#define CUSE_VERSION 0x000123 #define CUSE_ERR_NONE 0 #define CUSE_ERR_BUSY -1 @@ -38,6 +38,7 @@ #define CUSE_ERR_SIGNAL -6 #define CUSE_ERR_OTHER -7 #define CUSE_ERR_NOT_LOADED -8 +#define CUSE_ERR_NO_DEVICE -9 #define CUSE_POLL_NONE 0 #define CUSE_POLL_READ 1 |