Searched refs:obuf (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-13-stable/contrib/tcp_wrappers/
H A Dmyvsyslog.c27 char obuf[3 * STRING_LENGTH]; local
29 vsprintf(obuf, percent_m(fbuf, format), ap);
30 syslog(severity, "%s", obuf);
H A Dpercent_m.c23 char *percent_m(obuf, ibuf)
24 char *obuf;
27 char *bp = obuf;
42 return (obuf);
H A Dmystdarg.h19 extern char *percent_m(char *obuf, char *ibuf);
/freebsd-13-stable/sbin/dhclient/
H A Dconvert.c90 putULong(unsigned char *obuf, u_int32_t val) argument
94 memcpy(obuf, &tmp, sizeof(tmp));
98 putLong(unsigned char *obuf, int32_t val) argument
102 memcpy(obuf, &tmp, sizeof(tmp));
106 putUShort(unsigned char *obuf, unsigned int val) argument
110 memcpy(obuf, &tmp, sizeof(tmp));
114 putShort(unsigned char *obuf, int val) argument
118 memcpy(obuf, &tmp, sizeof(tmp));
/freebsd-13-stable/usr.bin/ul/
H A Dul.c84 static struct CHAR *obuf = sobuf; variable in typeref:struct:CHAR
158 if (obuf != sobuf) {
159 free(obuf);
182 if (obuf == sobuf) {
183 obuf = NULL;
186 obuf = realloc(obuf, sizeof(*obuf) * 2 * buflen);
187 if (obuf == NULL) {
188 obuf
[all...]
/freebsd-13-stable/usr.bin/stdbuf/
H A Dstdbuf.c53 char *ibuf, *obuf, *ebuf; local
57 ibuf = obuf = ebuf = NULL;
67 obuf = optarg;
83 if (obuf != NULL && setenv("_STDBUF_O", obuf, 1) == -1)
85 "_STDBUF_O", obuf);
/freebsd-13-stable/usr.bin/mail/
H A Dquit.c74 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
207 (obuf = Fdopen(fd, "w")) == NULL) {
215 (void)Fclose(obuf);
222 (void)putc(c, obuf);
225 if (ferror(obuf)) {
228 (void)Fclose(obuf);
232 (void)Fclose(obuf);
235 if ((obuf = Fopen(mbox, "r+")) == NULL) {
243 if ((obuf = Fopen(mbox, "a")) == NULL) {
248 (void)fchmod(fileno(obuf), 060
342 FILE *obuf; local
395 FILE *obuf, *ibuf, *readstat; local
[all...]
H A Dsend.c57 sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, argument
104 statusput(mp, obuf, prefix);
133 statusput(mp, obuf, prefix);
138 (void)putc('\n', obuf);
156 statusput(mp, obuf, prefix);
174 fputs(prefix, obuf);
177 prefixlen, obuf);
179 (void)fwrite(line, sizeof(*line), length, obuf);
180 if (ferror(obuf))
201 fputs(prefix, obuf);
229 statusput(struct message *mp, FILE *obuf, char *prefix) argument
[all...]
H A Dcmd2.c165 FILE *obuf; local
188 if ((obuf = Fopen(file, "a")) == NULL) {
195 if (sendmessage(mp, obuf, ignore, NULL) < 0) {
197 (void)Fclose(obuf);
203 (void)fflush(obuf);
204 if (ferror(obuf))
206 (void)Fclose(obuf);
H A Dcmd1.c299 FILE *obuf; local
301 obuf = stdout;
315 obuf = Popen(cp, "w");
316 if (obuf == NULL) {
318 obuf = stdout;
333 fprintf(obuf, "Message %d:\n", *ip);
334 (void)sendmessage(mp, obuf, doign ? ignore : 0, NULL);
338 if (obuf != stdout) {
343 (void)Pclose(obuf);
/freebsd-13-stable/lib/libc/gen/
H A Dsetproctitle.c64 static char *obuf = NULL; local
81 if (obuf == NULL ) {
82 obuf = malloc(SPT_BUFSIZE);
83 if (obuf == NULL)
85 *obuf = '\0';
107 } else if (*obuf != '\0') {
111 kbuf = obuf;
154 snprintf(obuf + len, SPT_BUFSIZE - len, "%s%s",
/freebsd-13-stable/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_aesctr2.c56 unsigned char obuf[24]; local
76 co.dst = obuf;
77 co.dst_len = sizeof(obuf);
85 co.len = sizeof(obuf);
86 co.src = obuf;
/freebsd-13-stable/crypto/openssl/crypto/bio/
H A Dbf_lbuf.c53 char *obuf; /* the output char array */ member in struct:bio_linebuffer_ctx_struct
66 ctx->obuf = OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE);
67 if (ctx->obuf == NULL) {
88 OPENSSL_free(b->obuf);
145 memcpy(&(ctx->obuf[ctx->obuf_len]), in, p - in);
151 memcpy(&(ctx->obuf[ctx->obuf_len]), in, i);
158 i = BIO_write(b->next_bio, ctx->obuf, ctx->obuf_len);
169 memmove(ctx->obuf, ctx->obuf + i, ctx->obuf_len - i);
198 memcpy(&(ctx->obuf[ct
[all...]
H A Dbf_buff.c60 ctx->obuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
61 if (ctx->obuf == NULL) {
81 OPENSSL_free(b->obuf);
176 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, inl);
184 memcpy(&(ctx->obuf[ctx->obuf_off + ctx->obuf_len]), in, i);
192 i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]),
319 p2 = ctx->obuf;
340 if (ctx->obuf != p2) {
341 OPENSSL_free(ctx->obuf);
342 ctx->obuf
[all...]
/freebsd-13-stable/contrib/less/
H A Doutput.c82 static char obuf[OUTBUF_SIZE]; variable
83 static char *ob = obuf;
91 WIN32textout(obuf, ob - obuf);
130 for (anchor = p_next = obuf;
185 strcpy(obuf, anchor);
186 ob = &obuf[slop];
344 ob = obuf;
369 n = (int) (ob - obuf);
372 ob = obuf;
[all...]
/freebsd-13-stable/crypto/heimdal/appl/telnet/telnet/
H A Dnetwork.c49 void *obuf, *ibuf; local
51 if ((obuf = malloc(netobufsize)) == NULL)
56 if (ring_init(&netoring, obuf, netobufsize) != 1) {
/freebsd-13-stable/lib/libc/net/
H A Dlinkaddr.c127 static char obuf[64]; local
128 _Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small");
135 out = obuf;
136 rem = sizeof(obuf);
170 return (obuf);
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/locale/
H A Dt_io.c73 wchar_t obuf[20]; local
76 swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf) < 0);
103 wchar_t obuf[20]; local
105 ATF_REQUIRE_EQ(swprintf(obuf, sizeof(obuf), L"%ls\n", ibuf), 2);
/freebsd-13-stable/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c73 f->obuf + f->obufsize);
94 free(f->obuf);
160 ALLOC(&f->obuf, f->obufsize);
171 f->ff->zs->next_out = f->obuf + 9;
191 long h, l = f->ff->zs->next_out - f->obuf;
196 be32enc(f->obuf, f->seq);
197 f->obuf[h] = f->flag;
200 be32enc(f->obuf + h, now);
216 be32enc(f->obuf + f->ff->recsize - 4, w);
217 f->obuf[
[all...]
H A Dfifolog_reader.c53 unsigned char *obuf; member in struct:fifolog_reader
72 fr->obuf = calloc(16, fr->ff->recsize);
73 if (fr->obuf == NULL)
214 p = fr->obuf;
215 q = fr->obuf + (fr->olen - fr->ff->zs->avail_out);
281 zs->next_out = fr->obuf;
298 (int)(zs->next_out - fr->obuf),
315 q = fr->obuf + (fr->olen - zs->avail_out);
318 (void)memmove(fr->obuf, p, q - p);
320 zs->next_out = fr->obuf
[all...]
/freebsd-13-stable/contrib/wpa/src/tls/
H A Dpkcs8.c25 char obuf[80]; local
87 asn1_oid_to_str(&oid, obuf, sizeof(obuf));
88 wpa_printf(MSG_DEBUG, "PKCS #8: algorithm=%s", obuf);
99 "algorithm %s", obuf);
/freebsd-13-stable/usr.bin/gzip/
H A Dunxz.c51 uint8_t obuf[BUFSIZ]; local
74 strm.next_out = obuf;
75 strm.avail_out = sizeof(obuf);
102 const size_t write_size = sizeof(obuf) - strm.avail_out;
104 if (write(o, obuf, write_size) != (ssize_t)write_size)
107 strm.next_out = obuf;
108 strm.avail_out = sizeof(obuf);
/freebsd-13-stable/contrib/elftoolchain/strings/
H A Dstrings.c363 char *obuf; local
367 if ((obuf = (char*)calloc(1, min_len + 1)) == NULL) {
380 memset(obuf, 0, min_len + 1);
385 obuf[i] = c;
386 obuf[i + 1] = 0;
391 obuf[i] = c;
392 obuf[i + 1] = 0;
418 printf("%s", obuf);
440 free(obuf);
/freebsd-13-stable/contrib/wpa/src/common/
H A Dwpa_helpers.h16 int get_wpa_status(const char *ifname, const char *field, char *obuf,
/freebsd-13-stable/crypto/openssl/crypto/comp/
H A Dc_zlib.c278 unsigned char *obuf; /* Output buffer */ member in struct:__anon6963
357 if (ctx->obuf) {
360 OPENSSL_free(ctx->obuf);
441 if (!ctx->obuf) {
442 ctx->obuf = OPENSSL_malloc(ctx->obufsize);
444 if (ctx->obuf == NULL) {
448 ctx->optr = ctx->obuf;
451 zout->next_out = ctx->obuf;
480 ctx->optr = ctx->obuf;
481 zout->next_out = ctx->obuf;
[all...]

Completed in 379 milliseconds

123