Elliott Hughes | a186b2e | 2014-09-22 14:49:07 -0700 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions |
| 7 | * are met: |
| 8 | * * Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * * Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in |
| 12 | * the documentation and/or other materials provided with the |
| 13 | * distribution. |
| 14 | * |
| 15 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 16 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 17 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 18 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 19 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 20 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 21 | * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS |
| 22 | * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
| 23 | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 24 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
| 25 | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 26 | * SUCH DAMAGE. |
| 27 | */ |
| 28 | |
| 29 | #ifndef _POSIX_LIMITS_H_ |
| 30 | #define _POSIX_LIMITS_H_ |
| 31 | |
| 32 | /* TODO: complete and check these. */ |
| 33 | #define _POSIX2_LINE_MAX 2048 |
| 34 | #define _POSIX2_RE_DUP_MAX _POSIX_RE_DUP_MAX |
| 35 | #define _POSIX_ARG_MAX 4096 |
| 36 | #define _POSIX_CHILD_MAX 25 |
| 37 | #define _POSIX_CHOWN_RESTRICTED 1 /* yes, chown requires appropriate privileges */ |
| 38 | #define _POSIX_FSYNC 1 /* fdatasync() supported */ |
| 39 | #define _POSIX_JOB_CONTROL 1 /* job control is a Linux feature */ |
| 40 | #define _POSIX_LINK_MAX 8 |
| 41 | #define _POSIX_LOGIN_NAME_MAX 9 /* includes trailing NUL */ |
| 42 | #define _POSIX_MAPPED_FILES 1 /* mmap-ed files supported */ |
| 43 | #define _POSIX_MAX_CANON 255 |
| 44 | #define _POSIX_MAX_INPUT 255 |
| 45 | #define _POSIX_MONOTONIC_CLOCK 0 /* the monotonic clock may be available; ask sysconf */ |
| 46 | #define _POSIX_NAME_MAX 14 |
| 47 | #define _POSIX_NGROUPS_MAX 0 |
| 48 | #define _POSIX_NO_TRUNC 1 /* very long pathnames generate an error */ |
| 49 | #define _POSIX_OPEN_MAX 16 |
| 50 | #define _POSIX_PATH_MAX 256 |
| 51 | #define _POSIX_PIPE_BUF 512 |
| 52 | #define _POSIX_PRIORITY_SCHEDULING 1 /* priority scheduling is a Linux feature */ |
| 53 | #define _POSIX_REALTIME_SIGNALS -1 /* for now, this is not supported */ |
| 54 | #define _POSIX_RE_DUP_MAX 255 |
| 55 | #define _POSIX_SAVED_IDS 1 /* saved user ids is a Linux feature */ |
| 56 | #define _POSIX_SEMAPHORES 200809L |
| 57 | #define _POSIX_SEM_VALUE_MAX 32767 |
| 58 | #define _POSIX_SSIZE_MAX 32767 |
| 59 | #define _POSIX_STREAM_MAX 8 |
| 60 | #define _POSIX_SYMLINK_MAX 255 |
| 61 | #define _POSIX_SYMLOOP_MAX 8 |
| 62 | #define _POSIX_SYNCHRONIZED_IO 1 /* synchronized i/o supported */ |
| 63 | #define _POSIX_THREAD_PRIO_INHERIT 200112L /* linux feature */ |
| 64 | #define _POSIX_THREAD_PRIO_PROTECT 200112L /* linux feature */ |
| 65 | #define _POSIX_THREADS 1 /* we support threads */ |
| 66 | #define _POSIX_THREAD_STACKADDR 1 /* we support thread stack address */ |
| 67 | #define _POSIX_THREAD_STACKSIZE 1 /* we support thread stack size */ |
| 68 | #define _POSIX_TIMERS 1 /* Posix timers are supported */ |
| 69 | #define _POSIX_TTY_NAME_MAX 9 /* includes trailing NUL */ |
| 70 | #define _POSIX_TZNAME_MAX 3 |
| 71 | #define _POSIX_VDISABLE '\0' |
| 72 | |
| 73 | #endif /* _POSIX_LIMITS_H_ */ |