From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4877 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: ulimit/getrlimit broken on mips Date: Sun, 13 Apr 2014 11:39:42 +0200 Message-ID: <20140413093942.GX3034@port70.net> References: <4a6ae836-4e98-495a-8f94-05130a76f52a@email.android.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1397382011 23225 80.91.229.3 (13 Apr 2014 09:40:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2014 09:40:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4881-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 13 11:40:01 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WZGtL-0005s6-P6 for gllmg-musl@plane.gmane.org; Sun, 13 Apr 2014 11:39:59 +0200 Original-Received: (qmail 18267 invoked by uid 550); 13 Apr 2014 09:39:55 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 18259 invoked from network); 13 Apr 2014 09:39:54 -0000 Content-Disposition: inline In-Reply-To: <4a6ae836-4e98-495a-8f94-05130a76f52a@email.android.com> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4877 Archived-At: * orc [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