Lines Matching refs:buf
77 unsigned char buf[512]; in wrap_res_send() local
80 buf, sizeof (buf)); in wrap_res_send()
88 return res_send (buf, ret, answer, answer_length); in wrap_res_send()
113 unsigned char buf[512]; in wrap_res_nsend() local
116 buf, sizeof (buf)); in wrap_res_nsend()
124 return res_nsend (&_res, buf, ret, answer, answer_length); in wrap_res_nsend()
132 unsigned char buf[512]; in test_function() local
141 int ret = func (type, buf, sizeof (buf)); in test_function()
146 TEST_VERIFY (memcmp (buf + 4, "\0\1\0\1\0\0\0\0", 8) == 0); in test_function()
150 TEST_VERIFY (memcmp (buf + 12, qname, qname_length) == 0); in test_function()
153 TEST_VERIFY (memcmp (buf + ret - 2, &type16, sizeof (type16)) == 0); in test_function()
157 TEST_VERIFY (func (-1, buf, sizeof (buf) == -1)); in test_function()
158 TEST_VERIFY (func (65536, buf, sizeof (buf) == -1)); in test_function()