Re: image buffering

David Mosberger-Tang (davidm@azstarnet.com)
Thu, 29 May 1997 20:45:40 -0700

>>>>> On 29 May 1997 20:47:38 -0600, Gordon Matzigkeit <gord@m-tech.ab.ca> said:
Gord> Sane defaults, to me, would be trying to malloc the whole
Gord> thing, then if that fails, mmapping, and if that fails,
Gord> writing to a temp file.

Caveat: mmap() will not fail on systems with lazy swap-space
allocation (such as Linux). Somebody will get a SIGSEGV when running
out of space, but it's not necessarily the application that used "too
much" memory.

--david

--
Source code, list archive, and docs: http://www.azstarnet.com/~axplinux/sane/
To unsubscribe: mail -s unsubscribe sane-devel-request@listserv.azstarnet.com