Lines Matching full:connection

53 safe_write(struct nscd_connection_ *connection, const void *data,  in safe_write()  argument
69 nevents = kevent(connection->write_queue, NULL, 0, &eventlist, in safe_write()
72 s_result = write(connection->sockfd, in safe_write()
91 safe_read(struct nscd_connection_ *connection, void *data, size_t data_size) in safe_read() argument
106 nevents = kevent(connection->read_queue, NULL, 0, &eventlist, 1, in safe_read()
109 s_result = read(connection->sockfd, in safe_read()
128 send_credentials(struct nscd_connection_ *connection, int type) in send_credentials() argument
155 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, in send_credentials()
157 kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL); in send_credentials()
159 nevents = kevent(connection->write_queue, NULL, 0, &eventlist, 1, NULL); in send_credentials()
161 result = sendmsg(connection->sockfd, &mhdr, 0) == -1 ? -1 : 0; in send_credentials()
162 EV_SET(&eventlist, connection->sockfd, EVFILT_WRITE, EV_ADD, in send_credentials()
164 kevent(connection->write_queue, &eventlist, 1, NULL, 0, NULL); in send_credentials()
225 close_nscd_connection__(struct nscd_connection_ *connection) in close_nscd_connection__() argument
229 assert(connection != NULL); in close_nscd_connection__()
231 close(connection->sockfd); in close_nscd_connection__()
232 close(connection->read_queue); in close_nscd_connection__()
233 close(connection->write_queue); in close_nscd_connection__()
234 free(connection); in close_nscd_connection__()
239 nscd_transform__(struct nscd_connection_ *connection, in nscd_transform__() argument
250 result = send_credentials(connection, CET_TRANSFORM_REQUEST); in nscd_transform__()
259 result = safe_write(connection, &name_size, sizeof(size_t)); in nscd_transform__()
263 result = safe_write(connection, &transformation_type, sizeof(int)); in nscd_transform__()
268 result = safe_write(connection, entry_name, name_size); in nscd_transform__()
273 result = safe_read(connection, &error_code, sizeof(int)); in nscd_transform__()