mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Put the correct value for the abi_nfdbits parameter of kern_select() for
all supported Linuxulators. Differential Revision: https://reviews.freebsd.org/D1093 Reviewed by: trasz
This commit is contained in:
parent
28fb55359b
commit
3e89b64168
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283443
@ -82,6 +82,7 @@ typedef l_long l_time_t;
|
|||||||
typedef l_int l_timer_t;
|
typedef l_int l_timer_t;
|
||||||
typedef l_int l_mqd_t;
|
typedef l_int l_mqd_t;
|
||||||
typedef l_size_t l_socklen_t;
|
typedef l_size_t l_socklen_t;
|
||||||
|
typedef l_ulong l_fd_mask;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
l_int val[2];
|
l_int val[2];
|
||||||
|
@ -95,6 +95,7 @@ typedef l_uint l_uid_t;
|
|||||||
typedef l_ushort l_uid16_t;
|
typedef l_ushort l_uid16_t;
|
||||||
typedef l_int l_timer_t;
|
typedef l_int l_timer_t;
|
||||||
typedef l_int l_mqd_t;
|
typedef l_int l_mqd_t;
|
||||||
|
typedef l_ulong l_fd_mask;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
l_int val[2];
|
l_int val[2];
|
||||||
|
@ -531,7 +531,7 @@ linux_select(struct thread *td, struct linux_select_args *args)
|
|||||||
tvp = NULL;
|
tvp = NULL;
|
||||||
|
|
||||||
error = kern_select(td, args->nfds, args->readfds, args->writefds,
|
error = kern_select(td, args->nfds, args->readfds, args->writefds,
|
||||||
args->exceptfds, tvp, sizeof(l_int) * 8);
|
args->exceptfds, tvp, LINUX_NFDBITS);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (ldebug(select))
|
if (ldebug(select))
|
||||||
@ -2181,7 +2181,7 @@ linux_pselect6(struct thread *td, struct linux_pselect6_args *args)
|
|||||||
tvp = NULL;
|
tvp = NULL;
|
||||||
|
|
||||||
error = kern_pselect(td, args->nfds, args->readfds, args->writefds,
|
error = kern_pselect(td, args->nfds, args->readfds, args->writefds,
|
||||||
args->exceptfds, tvp, ssp, sizeof(l_int) * 8);
|
args->exceptfds, tvp, ssp, LINUX_NFDBITS);
|
||||||
|
|
||||||
if (error == 0 && args->tsp != NULL) {
|
if (error == 0 && args->tsp != NULL) {
|
||||||
if (td->td_retval[0] != 0) {
|
if (td->td_retval[0] != 0) {
|
||||||
|
@ -33,6 +33,9 @@
|
|||||||
|
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
|
/* bits per mask */
|
||||||
|
#define LINUX_NFDBITS sizeof(l_fd_mask) * 8
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous
|
* Miscellaneous
|
||||||
*/
|
*/
|
||||||
|
@ -89,6 +89,7 @@ typedef l_uint l_uid_t;
|
|||||||
typedef l_ushort l_uid16_t;
|
typedef l_ushort l_uid16_t;
|
||||||
typedef l_int l_timer_t;
|
typedef l_int l_timer_t;
|
||||||
typedef l_int l_mqd_t;
|
typedef l_int l_mqd_t;
|
||||||
|
typedef l_ulong l_fd_mask;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
l_int val[2];
|
l_int val[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user