• Home
  • Raw
  • Download

Lines Matching +full:unused +full:- +full:function

21 #ifdef UNUSED
23 # define UNUSED(x) UNUSED_ ## x __attribute__((unused)) macro
25 # define UNUSED(x) /*@unused@*/ x macro
27 # define UNUSED(x) x macro
30 #define SETRANS_UNIX_SOCKET "/var/run/setrans/.setrans-unix"
60 static int sockfd = -1; /* socket we are listening on */
85 send_response(int fd, uint32_t function, char *data, int32_t ret_val) in send_response() argument
97 resp_hdr[0].iov_base = &function; in send_response()
98 resp_hdr[0].iov_len = sizeof(function); in send_response()
105 if (count != (sizeof(function) + sizeof(data_size) + sizeof(ret_val))) { in send_response()
107 return -1; in send_response()
116 return -1; in send_response()
133 return -1; in get_peer_pid()
141 process_request(int fd, uint32_t function, char *data1, char *UNUSED(data2)) in process_request() argument
147 switch (function) { in process_request()
150 ret = send_response(fd, function, NULL, result); in process_request()
154 ret = send_response(fd, function, out, result); in process_request()
158 ret = send_response(fd, function, out, result); in process_request()
162 ret = send_response(fd, function, out, result); in process_request()
165 result = -1; in process_request()
166 ret = -1; in process_request()
174 function, pid); in process_request()
186 uint32_t function; in service_request() local
195 req_hdr[0].iov_base = &function; in service_request()
196 req_hdr[0].iov_len = sizeof(function); in service_request()
206 if (count != (sizeof(function) + sizeof(data1_size) + in service_request()
209 (unsigned)(sizeof(function) + sizeof(data1_size) + in service_request()
211 return -1; in service_request()
218 return -1; in service_request()
224 return -1; in service_request()
230 return -1; in service_request()
240 data1[data1_size - 1] != '\0' || data2[data2_size - 1] != '\0') { in service_request()
244 return -1; in service_request()
247 ret = process_request(fd, function, data1, data2); in service_request()
262 if ((*ufds)[ii].fd == -1) in add_pollfd()
271 return -1; in add_pollfd()
292 if ((*ufds)[ii].fd != -1) { in adj_pollfds()
317 return -1; in process_events()
324 return -1; in process_events()
336 (*ufds)[ii].fd = -1; in process_events()
349 (*ufds)[ii].fd = -1; in process_events()
359 (*ufds)[ii].fd = -1; in process_events()
406 ret = poll(ufds, nfds, -1); in process_connections()
427 sigterm_handler(int UNUSED(sig)) in sigterm_handler()
433 sighup_handler(int UNUSED(sig)) in sighup_handler()
491 strncpy(addr.sun_path, SETRANS_UNIX_SOCKET, sizeof(addr.sun_path) - 1); in initialize()
525 cleanup_exit(-1); in dropprivs()
532 printf("%s [-f] [-h] \n", program); in usage()
551 exit(-1); in main()