Roland Mainz <[email protected]> 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:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (uni) [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
