From owner-freebsd-questions Fri Feb 5 17:35:51 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA07428 for freebsd-questions-outgoing; Fri, 5 Feb 1999 17:35:51 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA07419 for ; Fri, 5 Feb 1999 17:35:45 -0800 (PST) (envelope-from nrahlstr@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id TAA08824; Fri, 5 Feb 1999 19:35:37 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma008796; Fri, 5 Feb 99 19:35:16 -0600 Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id TAA12754; Fri, 5 Feb 1999 19:35:29 -0600 (CST) Message-ID: <19990205193529.A12670@winternet.com> Date: Fri, 5 Feb 1999 19:35:29 -0600 From: Nathan Ahlstrom To: Vinaychandra - Shankarkumar , questions@FreeBSD.ORG Cc: vinays@tamu.edu Subject: Re: getrlimit call ... References: <199902060018.SAA11680@bach.cs.tamu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <199902060018.SAA11680@bach.cs.tamu.edu>; from Vinaychandra - Shankarkumar on Fri, Feb 05, 1999 at 06:18:29PM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hello, > I am using Free BSD 2.1.5-RELEASE and finding that the call > getrlimit() is behaving weirdly. it returns a value of 0, which means > success. But the value returned in the second parameter > rlp->rlim_cur, is -1 !! > > The parameters passed are : > first parameter is RLIMIT_NOFILE, > second parameter is a pointer to the struct rlimit. > > Is there any file which has to be modified to get the correct value? > Or any information regarding this call will be useful. That means the limit is infinite. -- Nathan Ahlstrom nrahlstr@winternet.com http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message