[#ASYNC_WAIT_CTX_get_all_fds]
= ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;all&lowbar;fds
:mrdocs:

Collect every wait file descriptor currently registered on `ctx&period;`

== Synopsis

Declared in `&lt;openssl&sol;async&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;all&lowbar;fds(
    xref:ASYNC_WAIT_CTX.adoc[ASYNC&lowbar;WAIT&lowbar;CTX]* ctx,
    int* fd,
    size&lowbar;t* numfds);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Wait context to query&period;
| *fd*
| Optional array that receives up to &ast;`numfds` descriptors&semi; may be NULL to query the count only&period;
| *numfds*
| On input, capacity of `fd` when non&hyphen;NULL&semi; on output, the number of registered fds&period;
|===


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