mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-31 21:34:12 +02:00
gioerror: map some more values to G_IO_ERROR_NOT_SUPPORTED
Map EPROTONOSUPPORT, ESOCKTNOSUPPORT, EPFNOSUPPORT and EAFNOSUPPORT to G_IO_ERROR_NOT_SUPPORTED in g_io_error_from_errno(). (GSocket's socket_io_error_from_errno() already did this with the corresponding Winsock errors.) Also map EOPNOTSUPP, which on Linux is the same as ENOTSUP, but may not be on other platforms. Also, rewrite the EAGAIN/EWOULDBLOCK section to use the simpler idiom used by EEXIST/ENOTEMPTY and (now) ENOTSUP/EOPNOTSUPP.
This commit is contained in:
@@ -432,7 +432,7 @@ typedef enum {
|
||||
* @G_IO_ERROR_NO_SPACE: No space left on drive.
|
||||
* @G_IO_ERROR_INVALID_ARGUMENT: Invalid argument.
|
||||
* @G_IO_ERROR_PERMISSION_DENIED: Permission denied.
|
||||
* @G_IO_ERROR_NOT_SUPPORTED: Operation not supported for the current backend.
|
||||
* @G_IO_ERROR_NOT_SUPPORTED: Operation (or one of its parameters) not supported
|
||||
* @G_IO_ERROR_NOT_MOUNTED: File isn't mounted.
|
||||
* @G_IO_ERROR_ALREADY_MOUNTED: File is already mounted.
|
||||
* @G_IO_ERROR_CLOSED: File was closed.
|
||||
|
Reference in New Issue
Block a user