consume fread() input buffer without syscall to read()

View: New views
1 Messages — Rating Filter:   Alert me  

consume fread() input buffer without syscall to read()

by Bugzilla from karl@hiramoto.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

Is there any way to consume what is in the stdio input buffer, without
calling read()?

One option i have is modify   see libc/stdio/fread.c and create a new
function that does not call __stdio_READ()


What I eventually want to do in my program, is call pipe() and splice()
on the underlying file descriptors.   I can fflush() the ouput buffers  
but as far as I know there is not a way to clean out the input buffers
without possibly calling a  new syscall to read()


Thanks.
--
Karl

_______________________________________________
uClibc mailing list
uClibc@...
http://lists.busybox.net/mailman/listinfo/uclibc