[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: read system call.



Hi,

Rewrite :

>    if (fd = (open("/root/data",O_RDONLY,0) < 0))

as
      if((fd = open("/root/data",O_RDONLY,0)) < 0)


By  now i think you should have figured out what was the problem with your
code.

Regards
Sumit