On Mon, 14 Mar 2005 17:48:05 +0300 Evgeniy <[EMAIL PROTECTED]> bubbled:
> Here is a simple program. > > #include <stdio.h> > #include <errno.h> > main(){ > int err; > err=read(0,NULL,6); > printf("%d %d\n",err,errno); > } Results: # ./a < /dev/zero read(0, 0, 6) = -1 EFAULT (Bad address) -1 14 Bad address So everything is fine... Regards, Martin -- MyExcuse: I'd love to help you -- it's just that the Boss won't let me near the computer. Martin Zwickel <[EMAIL PROTECTED]> Research & Development TechnoTrend AG <http://www.technotrend.de>
pgplZHvOVnbQ3.pgp
Description: PGP signature