Print this page


Split Close
Expand all
Collapse all
          --- old/src/solaris/native/java/net/linux_close.c
          +++ new/src/solaris/native/java/net/linux_close.c
↓ open down ↓ 104 lines elided ↑ open up ↑
 105  105      sigaddset(&sigset, sigWakeup);
 106  106      sigprocmask(SIG_UNBLOCK, &sigset, NULL);
 107  107  }
 108  108  
 109  109  /*
 110  110   * Return the fd table for this fd or NULL is fd out
 111  111   * of range.
 112  112   */
 113  113  static inline fdEntry_t *getFdEntry(int fd)
 114  114  {
 115      -    if (fd < 0 || fd > fdCount) {
      115 +    if (fd < 0 || fd >= fdCount) {
 116  116          return NULL;
 117  117      }
 118  118      return &fdTable[fd];
 119  119  }
 120  120  
 121  121  /*
 122  122   * Start a blocking operation :-
 123  123   *    Insert thread onto thread list for the fd.
 124  124   */
 125  125  static inline void startOp(fdEntry_t *fdEntry, threadEntry_t *self)
↓ open down ↓ 260 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX