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
std::basic_filebuf::sync(3) C++ Standard Libary std::basic_filebuf::sync(3)

std::basic_filebuf::sync - std::basic_filebuf::sync


protected:
virtual int sync()


If a put area exists (e.g. the file was opened for writing), calls overflow() to
write all pending output to the file, then flushes the file as if by calling
std::fflush.


If a get area exists (e.g. the file was opened for reading), the effect is
implementation-defined. Typical implementation may empty out the get area and move
the current file position back by the corresponding number of bytes.


(none)


0 in case of success, -1 in case of failure.


sync() or its equivalent is implicitly called for output streams by close(),
seekoff(), and seekpos() and explicitly called by std::basic_streambuf::pubsync()


This section is incomplete
Reason: no example


pubsync invokes sync()
(public member function of std::basic_streambuf<CharT,Traits>)
fflush synchronizes an output stream with the actual file
(function)

2022.07.31 http://cppreference.com

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.