From owner-freebsd-questions Fri Feb 5 16:16:15 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA27184 for freebsd-questions-outgoing; Fri, 5 Feb 1999 16:16:15 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from cs.tamu.edu (clavin.cs.tamu.edu [128.194.130.106]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA27179 for ; Fri, 5 Feb 1999 16:16:13 -0800 (PST) (envelope-from v0s5080@cs.tamu.edu) Received: from bach.cs.tamu.edu (bach [128.194.146.208]) by cs.tamu.edu (8.9.1/8.9.1) with ESMTP id SAA25168; Fri, 5 Feb 1999 18:15:34 -0600 (CST) From: Vinaychandra - Shankarkumar Received: (from v0s5080@localhost) by bach.cs.tamu.edu (8.9.1/8.9.1) id SAA11680; Fri, 5 Feb 1999 18:18:30 -0600 (CST) Message-Id: <199902060018.SAA11680@bach.cs.tamu.edu> Subject: getrlimit call ... To: questions@FreeBSD.ORG Date: Fri, 5 Feb 1999 18:18:29 -0600 (CST) Cc: vinays@tamu.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG reply to: vinays@tamu.edu X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 947 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. thanks, Vinay. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Home : 3902 College Main, Country Place apt #501, Bryan, TX 77801 Work : #514A, H R Bright Building, Texas A&M, College Station, TX 77843 Phone : Home : (409)-846-2517 Work : (409)-845-5007 Email : vinays@tamu.edu Web URL : http://www.cs.tamu.edu/people/v0s5080 _____________________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message