> > what are you using for a buffer here? IE how are you going to read > passing read() a null pointer to a buffer??? I use read from descriptor > 0 all the time in several programs, but I always use a valid buffer > address. Note that "rc" does *not* get the character read. It returns > the number of characters read (in your case 1)... > Yeap 0 us passed as buffer. I just wanted to check read's behaviour in this case. cheers.
- bug in read(2) system call. Jean-Marie Sulmont
- Re: bug in read(2) system call. Robert M. Hyatt
- Re: bug in read(2) system call. Jean-Marie Sulmont
- Re: bug in read(2) system call. Tim Wright
- Re: bug in read(2) system call. Jean-Marie Sulmont
