aboutsummaryrefslogtreecommitdiff
path: root/contrib/capso/capso.h
diff options
context:
space:
mode:
authorSadaf Ebrahimi <sadafebrahimi@google.com>2023-08-23 21:50:42 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-08-23 21:50:42 +0000
commit73ad2275962bf360099d57d0d72d129e5a9c1c90 (patch)
tree14cfbb9d58780e8b97fa7ed642ea8b7dc1233c6c /contrib/capso/capso.h
parent5cc704d676ea8bc20ef9df2e244789f8b543e1b7 (diff)
parent3620cbbd3aa532ddebfe669eeb9e16dda2baf2c7 (diff)
downloadlibcap-73ad2275962bf360099d57d0d72d129e5a9c1c90.tar.gz
Upgrade libcap to libcap-2.69 am: 3620cbbd3a
Original change: https://android-review.googlesource.com/c/platform/external/libcap/+/2724494 Change-Id: Ie6bb51b101cafeb679295262cf6f67cfd5bc9ba0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'contrib/capso/capso.h')
-rw-r--r--contrib/capso/capso.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/capso/capso.h b/contrib/capso/capso.h
new file mode 100644
index 0000000..ae18f3a
--- /dev/null
+++ b/contrib/capso/capso.h
@@ -0,0 +1,16 @@
+#ifndef CAPSO_H
+#define CAPSO_H
+
+/*
+ * bind80 returns a socket filedescriptor that is bound to port 80 of
+ * the provided service address.
+ *
+ * Example:
+ *
+ * int fd = bind80("localhost");
+ *
+ * fd < 0 in the case of error.
+ */
+extern int bind80(const char *hostname);
+
+#endif /* ndef CAPSO_H */