[#ASYNC_WAIT_CTX_get_changed_fds]
= ASYNC&lowbar;WAIT&lowbar;CTX&lowbar;get&lowbar;changed&lowbar;fds
:mrdocs:

Retrieve file descriptors added to or removed from a wait context since the last poll&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;changed&lowbar;fds(
    xref:ASYNC_WAIT_CTX.adoc[ASYNC&lowbar;WAIT&lowbar;CTX]* ctx,
    int* addfd,
    size&lowbar;t* numaddfds,
    int* delfd,
    size&lowbar;t* numdelfds);
----

== Return Value

1 on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Wait context to query&period;
| *addfd*
| Array that receives fds to add to the poll set (may be NULL to skip copying)&period;
| *numaddfds*
| On entry, capacity of `addfd&semi;` on exit, number of fds to add&period;
| *delfd*
| Array that receives fds to remove from the poll set (may be NULL to skip copying)&period;
| *numdelfds*
| On entry, capacity of `delfd&semi;` on exit, number of fds to remove&period;
|===


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