summaryrefslogtreecommitdiff
path: root/src/shared/fdset.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-03-28 11:17:23 +0200
committerLennart Poettering <lennart@poettering.net>2023-03-29 19:09:10 +0200
commitbdcad22e8e508308032cba5f8c2d5c093adb7d87 (patch)
tree7ec23bf6b1c13ac10e45190dde4fb42fe56190c5 /src/shared/fdset.h
parent08a0ebc6beef91c54931160b43c10cbc610f7533 (diff)
downloadsystemd-bdcad22e8e508308032cba5f8c2d5c093adb7d87.tar.gz
fdset: add new helper to convert an fdset to an array
Diffstat (limited to 'src/shared/fdset.h')
-rw-r--r--src/shared/fdset.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/fdset.h b/src/shared/fdset.h
index 39d15ee4aa..0e55db81b4 100644
--- a/src/shared/fdset.h
+++ b/src/shared/fdset.h
@@ -24,6 +24,8 @@ int fdset_new_listen_fds(FDSet **ret, bool unset);
int fdset_cloexec(FDSet *fds, bool b);
+int fdset_to_array(FDSet *fds, int **ret);
+
int fdset_close_others(FDSet *fds);
unsigned fdset_size(FDSet *fds);