It should be NULL pointer assignment, but it is not so. Kernel version 2.4.10 RedHat Linux.
#include <stdio.h> #include <errno.h> main(){ int err; err=read(0,NULL,6); printf("%d %dn",err,errno); } Please, reply part of source code with explaination of bug. Thanks!