nsprpub/pr/src/md/unix/aixwrap.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     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  */
    16 #ifndef AIX_RENAME_SELECT
    17 #error aixwrap.c should only be used on AIX 3.2 or 4.1
    18 #else
    20 #include <sys/select.h>
    21 #include <sys/poll.h>
    23 int _MD_SELECT(int width, fd_set *r, fd_set *w, fd_set *e, struct timeval *t)
    24 {
    25     return select(width, r, w, e, t);
    26 }
    28 int _MD_POLL(void *listptr, unsigned long nfds, long timeout)
    29 {
    30     return poll(listptr, nfds, timeout);
    31 }
    33 #endif /* AIX_RENAME_SELECT */

mercurial