X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=LIzJDXuPl7uLGrvYJ2jVTxRSEbeAoCLI7nFAxAUeh50=; b=vAy+OLh5ZZD5dPE8u4+4u6hYy3G425VB/qUf6Jhz2fds1k0o+ncpKaYlZ550u5fOAW Tp5z3YKkXY55QAHNe5SyG+C/Tk3G785W46PSHSWlMBm4RH5Fhb/+38AmaRRxf0lk622X yExXj7R0Enxw+Nb1UnWgemG7jpHWqJkq7l3GiLFQaRPq7Zr6fxCOCFkqUNkzu9ESzVKk kDGIZwDGlRb2CYUiDqYHMfWCjnd3OZ9NCj8suNMtcs1FnUa5n8M+9/Xx4XlzIl1KQEPo nq6bK8ELxNbJV/oO/P/lZcPl1eE1E6+ztApjDYyEQrG5sX8CTp/NIdBf0ZYrfNL4piM5 jjvQ== MIME-Version: 1.0 X-Received: by 10.60.19.231 with SMTP id i7mr9452188oee.34.1359313726254; Sun, 27 Jan 2013 11:08:46 -0800 (PST) In-Reply-To: <83vcaiilo3.fsf@gnu.org> References: <51054184 DOT 8000700 AT gmx DOT de> <83vcaiilo3 DOT fsf AT gnu DOT org> Date: Sun, 27 Jan 2013 13:08:46 -0600 Message-ID: Subject: Re: typedefing rlim_t From: Rugxulo To: djgpp-workers AT delorie DOT com Content-Type: text/plain; charset=ISO-8859-1 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, On Sun, Jan 27, 2013 at 11:24 AM, Eli Zaretskii wrote: >> Date: Sun, 27 Jan 2013 16:02:28 +0100 >> From: Juan Manuel Guerrero >> >> While I was trying to port latest sed, I have noted that djgpp's resource.h >> does not provide rlim_t. An inspection of other resource.h files shows that >> this typedef should be an unsigned long but djgpp uses long. > > As for the signed vs unsigned issue, it doesn't really matter with > DJGPP, does it? Do we ever need to specify or return values that are > larger than LONG_MAX? Uh, what exactly is it? For "resources" (kernel?) ?? (EDIT: ?? a la "nice", getpriority(), setpriority() ??) A quick search only seems to imply it should (usually) be "unsigned long": http://www.monkey.org/openbsd/archive/misc/0310/msg00520.html http://pubs.opengroup.org/onlinepubs/007904975/basedefs/sys/resource.h.html http://www.freepascal.org/docs-html/rtl/baseunix/rlim_t.html http://www.delorie.com/djgpp//mail-archives/browse.cgi?p=djgpp-workers/2003/12/23/14:17:31