Lines Matching defs:buf
41 static errno_t unpack_buffer(uint8_t *buf,
49 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
57 ibuf->seuser = talloc_strndup(ibuf, (char *)(buf + p), len);
64 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
73 ibuf->mls_range = talloc_strndup(ibuf, (char *)(buf + p), len);
80 SAFEALIGN_COPY_UINT32_CHECK(&len, buf + p, size, &p);
87 ibuf->username = talloc_strndup(ibuf, (char *)(buf + p), len);
105 r->buf = talloc_array(r, uint8_t, r->size);
106 if(r->buf == NULL) {
113 SAFEALIGN_SET_UINT32(&r->buf[p], result, &p);
130 r->buf = NULL;
198 uint8_t *buf = NULL;
290 buf = talloc_size(main_ctx, sizeof(uint8_t)*IN_BUF_SIZE);
291 if (buf == NULL) {
305 len = sss_atomic_read_s(STDIN_FILENO, buf, IN_BUF_SIZE);
314 ret = unpack_buffer(buf, len, ibuf);
340 written = sss_atomic_write_s(STDOUT_FILENO, resp->buf, resp->size);