Re: SG_BIG_BUFF woes on Linux

Petter Reinholdtsen (pere@hungry.com)
Thu, 21 Jan 1999 15:26:17 +0100 (MET)

[Gerald Turner]
> This works but a better implementation would be to use sysctl() to
> get the value of sg-big-buff at runtime, better yet fread()
> /proc/sys/kernel/sg-big-buff.

Why do you think that reading this value from /proc is a better
implementation then using sysctl(). The POSIX way would probably be
to use sysconf(), but is there a name for SG_BIG_BUFF defined?

-- 
##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com