xref: /aosp_15_r20/external/libcap/contrib/capso/capso.h (revision 2810ac1b38eead2603277920c78344c84ddf3aff)
1*2810ac1bSKiyoung Kim #ifndef CAPSO_H
2*2810ac1bSKiyoung Kim #define CAPSO_H
3*2810ac1bSKiyoung Kim 
4*2810ac1bSKiyoung Kim /*
5*2810ac1bSKiyoung Kim  * bind80 returns a socket filedescriptor that is bound to port 80 of
6*2810ac1bSKiyoung Kim  * the provided service address.
7*2810ac1bSKiyoung Kim  *
8*2810ac1bSKiyoung Kim  * Example:
9*2810ac1bSKiyoung Kim  *
10*2810ac1bSKiyoung Kim  *   int fd = bind80("localhost");
11*2810ac1bSKiyoung Kim  *
12*2810ac1bSKiyoung Kim  * fd < 0 in the case of error.
13*2810ac1bSKiyoung Kim  */
14*2810ac1bSKiyoung Kim extern int bind80(const char *hostname);
15*2810ac1bSKiyoung Kim 
16*2810ac1bSKiyoung Kim #endif /* ndef CAPSO_H */
17