Roland Mainz <roland.ma...@nrubsig.org> wrote:

> * While /usr/include/iso/stdio_iso.h defines |BUFSIZ| as |#define BUFSIZ
> 1024| I would still prefer a larger buffer to make sure it can hold a
> full path and additionally text. AFAIK a value of 2*PATH_MAX+1 may be
> nice.

POSIX likes to see utilities to be able of dealing with lines of at least 
_POSIX2_LINE_MAX which is 2048 bytes.

Usinf BUFSIZ is definitely not a good idea.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to