Void Linux discussion
 help / color / mirror / Atom feed
From: "'Quentin Rameau' via voidlinux" <voidlinux@googlegroups.com>
To: voidlinux@googlegroups.com
Subject: Re: [PATCH] musl: move NPROCESSORS* constants to regular namespace
Date: Sun,  6 Nov 2022 20:05:57 +0100	[thread overview]
Message-ID: <20221106190558.26434-1-quinq@fifth.space> (raw)
In-Reply-To: <87o7tkvtw7.fsf@vuxu.org>

Hi Leah,

Thank you for taking the time to review this.

> That will break current scripts using `getconf _NPROCESSORS_CONF`.
> From the man page, it's not clear to me if things there need
> underscores or not, but imo we should extend the script in a
> backward-compatible way.

I highly doubt anybody is relying on the constants from the reserved
namespace, as on most other systems, those are exposed directly.

For the names, the POSIX getconf additions from the page I linked
explains it:

“The names NPROCESSORS_CONF and NPROCESSORS_ONLN. The values of these
configuration variables shall be determined as if they were obtained by
calling the function sysconf() with the argument _SC_NPROCESSORS_CONF
or _SC_NPROCESSORS_ONLN, respectively.”

This would be added in the section “system_var: A name of a
configuration variable. All of the following variables
shall be supported:”

I nevertheless kept the previous underscored versions just in case,
I suppose that we could remove those after the POSIX release.

Cheers!

-- 
You received this message because you are subscribed to the Google Groups "voidlinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to voidlinux+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/voidlinux/20221106190558.26434-1-quinq%40fifth.space.

  reply	other threads:[~2022-11-06 19:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-06  8:09 'Quentin Rameau' via voidlinux
2022-11-06 18:07 ` Leah Neukirchen
2022-11-06 19:05   ` 'Quentin Rameau' via voidlinux [this message]
2022-11-06 19:05     ` [PATCH] musl: add " 'Quentin Rameau' via voidlinux
2022-11-07 14:28     ` [PATCH] musl: move " Leah Neukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221106190558.26434-1-quinq@fifth.space \
    --to=voidlinux@googlegroups.com \
    --cc=quinq@fifth.space \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).