From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: ulimit/getrlimit broken on mips
Date: Sun, 13 Apr 2014 11:39:42 +0200 [thread overview]
Message-ID: <20140413093942.GX3034@port70.net> (raw)
In-Reply-To: <4a6ae836-4e98-495a-8f94-05130a76f52a@email.android.com>
* orc <orc@sibserver.ru> [2014-04-13 14:19:22 +0800]:
> On mips (eb), musl linked binary which asks kernel with getrlimit(RLIMIT_NOFILE) gets RLIM_INFINITY, but /proc/pid/limits and uClibc binary show correct limits. I can't see what number is asked because landley's strace does not know about prlimit64 and target is embedded system.
> Origin of problem is from my program which asks system for sysconf(_SC_OPEN_MAX) and gets 0x7fffffff.
yes it seems mips is special..
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/mips/include/uapi/asm/resource.h
next prev parent reply other threads:[~2014-04-13 9:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-13 6:19 orc
2014-04-13 9:39 ` Szabolcs Nagy [this message]
2014-04-14 15:00 ` Thorsten Glaser
2014-04-14 20:36 ` Szabolcs Nagy
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=20140413093942.GX3034@port70.net \
--to=nsz@port70.net \
--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).