From owner-freebsd-questions Sun Jun 28 08:23:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA03290 for freebsd-questions-outgoing; Sun, 28 Jun 1998 08:23:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ultra1.dreamscape.com (ultra1.dreamscape.com [206.64.128.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA03285 for ; Sun, 28 Jun 1998 08:23:34 -0700 (PDT) (envelope-from aaron@csh.rit.edu) Received: from thud.homenet (uA1-b17.dreamscape.com [207.198.23.50]) by ultra1.dreamscape.com (8.8.5/8.8.4) with ESMTP id LAA29318; Sun, 28 Jun 1998 11:23:28 -0400 (EDT) Received: (from aaron@localhost) by thud.homenet (8.8.7/8.8.7) id LAA00556; Sun, 28 Jun 1998 11:23:34 -0400 (EDT) (envelope-from aaron) Message-ID: <19980628112334.31048@homenet> Date: Sun, 28 Jun 1998 11:23:34 -0400 From: Aaron Jeremias Luz To: phj Cc: questions@FreeBSD.ORG Subject: Re: How to malloc more memory than 20M. Reply-To: aaron@csh.rit.edu References: <3596E355.942F1AF9@www.transfar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <3596E355.942F1AF9@www.transfar.com>; from phj on Sun, Jun 28, 1998 at 05:44:05PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Jun 28, 1998 at 05:44:05PM -0700, phj wrote: > Do you know how to malloc more space for my program. > char *p; > p=(char *)malloc(20000000); > it always fail at the above line ,how can I malloc more memory than > 20M. You are probably running into user resource limits. These can be changed by editing /etc/login.conf. (Don't forget to run cap_mkdb /etc/login.conf afterwards!) Or you could change which class your login account is assigned to using chfn as root. Aaron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message