1 /* usio.h */ 2 3 #define kUNewFailed (-9) 4 #define kUBindFailed (-10) 5 #define kUListenFailed (-11) 6 7 /* Don't change the following line -- it is modified by the Configure script. */ 8 #define UAccept UAcceptS 9 10 #ifndef UAccept 11 # if defined(NO_SIGNALS) || defined(WIN32) || defined(_WINDOWS) 12 # define UAccept UAcceptS 13 # else 14 # define UAccept UAcceptA 15 # endif 16 #endif 17 18 /* UAcceptA.c */ 19 int UAcceptA(int, struct sockaddr_un *const, int *, int); 20 21 /* UAcceptS.c */ 22 int UAcceptS(int, struct sockaddr_un *const, int *, int); 23 24 /* UBind.c */ 25 int UBind(int, const char *const, const int, const int); 26 int UListen(int, int); 27 28 /* UConnect.c */ 29 int UConnect(int, const struct sockaddr_un *const, int, int); 30 31 /* UConnectByName.c */ 32 int UConnectByName(int, const char *const, const int); 33 34 /* UNew.c */ 35 int MakeSockAddrUn(struct sockaddr_un *, const char *const); 36 int UNewStreamClient(void); 37 int UNewDatagramClient(void); 38 int UNewStreamServer(const char *const, const int, const int, int); 39 int UNewDatagramServer(const char *const, const int, const int); 40 41 /* URecvfrom.c */ 42 int URecvfrom(int, char *const, size_t, int, struct sockaddr_un *const, int *, int); 43 44 /* USendto.c */ 45 int USendto(int, const char *const, size_t, int, const struct sockaddr_un *const, int, int); 46 47 /* USendtoByName.c */ 48 int USendtoByName(int, const char *const, size_t, int, const char *const, int); 49