Query: buffer_flush
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
buffer_flush(3) Library Functions Manual buffer_flush(3)NAMEbuffer_flush - feed buffer to write functionSYNTAX#include <buffer.h> int buffer_flush(buffer* b);DESCRIPTIONbuffer_flush feeds a string d[0], d[1], ..., d[dlen-1] to the write operation by calling op(fd,d,dlen) If op successfully handles one or more bytes at the beginning of the string, it must return the number of bytes handled; if this number is smaller than dlen, buffer_flush will call op again with the rest of the string. If op does not handle any bytes, and does not encounter an error, it must return 0, or return -1 with errno set to EINTR; in either case, buffer_flush will immediately call op again. If op encoun- ters an error, it must return -1 with errno set to something other than EINTR; buffer_flush will pass the error to the caller. On success, buffer_flush returns 0. On error, buffer_flush returns -1, setting errno appropriately.SEE ALSObuffer_init(3) buffer_flush(3)
Related Man Pages |
---|
vis(3) - mojave |
strenvisx(3) - mojave |
buffer_get_token_sa(3) - debian |
buffer_get_token_sa_pred(3) - debian |
io_trywrite(3) - debian |
Similar Topics in the Unix Linux Community |
---|
What's your most useful shell? |
multiple forks and printf question |
Problem with execution of fork system call if i use \n |
$| example in perl |
Lengthy string comparison |