Subject: Re: how to change swapctl() interface.
To: matthew green <mrg@eterna.com.au>
From: Matt Thomas <matt@3am-software.com>
List: tech-kern
Date: 05/26/1998 22:40:47
>i think it's a waste, like i think having 1024 (PATH_MAX) bytes for the
>pathname of the swap device -- espcially considering with our current
>kernel malloc we'd use 2k of space per swap device, with maybe 30 or so
>bytes of it actually used, in the normal case.
Why? Copy it in. Find the real length. malloc enough to contain it
and copy the intermediate string into it. No need to waste memory.
--
Matt Thomas Internet: matt@3am-software.com
3am Software Foundry WWW URL: http://www.3am-software.com/bio/matt/
Nashua, NH Disclaimer: I disavow all knowledge of this message