[#BloombergLP-bdls-FileDescriptorGuard-descriptor]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FileDescriptorGuard.adoc[FileDescriptorGuard]::descriptor
:relfileprefix: ../../../
:mrdocs:

If this guard is managing a file, return the file descriptor referring to that file, and return `FilesystemUtil&colon;&colon;k&lowbar;INVALID&lowbar;FD` otherwise&period;

== Synopsis

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

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

== Return Value

the managed file descriptor, or `k&lowbar;INVALID&lowbar;FD` if none


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