EOVERFLOW does not exist on OpenBSD.

This commit is contained in:
Wim Lewis 2004-01-02 20:11:35 +00:00 committed by Alexandre Julliard
parent 56f85215f9
commit 99a01c03d3
2 changed files with 4 additions and 0 deletions

View File

@ -501,7 +501,9 @@ static int set_unix_lock( struct fd *fd, file_pos_t start, file_pos_t end, int t
if (fl.l_type == F_WRLCK) return 1;
set_error( STATUS_ACCESS_DENIED );
return 0;
#ifdef EOVERFLOW
case EOVERFLOW:
#endif
case EINVAL:
/* this can happen if off_t is 64-bit but the kernel only supports 32-bit */
/* in that case we shrink the limit and retry */

View File

@ -462,7 +462,9 @@ void file_set_error(void)
case ESPIPE: set_win32_error( ERROR_SEEK ); break;
case ENOTEMPTY: set_error( STATUS_DIRECTORY_NOT_EMPTY ); break;
case EIO: set_error( STATUS_ACCESS_VIOLATION ); break;
#ifdef EOVERFLOW
case EOVERFLOW: set_error( STATUS_INVALID_PARAMETER ); break;
#endif
default: perror("file_set_error"); set_win32_error( ERROR_UNKNOWN ); break;
}
}