Changeset 14876018 in rtems


Ignore:
Timestamp:
Nov 21, 2013, 12:24:48 AM (6 years ago)
Author:
Daniel Ramirez <javamonn@…>
Branches:
4.11, master
Children:
eea7c937
Parents:
5124d64
git-author:
Daniel Ramirez <javamonn@…> (11/21/13 00:24:48)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/21/13 00:24:48)
Message:

select.h, rtems_select.c, nds select: Add restrict keyword

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/nds/dswifi/arm9/source/sgIP_sockets.c

    r5124d64 r14876018  
    397397
    398398
    399 extern int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout) {
     399extern int select(int nfds, fd_set *__restrict readfds, fd_set *__restrict writefds,
     400                  fd_set *__restrict errorfds, struct timeval *__restrict timeout) {
    400401        // 31 days = 2678400 seconds
    401402        unsigned long timeout_ms, lasttime, temp;
  • cpukit/libnetworking/rtems/rtems_select.c

    r5124d64 r14876018  
    111111
    112112int
    113 select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *tv)
     113select (int nfds, fd_set *__restrict readfds, fd_set *__restrict writefds,
     114        fd_set *__restrict exceptfds, struct timeval *__restrict tv)
    114115{
    115116        fd_mask *ibits[3], *obits[3];
  • cpukit/libnetworking/sys/select.h

    r5124d64 r14876018  
    5858   after waiting the interval specified therein.  Returns the number of ready
    5959   descriptors, or -1 for errors.  */
    60 extern int select (int __nfds, fd_set *__readfds,
    61                    fd_set *__writefds,
    62                    fd_set *__exceptfds,
    63                    struct timeval *__timeout);
     60extern int select (int __nfds, fd_set *__restrict __readfds,
     61                   fd_set *__restrict __writefds,
     62                   fd_set *__restrict __exceptfds,
     63                   struct timeval *__restrict __timeout);
    6464
    6565#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.