[#BloombergLP-bdls-FdStreamBuf_FileHandler-fileDescriptor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf&lowbar;FileHandler]::fileDescriptor
:relfileprefix: ../../../
:mrdocs:

Return the file descriptor associated with this object, if `isOpened` is `true`, and &hyphen;1 otherwise&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FilesystemUtil::FileDescriptor]
fileDescriptor() const;
----

== Return Value

the associated file descriptor, or &hyphen;1 if not opened


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