forked from Imagelibrary/rtems
select.h, rtems_select.c, nds select: Add restrict keyword
This commit is contained in:
committed by
Joel Sherrill
parent
5124d64acd
commit
14876018c3
@@ -110,7 +110,8 @@ selscan (rtems_id tid, fd_mask **ibits, fd_mask **obits, int nfd, int *retval)
|
||||
}
|
||||
|
||||
int
|
||||
select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *tv)
|
||||
select (int nfds, fd_set *__restrict readfds, fd_set *__restrict writefds,
|
||||
fd_set *__restrict exceptfds, struct timeval *__restrict tv)
|
||||
{
|
||||
fd_mask *ibits[3], *obits[3];
|
||||
fd_set ob[3];
|
||||
|
||||
@@ -57,10 +57,10 @@ struct selinfo {
|
||||
(if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out
|
||||
after waiting the interval specified therein. Returns the number of ready
|
||||
descriptors, or -1 for errors. */
|
||||
extern int select (int __nfds, fd_set *__readfds,
|
||||
fd_set *__writefds,
|
||||
fd_set *__exceptfds,
|
||||
struct timeval *__timeout);
|
||||
extern int select (int __nfds, fd_set *__restrict __readfds,
|
||||
fd_set *__restrict __writefds,
|
||||
fd_set *__restrict __exceptfds,
|
||||
struct timeval *__restrict __timeout);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user