Jonathan Gordon wrote:
   // move the fd back to AFTER the \n if needed
   if (!errno)
       lseek(fd,num_read-count+1,SEEK_CUR);

That could be a really lengthy operation if it crosses a sector boundary.

Linus

Reply via email to