GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
buffer_flush(3) FreeBSD Library Functions Manual buffer_flush(3)

buffer_flush - feed buffer to write function

#include <libowfat/buffer.h>

int buffer_flush(buffer* b);

buffer_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 encounters 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.

buffer_init(3)

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.