[#BloombergLP-bdls-FdStreamBuf-sync]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf.adoc[FdStreamBuf]::sync
:relfileprefix: ../../../
:mrdocs:

If in output mode, flush the buffer to the associated file descriptor&semi; otherwise do nothing&period; Return 0 on success, &hyphen;1 otherwise&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
int
sync() override;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
