From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ar.aichi-u.ac.jp ([202.250.160.40]) by ttr; Wed Apr 30 11:37:48 EDT 2014 Received: from [192.168.1.111] ([125.192.161.78]) by ar; Wed Apr 30 23:44:28 JST 2014 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: [9front] cwfs fsmempercent From: Kenji Arisawa In-Reply-To: Date: Wed, 30 Apr 2014 23:41:40 +0900 Content-Transfer-Encoding: 7bit Message-Id: List-ID: <9front.9front.org> X-Glyph: ➈ X-Bullshit: polling HTTP scripting self-signing cloud session locator References: To: 9front@9front.org X-Mailer: Apple Mail (2.1510) thanks. I will try and report. by the way, I cannot compile pc64 term% pwd /sys/src/9/pc64 term% mk mk: ambiguous recipes for devusb.6: devusb.6 <-(mkfile:94)- ../pc/devusb.c devusb.6 <-(../port/portmkfile:3)- ../port/devusb.c term% what's wrong? On 2014/04/30, at 5:11, cinap_lenrek@felloff.net wrote: > that might work. i havnt tried it. you need to be carefull > with overflows as 2GB becomes negative with signed 32 bit ints. > > if(dsize >= 0x80000000UL){ /* for sanity, overflow */ > werrstr("invalid allocation size"); > return nil; > } > > the only routine that does substantial allocation is iobufinit() > in cwfs/malloc.c. > > as far as i can see, this memory is never freed, so we might > just remove the define: > > all.h:13: #define malloc(n) ialloc(n, 0) > > and provide our own ialloc() that just uses brk(). > > -- > cinap