|
Message-ID: <20140519220959.GR507@brightrain.aerifal.cx> Date: Mon, 19 May 2014 18:09:59 -0400 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: [PATCH] fix sysconf(_SC_LINE_MAX) to return LINE_MAX On Wed, May 07, 2014 at 11:26:39AM +0200, Christian Wiese wrote: > Hi, > > attached is a patch for fixing sysconf(_SC_LINE_MAX) to not always > return -1 but LINE_MAX as defined in limits.h. I've been looking into this, but -1 seems to be the correct way for the implementation to report that it does not impose an arbitrary limit. The specification of limits.h calls for these macros to be defined with "minimum maximum" values (the lowest limit the implementation might impose) while sysconf may return a more-relaxed value. It's not 100% clear whether it's intended that sysconf return -1 for them, but it seems valid and reasonable. I'd like to hear other opinions on the matter. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.