Skip to content

Commit

Permalink
musl: add NPROCESSORS* constants to regular namespace
Browse files Browse the repository at this point in the history
The constants _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN
have been included in POSIX-next[0] so we can already make them
available as they don't conflict with anything else.

Move them in their own commented caterogy, maybe,
once POSIX release has been done.

The previous definitions are kept for backward-compatibility,
although most likely nobody uses those as they're undocumented
extensions of this implementation; remove them later.

[0] https://austingroupbugs.net/view.php?id=339
  • Loading branch information
Quentin Rameau authored and leahneukirchen committed Nov 11, 2022
1 parent 3dfd019 commit 9040730
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions srcpkgs/musl/files/getconf.c
Expand Up @@ -172,6 +172,8 @@ static const struct conf_variable conf_table[] = {
{ "_AVPHYS_PAGES", SYSCONF, _SC_AVPHYS_PAGES },
{ "_NPROCESSORS_CONF", SYSCONF, _SC_NPROCESSORS_CONF },
{ "_NPROCESSORS_ONLN", SYSCONF, _SC_NPROCESSORS_ONLN },
{ "NPROCESSORS_CONF", SYSCONF, _SC_NPROCESSORS_CONF },
{ "NPROCESSORS_ONLN", SYSCONF, _SC_NPROCESSORS_ONLN },

/* Data type related extensions */
{ "CHAR_BIT", CONSTANT, CHAR_BIT },
Expand Down
2 changes: 1 addition & 1 deletion srcpkgs/musl/template
Expand Up @@ -2,7 +2,7 @@
pkgname=musl
reverts="1.2.0_1"
version=1.1.24
revision=10
revision=11
archs="*-musl"
bootstrap=yes
build_style=gnu-configure
Expand Down

0 comments on commit 9040730

Please sign in to comment.