1 /* 2 * Copyright 2012, The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #ifndef _POLL_PORTABLE_H_ 18 #define _POLL_PORTABLE_H_ 19 20 /* Derived from development/ndk/platforms/android-3/arch-arm/include/asm/poll.h */ 21 22 #define POLLIN_PORTABLE 0x0001 23 #define POLLPRI_PORTABLE 0x0002 24 #define POLLOUT_PORTABLE 0x0004 25 #define POLLERR_PORTABLE 0x0008 26 #define POLLHUP_PORTABLE 0x0010 27 #define POLLNVAL_PORTABLE 0x0020 28 29 #define POLLRDNORM_PORTABLE 0x0040 30 #define POLLRDBAND_PORTABLE 0x0080 31 #define POLLWRNORM_PORTABLE 0x0100 32 #define POLLWRBAND_PORTABLE 0x0200 33 #define POLLMSG_PORTABLE 0x0400 34 #define POLLREMOVE_PORTABLE 0x1000 35 #define POLLRDHUP_PORTABLE 0x2000 36 37 #endif /* _POLL_PORTABLE_H_ */ 38