Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Check for sysconf(). |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
3f7dee97e8b1cffb3ca2554ae7c23715 |
| User & Date: | js 2013-04-26 22:32:43.000 |
Context
|
2013-04-27
| ||
| 01:26 | Add OFStdIOStream. check-in: 085bfc12a0 user: js tags: trunk | |
|
2013-04-26
| ||
| 22:32 | Check for sysconf(). check-in: 3f7dee97e8 user: js tags: trunk | |
| 22:25 | Better checks for functions used in OFFile. check-in: c01ed004b0 user: js tags: trunk | |
Changes
Changes to configure.ac.
| ︙ | ︙ | |||
569 570 571 572 573 574 575 | AC_MSG_CHECKING(for atomic operations) AS_IF([test x"$atomic_ops" != x"none"], [ AC_DEFINE(OF_HAVE_ATOMIC_OPS, 1, [Whether we have atomic operations]) AC_SUBST(ATOMIC_H, "atomic.h") ]) AC_MSG_RESULT($atomic_ops) | | | 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 | AC_MSG_CHECKING(for atomic operations) AS_IF([test x"$atomic_ops" != x"none"], [ AC_DEFINE(OF_HAVE_ATOMIC_OPS, 1, [Whether we have atomic operations]) AC_SUBST(ATOMIC_H, "atomic.h") ]) AC_MSG_RESULT($atomic_ops) AC_CHECK_FUNCS([sysconf gmtime_r localtime_r nanosleep]) AC_CHECK_HEADERS([pwd.h grp.h]) AC_CHECK_FUNC(chmod, [ AC_DEFINE(OF_HAVE_CHMOD, 1, [Whether we have chmod()]) ]) AC_CHECK_FUNC(chown, [ AC_DEFINE(OF_HAVE_CHOWN, 1, [Whether we have chown()]) |
| ︙ | ︙ |
Changes to src/OFSystemInfo.m.
| ︙ | ︙ | |||
47 48 49 50 51 52 53 | pageSize = si.dwPageSize; numberOfCPUs = si.dwNumberOfProcessors; #elif defined(__QNX__) if ((pageSize = sysconf(_SC_PAGESIZE)) < 1) pageSize = 4096; numberOfCPUs = _syspage_ptr->num_cpu; #else | | | | 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | pageSize = si.dwPageSize; numberOfCPUs = si.dwNumberOfProcessors; #elif defined(__QNX__) if ((pageSize = sysconf(_SC_PAGESIZE)) < 1) pageSize = 4096; numberOfCPUs = _syspage_ptr->num_cpu; #else # if defined(HAVE_SYSCONF) && defined(_SC_PAGESIZE) if ((pageSize = sysconf(_SC_PAGESIZE)) < 1) # endif pageSize = 4096; # if defined(HAVE_SYSCONF) && defined(_SC_NPROCESSORS_CONF) if ((numberOfCPUs = sysconf(_SC_NPROCESSORS_CONF)) < 1) # endif numberOfCPUs = 1; #endif } + alloc |
| ︙ | ︙ |