Lines Matching refs:ret
66 ssize_t ret; in send_receive_packet() local
68 ret = send(s[1], pkt, len, 0); in send_receive_packet()
69 if (ret != len) { in send_receive_packet()
73 ret = recv(s[0], tmp, len, MSG_DONTWAIT); in send_receive_packet()
74 if (ret < 0 && errno == EAGAIN) in send_receive_packet()
93 int s[2], ret; in main() local
95 ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, s); in main()
96 if (ret) { in main()
100 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
102 if (ret < 0) { in main()
106 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main()
107 if (ret) { in main()
108 ret = 113; in main()
112 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
114 if (ret < 0) { in main()
118 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main()
119 if (ret) { in main()
120 ret = 113; in main()
124 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main()
126 if (ret < 0) { in main()
130 ret = send_receive_packet(s, chkrem, sizeof(chkrem)); in main()
131 if(ret){ in main()
132 ret = 113; in main()
136 return ret; in main()