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