summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/bits/uClibc_local_lim.h
blob: 832051cd71f6afa26cf7a368aeb17638ab7b52a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
 */
/*
 * Never include this file directly; use <unistd.h> instead.
 */

#ifndef	_BITS_UCLIBC_LOCAL_LIM_H
#define	_BITS_UCLIBC_LOCAL_LIM_H	1

/* This file works correctly only if local_lim.h is the NPTL version */
#if !defined PTHREAD_KEYS_MAX || defined TIMER_MAX || !defined SEM_VALUE_MAX
# error local_lim.h was incorrectly updated, use the NPTL version from glibc
#endif

/* This should really be moved to thread specific directories */
#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_THREADS_NATIVE__
/* glibc uses 16384 */
# define PTHREAD_THREADS_MAX	1024
# define TIMER_MAX		256
# undef SEM_VALUE_MAX
# undef PTHREAD_STACK_MIN
/* glibc uses at least 16364 */
# define PTHREAD_STACK_MIN	1024
#endif

#ifndef __UCLIBC_HAS_THREADS__
# undef _POSIX_THREAD_KEYS_MAX
# undef PTHREAD_KEYS_MAX
# undef _POSIX_THREAD_DESTRUCTOR_ITERATIONS
# undef PTHREAD_DESTRUCTOR_ITERATIONS
# undef PTHREAD_STACK_MIN
# undef DELAYTIMER_MAX
# undef SEM_VALUE_MAX
#endif

#endif /* bits/uClibc_local_lim.h */