Lines Matching defs:pos
35 size_t pos = 0;
49 r = snprintf(buf + pos, size - pos,
51 if (pos + r > size)
53 return pos;
57 if (pos + r == size) {
63 pos += r;
73 r = snprintf(buf + pos, size - pos,
75 if (r + pos > size)
77 return pos;
81 if (r + pos == size) {
87 pos += r;
98 r = snprintf(buf + pos, size - pos,
100 if (r + pos > size)
102 return pos;
106 if (r + pos == size) {
112 pos += r;
123 r = snprintf(buf + pos, size - pos,
125 if (r + pos > size)
127 return pos;
131 if (r + pos == size) {
137 pos += r;
167 done = size - pos > u->field_length - u->field_pos;
171 tocopy = size - pos;
173 memcpy(buf + pos,
178 buf[pos + tocopy] = '\n';
179 pos += tocopy + 1;
201 if (size - pos < len + 1)
202 return pos;
204 memcpy(buf + pos, u->field_data, len);
205 buf[pos + len] = '\n';
206 pos += len + 1;
216 if (size - pos < 8)
217 return pos;
220 memcpy(buf + pos, &le64, 8);
221 pos += 8;
229 if (size - pos < 1)
230 return pos;
232 buf[pos++] = '\n';
236 return pos;