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

1234

/freebsd-current/contrib/tcp_wrappers/
H A Dmyvsyslog.c24 char obuf[3 * STRING_LENGTH]; local
26 vsprintf(obuf, percent_m(fbuf, format), ap);
27 syslog(severity, "%s", obuf);
H A Dpercent_m.c22 char *percent_m(char *obuf, char *ibuf) argument
24 char *bp = obuf;
39 return (obuf);
H A Dmystdarg.h19 extern char *percent_m(char *obuf, char *ibuf);
/freebsd-current/sbin/dhclient/
H A Dconvert.c88 putULong(unsigned char *obuf, u_int32_t val) argument
92 memcpy(obuf, &tmp, sizeof(tmp));
96 putLong(unsigned char *obuf, int32_t val) argument
100 memcpy(obuf, &tmp, sizeof(tmp));
104 putUShort(unsigned char *obuf, unsigned int val) argument
108 memcpy(obuf, &tmp, sizeof(tmp));
112 putShort(unsigned char *obuf, int val) argument
116 memcpy(obuf, &tmp, sizeof(tmp));
/freebsd-current/usr.bin/ul/
H A Dul.c70 static struct CHAR *obuf = sobuf; variable in typeref:struct:CHAR
144 if (obuf != sobuf) {
145 free(obuf);
168 if (obuf == sobuf) {
169 obuf = NULL;
172 obuf = realloc(obuf, sizeof(*obuf) * 2 * buflen);
173 if (obuf == NULL) {
174 obuf
[all...]
/freebsd-current/usr.bin/gzip/
H A Dunzstd.c33 static char *ibuf, *obuf; local
44 if (obuf == NULL)
45 obuf = malloc(BUFLEN);
46 if (ibuf == NULL || obuf == NULL)
57 zob.dst = obuf;
80 res = write(out, obuf, zob.pos);
H A Dunxz.c49 uint8_t obuf[BUFSIZ]; local
72 strm.next_out = obuf;
73 strm.avail_out = sizeof(obuf);
100 const size_t write_size = sizeof(obuf) - strm.avail_out;
102 if (write(o, obuf, write_size) != (ssize_t)write_size)
105 strm.next_out = obuf;
106 strm.avail_out = sizeof(obuf);
/freebsd-current/usr.bin/stdbuf/
H A Dstdbuf.c68 char *ibuf, *obuf, *ebuf; local
71 ibuf = obuf = ebuf = NULL;
81 obuf = optarg;
96 if (obuf != NULL && setenv("_STDBUF_O", obuf, 1) == -1)
98 "_STDBUF_O", obuf);
/freebsd-current/usr.bin/mail/
H A Dquit.c66 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
199 (obuf = Fdopen(fd, "w")) == NULL) {
207 (void)Fclose(obuf);
214 (void)putc(c, obuf);
217 if (ferror(obuf)) {
220 (void)Fclose(obuf);
224 (void)Fclose(obuf);
227 if ((obuf = Fopen(mbox, "r+")) == NULL) {
235 if ((obuf = Fopen(mbox, "a")) == NULL) {
240 (void)fchmod(fileno(obuf), 060
334 FILE *obuf; local
387 FILE *obuf, *ibuf, *readstat; local
[all...]
H A Dsend.c49 sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, argument
96 statusput(mp, obuf, prefix);
125 statusput(mp, obuf, prefix);
130 (void)putc('\n', obuf);
148 statusput(mp, obuf, prefix);
166 fputs(prefix, obuf);
169 prefixlen, obuf);
171 (void)fwrite(line, sizeof(*line), length, obuf);
172 if (ferror(obuf))
193 fputs(prefix, obuf);
221 statusput(struct message *mp, FILE *obuf, char *prefix) argument
[all...]
H A Dcmd2.c157 FILE *obuf; local
180 if ((obuf = Fopen(file, "a")) == NULL) {
187 if (sendmessage(mp, obuf, ignore, NULL) < 0) {
189 (void)Fclose(obuf);
195 (void)fflush(obuf);
196 if (ferror(obuf))
198 (void)Fclose(obuf);
/freebsd-current/crypto/openssl/test/
H A Drc4test.c66 unsigned char obuf[512]; local
70 memset(obuf, 0, sizeof(obuf));
71 RC4(&key, data_len[i], &(data[i][0]), obuf);
72 return TEST_mem_eq(obuf, data_len[i] + 1, output[i], data_len[i] + 1);
77 unsigned char obuf[512]; local
81 memset(obuf, 0, sizeof(obuf));
82 RC4(&key, i, &(data[3][0]), obuf);
83 if (!TEST_mem_eq(obuf,
90 unsigned char obuf[512]; local
[all...]
/freebsd-current/share/examples/sound/
H A Dbasic.c54 int8_t *obuf = malloc(bytes); local
80 oss_merge(&config, channels, (sample_t *)obuf);
81 ret = write(config.fd, obuf, bytes);
95 free(obuf);
/freebsd-current/lib/libc/gen/
H A Dsetproctitle.c71 static char *obuf = NULL; local
88 if (obuf == NULL ) {
89 obuf = malloc(SPT_BUFSIZE);
90 if (obuf == NULL)
92 *obuf = '\0';
113 } else if (*obuf != '\0') {
159 snprintf(obuf + len, SPT_BUFSIZE - len, "%s%s",
/freebsd-current/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-current/crypto/openssl/crypto/bio/
H A Dbf_lbuf.c51 char *obuf; /* the output char array */ member in struct:bio_linebuffer_ctx_struct
64 ctx->obuf = OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE);
65 if (ctx->obuf == NULL) {
86 OPENSSL_free(b->obuf);
143 memcpy(&(ctx->obuf[ctx->obuf_len]), in, p - in);
149 memcpy(&(ctx->obuf[ctx->obuf_len]), in, i);
156 i = BIO_write(b->next_bio, ctx->obuf, ctx->obuf_len);
167 memmove(ctx->obuf, ctx->obuf + i, ctx->obuf_len - i);
196 memcpy(&(ctx->obuf[ct
[all...]
/freebsd-current/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-current/lib/libc/net/
H A Dlinkaddr.c121 static char obuf[64]; local
122 _Static_assert(sizeof(obuf) >= IFNAMSIZ + 20, "obuf is too small");
129 out = obuf;
130 rem = sizeof(obuf);
164 return (obuf);
/freebsd-current/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-current/contrib/less/
H A Doutput.c82 static char obuf[OUTBUF_SIZE]; variable
83 static char *ob = obuf;
90 WIN32textout(obuf, ob - obuf);
129 for (anchor = p_next = obuf;
184 strcpy(obuf, anchor);
185 ob = &obuf[slop];
343 ob = obuf;
367 n = (int) (ob - obuf);
370 ob = obuf;
[all...]
/freebsd-current/usr.sbin/fifolog/lib/
H A Dfifolog_write_poll.c71 f->obuf + f->obufsize);
92 free(f->obuf);
158 ALLOC(&f->obuf, f->obufsize);
169 f->ff->zs->next_out = f->obuf + 9;
189 long h, l = f->ff->zs->next_out - f->obuf;
194 be32enc(f->obuf, f->seq);
195 f->obuf[h] = f->flag;
198 be32enc(f->obuf + h, now);
214 be32enc(f->obuf + f->ff->recsize - 4, w);
215 f->obuf[
[all...]
H A Dfifolog_reader.c51 unsigned char *obuf; member in struct:fifolog_reader
70 fr->obuf = calloc(16, fr->ff->recsize);
71 if (fr->obuf == NULL)
212 p = fr->obuf;
213 q = fr->obuf + (fr->olen - fr->ff->zs->avail_out);
279 zs->next_out = fr->obuf;
296 (int)(zs->next_out - fr->obuf),
313 q = fr->obuf + (fr->olen - zs->avail_out);
316 (void)memmove(fr->obuf, p, q - p);
318 zs->next_out = fr->obuf
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dmmap42.sh34 void *buf, *obuf;
43 buf = obuf = mmap(NULL, bufsz, PROT_READ, MAP_SHARED, mfd, 0);
64 buf = obuf;
70 munmap(obuf, sb.st_size);
/freebsd-current/contrib/wpa/src/tls/
H A Dpkcs8.c25 char obuf[80]; local
78 asn1_oid_to_str(&oid, obuf, sizeof(obuf));
79 wpa_printf(MSG_DEBUG, "PKCS #8: algorithm=%s", obuf);
90 "algorithm %s", obuf);
/freebsd-current/crypto/openssh/
H A Dprogressmeter.c127 char *buf = NULL, *obuf = NULL; local
231 asmprintf(&obuf, INT_MAX, &cols, " %s", buf);
232 if (obuf != NULL) {
233 *obuf = '\r'; /* must insert as asmprintf() would escape it */
234 atomicio(vwrite, STDOUT_FILENO, obuf, strlen(obuf));
237 free(obuf);

Completed in 158 milliseconds

1234