michael@0: /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* michael@0: * File: aixwrap.c michael@0: * Description: michael@0: * This file contains a single function, _MD_SELECT(), which simply michael@0: * invokes the select() function. This file is used in an ugly michael@0: * hack to override the system select() function on AIX releases michael@0: * prior to 4.2. (On AIX 4.2, we use a different mechanism to michael@0: * override select().) michael@0: */ michael@0: michael@0: #ifndef AIX_RENAME_SELECT michael@0: #error aixwrap.c should only be used on AIX 3.2 or 4.1 michael@0: #else michael@0: michael@0: #include michael@0: #include michael@0: michael@0: int _MD_SELECT(int width, fd_set *r, fd_set *w, fd_set *e, struct timeval *t) michael@0: { michael@0: return select(width, r, w, e, t); michael@0: } michael@0: michael@0: int _MD_POLL(void *listptr, unsigned long nfds, long timeout) michael@0: { michael@0: return poll(listptr, nfds, timeout); michael@0: } michael@0: michael@0: #endif /* AIX_RENAME_SELECT */