Lines Matching refs:buf
78 ctl_bufget(struct ctl_buf *buf, ctl_logfunc logger) {
81 REQUIRE(!allocated_p(*buf) && buf->used == 0U);
82 buf->text = memget(MAX_LINELEN);
83 if (!allocated_p(*buf)) {
87 buf->used = 0;
92 ctl_bufput(struct ctl_buf *buf) {
94 REQUIRE(allocated_p(*buf));
95 memput(buf->text, MAX_LINELEN);
96 buf->text = NULL;
97 buf->used = 0;
102 char *buf, size_t size,
125 (void) sprintf(buf, "[%s].%u", tmp, ntohs(in6->sin6_port));
126 return (buf);
144 (void) sprintf(buf, "[%s].%u", tmp, ntohs(in->sin_port));
145 return (buf);
155 strncpy(buf, un->sun_path, x - 1);
156 buf[x - 1] = '\0';
157 return (buf);