tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

aixwrap.c (1036B)


      1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this
      4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 /*
      7 * File:        aixwrap.c
      8 * Description:
      9 *     This file contains a single function, _MD_SELECT(), which simply
     10 *     invokes the select() function.  This file is used in an ugly
     11 *     hack to override the system select() function on AIX releases
     12 *     prior to 4.2.  (On AIX 4.2, we use a different mechanism to
     13 *     override select().)
     14 */
     15 
     16 #ifndef AIX_RENAME_SELECT
     17 #  error aixwrap.c should only be used on AIX 3.2 or 4.1
     18 #else
     19 
     20 #  include <sys/select.h>
     21 #  include <sys/poll.h>
     22 
     23 int _MD_SELECT(int width, fd_set* r, fd_set* w, fd_set* e, struct timeval* t) {
     24  return select(width, r, w, e, t);
     25 }
     26 
     27 int _MD_POLL(void* listptr, unsigned long nfds, long timeout) {
     28  return poll(listptr, nfds, timeout);
     29 }
     30 
     31 #endif /* AIX_RENAME_SELECT */