1 /* 2 * Copyright 2001-2010 Haiku Inc. All rights reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5 #ifndef _LIBC_LIMITS_H_ 6 #define _LIBC_LIMITS_H_ 7 /* Note: The header guard is checked in gcc's limits.h. */ 8 9 10 #include <config/types.h> 11 12 #include <float.h> /* for DBL_DIG, FLT_DIG, etc */ 13 14 /* _GCC_LIMITS_H_ is defined by GCC's internal limits.h to avoid 15 * collisions with any defines in this file. 16 */ 17 #ifndef _GCC_LIMITS_H_ 18 # include_next <limits.h> 19 #endif 20 21 #define LONGLONG_MIN (-9223372036854775807LL - 1) /* these are Be specific */ 22 #define LONGLONG_MAX (9223372036854775807LL) 23 #define ULONGLONG_MAX (0xffffffffffffffffULL) 24 25 #define ULLONG_MAX ULONGLONG_MAX 26 #define LLONG_MAX LONGLONG_MAX 27 #define LLONG_MIN LONGLONG_MIN 28 29 #define OFF_MAX LLONG_MAX 30 #define OFF_MIN LLONG_MIN 31 32 #define ARG_MAX (32768) 33 #define ATEXIT_MAX (32) 34 #define CHILD_MAX (1024) 35 #define IOV_MAX (1024) 36 #define FILESIZEBITS (64) 37 #define HOST_NAME_MAX (255) 38 #define LINE_MAX (2048) 39 #define LINK_MAX (1) 40 #define LOGIN_NAME_MAX (32) 41 #define MAX_CANON (255) 42 #define MAX_INPUT (255) 43 #define NAME_MAX (256) 44 #define NGROUPS_MAX (32) 45 #define OPEN_MAX (128) 46 #define PAGE_SIZE (4096) 47 #define PAGESIZE (4096) 48 #define PATH_MAX (1024) 49 #define PIPE_MAX (512) 50 #define PTHREAD_KEYS_MAX 256 51 #define PTHREAD_STACK_MIN 4096 52 #define SSIZE_MAX __HAIKU_SADDR_MAX 53 #define TTY_NAME_MAX (256) 54 #define TZNAME_MAX (32) 55 #define SYMLINK_MAX (1024) 56 #define SYMLOOP_MAX (16) 57 58 #define _POSIX_ARG_MAX (32768) 59 #define _POSIX_CHILD_MAX (1024) 60 #define _POSIX_HOST_NAME_MAX (255) 61 #define _POSIX_LINK_MAX (1) 62 #define _POSIX_LOGIN_NAME_MAX (9) 63 #define _POSIX_MAX_CANON (255) 64 #define _POSIX_MAX_INPUT (255) 65 #define _POSIX_NAME_MAX (255) 66 #define _POSIX_NGROUPS_MAX (8) 67 #define _POSIX_OPEN_MAX (128) 68 #define _POSIX_PATH_MAX (1024) 69 #define _POSIX_PIPE_BUF (512) 70 #define _POSIX_SSIZE_MAX __HAIKU_SADDR_MAX 71 #define _POSIX_STREAM_MAX (8) 72 #define _POSIX_TTY_NAME_MAX (256) 73 #define _POSIX_TZNAME_MAX (3) 74 #define _POSIX_SEM_VALUE_MAX INT_MAX 75 #define _POSIX_SIGQUEUE_MAX 32 76 #define _POSIX_RTSIG_MAX 8 77 #define _POSIX_CLOCKRES_MIN 20000000 78 #define _POSIX_TIMER_MAX 32 79 #define _POSIX_DELAYTIMER_MAX 32 80 81 #define _POSIX2_LINE_MAX (2048) 82 83 #endif /* _LIBC_LIMITS_H_ */ 84