From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4876 Path: news.gmane.org!not-for-mail From: orc Newsgroups: gmane.linux.lib.musl.general Subject: ulimit/getrlimit broken on mips Date: Sun, 13 Apr 2014 14:19:22 +0800 Message-ID: <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=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1397369990 18047 80.91.229.3 (13 Apr 2014 06:19:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 13 Apr 2014 06:19:50 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4880-gllmg-musl=m.gmane.org@lists.openwall.com Sun Apr 13 08:19:44 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 1WZDlW-0003TI-Hs for gllmg-musl@plane.gmane.org; Sun, 13 Apr 2014 08:19:42 +0200 Original-Received: (qmail 28064 invoked by uid 550); 13 Apr 2014 06:19:40 -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 28056 invoked from network); 13 Apr 2014 06:19:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on webserver X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=NO_RECEIVED,NO_RELAYS autolearn=ham autolearn_force=no version=3.4.0 User-Agent: K-9 Mail for Android Xref: news.gmane.org gmane.linux.lib.musl.general:4876 Archived-At: 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.