How big is BUFSIZ on your system?

Chris Lewis clewis at ferret.ocunix.on.ca
Fri Apr 12 11:50:56 AEST 1991


In article <539 at appserv.Eng.Sun.COM> bufsiz at slovax.sun.com writes:
>	I'm tryng to figure out if BUFSIZ == 1024 on all the machines
>out there.  If you were to reply to this mesage, and (from vi) say:

>!!grep BUFSIZ /usr/include/stdio.h

#define BUFSIZ	4096
#define BUFSIZ	1024
#define BUFSIZ	512
#define BUFSIZ 1024

>as well as (from vi)

>!!cat /etc/motd

Welcome to Chris's Machine

>I would appreciate it a lot.

Does this help? ;-)

It would have been a lot simpler if you just asked: "if you're
stdio buffer size != 1024, please tell me what your machine/OS
is."  Being overly helpful in how the information is retrieved
will just confuse you.  Most System V's have stdio.h's that look
like this - the BUFSIZ's are ifdef'd for various machines.

My BUFSIZ (3b1 3.5.1.4) is really 1024.  V7's are usually 512
and that 4096 you see up there is some flavour of S/370 UNIX.
-- 
Chris Lewis, Phone: (613) 832-0541, Internet: clewis at ferret.ocunix.on.ca
UUCP: uunet!mitel!cunews!latour!ecicrl!clewis; Ferret Mailing List:
ferret-request at eci386; Psroff (not Adobe Transcript) enquiries:
psroff-request at eci386 or Canada 416-832-0541.  Psroff 3.0 in c.s.u soon!



More information about the Comp.unix.wizards mailing list