#
4601c720 |
| 09-Sep-2024 |
riastradh <riastradh@NetBSD.org> |
limits.h: Define PTHREAD_STACK_MIN and tidy up comments.
Define this to be 4096, which is (as far as I can tell) the smallest possible page size on any architecture NetBSD supports. This should be
limits.h: Define PTHREAD_STACK_MIN and tidy up comments.
Define this to be 4096, which is (as far as I can tell) the smallest possible page size on any architecture NetBSD supports. This should be MIN_PAGE_SIZE instead, but I don't think that is exposed in any way that doesn't badly pollute the namespace. We should maybe have a __MIN_PAGE_SIZE defined in some header file exposed to userland.
Of course, applications actually need to allocate at least sysconf(_SC_THREAD_STACK_MIN) = getpagesize() bytes, which may be larger than PTHREAD_STACK_MIN.
The various feature flags (dates) like _POSIX_THREAD_ATTR_STACKADDR are defined (or not defined) by unistd.h, not by limits.h, so there's no value in mentioning them here -- and the comment is wrong about most of them (we have implemented _POSIX_THREAD_ATTR_STACKADDR, for example).
PR standards/45435: PTHREAD_KEYS_MAX et al. missing in <limits.h>
show more ...
|
#
6b25f114 |
| 15-Aug-2024 |
riastradh <riastradh@NetBSD.org> |
getentropy(3): Make this visible to POSIX.1-2024 applications.
Likewise GETENTROPY_MAX.
It is now part of POSIX:
https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/getentropy.h
getentropy(3): Make this visible to POSIX.1-2024 applications.
Likewise GETENTROPY_MAX.
It is now part of POSIX:
https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/getentropy.html
Cite standard in man page too. While here, use `.Nm' rather than `.Fn getentropy' for self-reference in the man page, for consistency with other usage.
PR standards/58603: getentropy(3): update visibility and documentation for POSIX.1-2024
show more ...
|
#
2b5e567d |
| 31-May-2022 |
riastradh <riastradh@NetBSD.org> |
libc: Reintroduce getentropy.
This was introduced two years ago when the getrandom/getentropy API question was still open, and removed because the discussion was ongoing. Now getentropy is more wid
libc: Reintroduce getentropy.
This was introduced two years ago when the getrandom/getentropy API question was still open, and removed because the discussion was ongoing. Now getentropy is more widely adopted and soon to be in POSIX. So reintroduce the symbol into libc since we'll be keeping it anyway. Discussion of details of the semantics, as interpreted by NetBSD, is ongoing, but the symbol needs to get in before the netbsd-10 branch. The draft POSIX text is (https://www.opengroup.org/austin/docs/austin_1110.pdf):
SYNOPSIS #include <unistd.h>
int getentropy(void *buffer, size_t length);
DESCRIPTION The getentropy() function shall write length bytes of data starting at the location pointed to by buffer. The output shall be unpredictable high quality random data, generated by a cryptographically secure pseudo-random number generator. The maximum permitted value for the length argument is given by the {GETENTROPY_MAX} symbolic constant defined in <limits.h>.
RETURN VALUES Upon successful completion, getentropy() shall return 0; otherwise, -1 shall be retunred and errno set to indicate the error.
ERRORS The getentropy() function shall fail if:
[EINVAL] The value of length is greater than {GETENTROPY_MAX}.
The getentropy() function may fail if:
[ENOSYS] The system does not provide the necessary source of entropy.
RATIONALE The getentropy() function is not a cancellation point.
Minor changes from the previous introduction of getentropy into libc:
- Return EINVAL, not EIO, on buflen > 256. - Define GETENTROPY_MAX in limits.h.
The declaration of getentropy in unistd.h and definition of GETENTROPY_MAX in limits.h are currently conditional on _NETBSD_SOURCE. When the next revision of POSIX is finalized, we can expose them also under _POSIX_C_SOURCE > 20yymmL as usual -- and this can be done as a pullup without breaking existing compiled programs.
show more ...
|
#
06dda90b |
| 15-Sep-2019 |
christos <christos@NetBSD.org> |
remove comment for incomplete x/open impl (kamil)
|
#
9dd780b2 |
| 15-Sep-2019 |
christos <christos@NetBSD.org> |
Remove the _INCOMPLETE_XOPEN_C063 stuff.
|
#
c10c4abe |
| 04-Aug-2016 |
christos <christos@NetBSD.org> |
Realtime signal support from GSoC 2016, Charles Cui.
|
#
d1b45259 |
| 21-Jul-2016 |
njoly <njoly@NetBSD.org> |
According to Opengroup online specifications[1], _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options should be present in unistd.h not limits.h. Move them with other options.
[1] http://pubs.opengroup.
According to Opengroup online specifications[1], _POSIX_CPUTIME and _POSIX_THREAD_CPUTIME options should be present in unistd.h not limits.h. Move them with other options.
[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/unistd.h.html
show more ...
|
#
ea2913a0 |
| 10-Jun-2016 |
christos <christos@NetBSD.org> |
GSoC 2016: Charles Cui: Add timer related macros _POSIX_CPUTIME _POSIX_THREAD_CPUTIME _POSIX_DELAYTIMER_MAX
|
#
0196f35d |
| 10-Jun-2016 |
christos <christos@NetBSD.org> |
GSoC 2016: Charles Cui: add SEM_NSEMS_MAX
|
#
53a91c70 |
| 08-Mar-2016 |
christos <christos@NetBSD.org> |
- GC pts_fired, and fix the comment about MAX_TIMERS - Bump MAX_TIMERS to 36 so that we have 32 POSIX user timers which is the minimum required.
|
#
68cdf08b |
| 26-Feb-2016 |
christos <christos@NetBSD.org> |
We only have 28 timers available.
|
#
841339f0 |
| 29-May-2015 |
manu <manu@NetBSD.org> |
Make PTHREAD_KEYS_MAX dynamically adjustable
NetBSD's PTHREAD_KEYS_MAX is set to 256, which is low compared to other systems like Linux (1024) or MacOS X (512). As a result some setups tested on Lin
Make PTHREAD_KEYS_MAX dynamically adjustable
NetBSD's PTHREAD_KEYS_MAX is set to 256, which is low compared to other systems like Linux (1024) or MacOS X (512). As a result some setups tested on Linux will exhibit problems on NetBSD because of pthread_keys usage beyond the limit. This happens for instance on Apache with various module loaded, and in this case no particular developper can be blamed for going beyond the limit, since several modules from different sources contribute to the problem.
This patch makes the limit conigurable through the PTHREAD_KEYS_MAX environement variable. If undefined, the default remains unchanged (256). In any case, the value cannot be lowered below POSIX-mandated _POSIX_THREAD_KEYS_MAX (128).
While there: - use EXIT_FAILURE instead of 1 when calling err(3) in libpthread. - Reset _POSIX_THREAD_KEYS_MAX to POSIX mandated 128, instead of 256.
show more ...
|
#
a76c1cc1 |
| 18-Nov-2012 |
manu <manu@NetBSD.org> |
Add most system calls for POSIX extended API set, part 2, with test cases: faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), linkat(2), readlinkat(2), symlinkat
Add most system calls for POSIX extended API set, part 2, with test cases: faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2), utimensat(2), openat(2).
Also implement O_SEARCH for openat(2)
Still missing: - some flags for openat(2) - fexecve(2) implementation
show more ...
|
#
20331437 |
| 28-Mar-2012 |
christos <christos@NetBSD.org> |
make CHAR_{MIN,MAX} work for both -fsigned-char and -funsigned-char
|
#
d69c1b55 |
| 06-Oct-2011 |
christos <christos@NetBSD.org> |
Fix pthreads variables: - Add missing stuff from Issue 6 (some of it commented out) - Fix _POSIX_THREAD -> PTHREAD variable confusion - Amend PTHREAD_KEYS_MAX to 256 since this is what libpthread def
Fix pthreads variables: - Add missing stuff from Issue 6 (some of it commented out) - Fix _POSIX_THREAD -> PTHREAD variable confusion - Amend PTHREAD_KEYS_MAX to 256 since this is what libpthread defined internally
show more ...
|
#
2a4490f2 |
| 16-Aug-2011 |
manu <manu@NetBSD.org> |
Add macros to hide OpenGroup extened API set 2 from GNU configure. This is a temporary workaround until the implementation is completed.
|
#
9efec5bc |
| 07-Jun-2010 |
tnozaki <tnozaki@NetBSD.org> |
1. MB_LEN_MAX switch MD to MI. 2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32 so we have to add more setlocale(3) __RENAME func, __setlocale50. 3. move setlocale1.c and
1. MB_LEN_MAX switch MD to MI. 2. unfortunately hppa's MB_LEN_MAX is defined incorrectly 6 instead of 32 so we have to add more setlocale(3) __RENAME func, __setlocale50. 3. move setlocale1.c and setlocale32.c to lib/libc/compat/locale/* prepareing for next libc major crunk. 4. bump libc minor version.
show more ...
|
#
e9d44513 |
| 27-Aug-2008 |
christos <christos@NetBSD.org> |
Make _POSIX_TZNAME_MAX=6 per SUSv3, from Andy Shevchenko
|
#
e90b0847 |
| 04-Aug-2008 |
matt <matt@NetBSD.org> |
Add _POSIX_HOST_NAME_MAX and _POSIX_SYMLOOP_MAX to <limits.h> and add some references to them in <sys/param.h> in <stdio.h> also export v*scanf when _ISOC99_SOURCE is defined
From andy dot shevchenk
Add _POSIX_HOST_NAME_MAX and _POSIX_SYMLOOP_MAX to <limits.h> and add some references to them in <sys/param.h> in <stdio.h> also export v*scanf when _ISOC99_SOURCE is defined
From andy dot shevchenko at gmail dot com.
show more ...
|
#
9861030b |
| 21-Sep-2007 |
rmind <rmind@NetBSD.org> |
- Correct the value of _POSIX_SYMLINK_MAX as defined in standard. Closes PR/37007 by Ighighi. - While here, increase _POSIX_CHILD_MAX as suggested by standard.
|
#
2cecf9bb |
| 07-Sep-2007 |
rmind <rmind@NetBSD.org> |
Implementation of POSIX message queues.
Reviewed by: <ad>, <tech-kern>
|
#
0994dd06 |
| 01-May-2007 |
rmind <rmind@NetBSD.org> |
- Create sysctl nodes for AIO. - Add POSIX defined system variables and constants of AIO_LISTIO_MAX and AIO_MAX values. Both with _POSIX_ASYNCHRONOUS_IO, provide them in sysconf(3) and getconf(1
- Create sysctl nodes for AIO. - Add POSIX defined system variables and constants of AIO_LISTIO_MAX and AIO_MAX values. Both with _POSIX_ASYNCHRONOUS_IO, provide them in sysconf(3) and getconf(1) interfaces. - Clean up sysconf(3) for handling sysctl nodes dynamically.
show more ...
|
#
246f6fd9 |
| 10-Nov-2004 |
lukem <lukem@NetBSD.org> |
Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).
These are not implemented in sysctl(3) "user.*", s
Implement sysconf(3) _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX for the 1003.1-2001 Thread Safe Functions (TSF) getgrnam_r(3) and getpwnam_r(3).
These are not implemented in sysctl(3) "user.*", since that adds a lot of complexity in the implementation for no real benefit.
show more ...
|
#
039cc956 |
| 07-Aug-2003 |
agc <agc@NetBSD.org> |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22270, verified by myself.
|
#
c35f5dd3 |
| 16-Jul-2003 |
nathanw <nathanw@NetBSD.org> |
Add the _POSIX_THREAD and _POSIX_TIMER mandated minimum limits.
|