~ubuntu-branches/ubuntu/wily/musl/wily

« back to all changes in this revision

Viewing changes to src/conf/sysconf.c

  • Committer: Package Import Robot
  • Author(s): Kevin Bortis
  • Date: 2013-09-27 23:47:18 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20130927234718-a96bgcnvzx5buf60
Tags: 0.9.14-1
* Import upstream version 0.9.14
* Only build on fully supported architectures
* Point to new homepage in control file (Closes: #724277)
* Revorked debian/rules
* Solved possible problem with postrm script (Closes: #724247)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#include <limits.h>
3
3
#include <errno.h>
4
4
#include <sys/resource.h>
 
5
#include <signal.h>
5
6
#include "syscall.h"
 
7
#include "libc.h"
6
8
 
7
9
#define VER (-2)
8
10
#define OFLOW (-3)
40
42
                [_SC_AIO_PRIO_DELTA_MAX] = 0, /* ?? */
41
43
                [_SC_DELAYTIMER_MAX] = _POSIX_DELAYTIMER_MAX,
42
44
                [_SC_MQ_OPEN_MAX] = -1,
43
 
                [_SC_MQ_PRIO_MAX] = MQ_PRIO_MAX,
 
45
                [_SC_MQ_PRIO_MAX] = OFLOW,
44
46
                [_SC_VERSION] = VER,
45
 
                [_SC_PAGE_SIZE] = PAGE_SIZE,
46
 
                [_SC_RTSIG_MAX] = 63, /* ?? */
 
47
                [_SC_PAGE_SIZE] = OFLOW,
 
48
                [_SC_RTSIG_MAX] = _NSIG - 1 - 31 - 3,
47
49
                [_SC_SEM_NSEMS_MAX] = SEM_NSEMS_MAX,
48
50
                [_SC_SEM_VALUE_MAX] = OFLOW,
49
51
                [_SC_SIGQUEUE_MAX] = -1,
221
223
        } else if (values[name] == OFLOW) {
222
224
                if (name == _SC_ARG_MAX) return ARG_MAX;
223
225
                if (name == _SC_SEM_VALUE_MAX) return SEM_VALUE_MAX;
 
226
                if (name == _SC_MQ_PRIO_MAX) return MQ_PRIO_MAX;
 
227
                /* name == _SC_PAGE_SIZE */
 
228
                return PAGE_SIZE;
224
229
        } else if (values[name] == CPUCNT) {
225
230
                unsigned char set[128] = {1};
226
231
                int i, cnt;