mailing list of musl libc
 help / color / mirror / code / Atom feed
From: 黄建忠 <jianzhong.huang@i-soft.com.cn>
To: musl <musl@lists.openwall.com>
Subject: get_nprocs/_conf leave unimplemented in sys/sysconf.h
Date: Mon, 3 Nov 2014 14:25:57 +0800	[thread overview]
Message-ID: <tencent_53728F690A25F5A03E3045F8@qq.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 371 bytes --]

Hi,
some funcs in sys/sysconf.h leave unimpletmented, for example:
get_nprocs/_conf and other two.

Even these funcs are rare used, I still find a problem in jamvm(for get_nprocs), defined but unimplemented.

I use below codes to fix:

#define get_nprocs_conf() (sysconf(_SC_NPROCESSORS_CONF))
#define get_nprocs() (sysconf(_SC_NPROCESSORS_ONLN))

It seems ok.

[-- Attachment #2: Type: text/html, Size: 455 bytes --]

                 reply	other threads:[~2014-11-03  6:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=tencent_53728F690A25F5A03E3045F8@qq.com \
    --to=jianzhong.huang@i-soft.com.cn \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).