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

123

/freebsd-10.0-release/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);
/freebsd-10.0-release/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-10.0-release/usr.bin/stdbuf/
H A Dstdbuf.c51 char *ibuf, *obuf, *ebuf; local
55 ibuf = obuf = ebuf = NULL;
65 obuf = optarg;
81 if (obuf != NULL && setenv("_STDBUF_O", obuf, 1) == -1)
83 "_STDBUF_O", obuf);
/freebsd-10.0-release/usr.bin/mail/
H A Dquit.c72 FILE *ibuf, *obuf, *fbuf, *rbuf, *readstat, *abuf; local
205 (obuf = Fdopen(fd, "w")) == NULL) {
213 (void)Fclose(obuf);
220 (void)putc(c, obuf);
223 if (ferror(obuf)) {
226 (void)Fclose(obuf);
230 (void)Fclose(obuf);
232 if ((obuf = Fopen(mbox, "r+")) == NULL) {
240 if ((obuf = Fopen(mbox, "a")) == NULL) {
245 (void)fchmod(fileno(obuf), 060
339 FILE *obuf; local
392 FILE *obuf, *ibuf, *readstat; local
[all...]
H A Dsend.c55 sendmessage(struct message *mp, FILE *obuf, struct ignoretab *doign, argument
102 statusput(mp, obuf, prefix);
131 statusput(mp, obuf, prefix);
136 (void)putc('\n', obuf);
154 statusput(mp, obuf, prefix);
172 fputs(prefix, obuf);
175 prefixlen, obuf);
177 (void)fwrite(line, sizeof(*line), length, obuf);
178 if (ferror(obuf))
199 fputs(prefix, obuf);
227 statusput(struct message *mp, FILE *obuf, char *prefix) argument
[all...]
H A Dcmd1.c291 FILE *obuf; local
293 obuf = stdout;
307 obuf = Popen(cp, "w");
308 if (obuf == NULL) {
310 obuf = stdout;
325 fprintf(obuf, "Message %d:\n", *ip);
326 (void)sendmessage(mp, obuf, doign ? ignore : 0, NULL);
330 if (obuf != stdout) {
335 (void)Pclose(obuf);
H A Dcmd2.c160 FILE *obuf; local
183 if ((obuf = Fopen(file, "a")) == NULL) {
190 if (sendmessage(mp, obuf, ignore, NULL) < 0) {
192 (void)Fclose(obuf);
198 (void)fflush(obuf);
199 if (ferror(obuf))
201 (void)Fclose(obuf);
/freebsd-10.0-release/lib/libc/gen/
H A Dsetproctitle.c66 static char *obuf = NULL; local
85 if (obuf == NULL ) {
86 obuf = malloc(SPT_BUFSIZE);
87 if (obuf == NULL)
89 *obuf = '\0';
113 } else if (*obuf != '\0') {
117 kbuf = obuf;
157 snprintf(obuf + len, SPT_BUFSIZE - len, "%s%s",
170 if (*obuf == '\0')
171 strncpy(obuf, OLD_PS_STRING
[all...]
/freebsd-10.0-release/usr.bin/ul/
H A Dul.c81 static struct CHAR obuf[MAXBUF]; variable in typeref:struct:CHAR
238 if (obuf[col].c_char || obuf[col].c_width < 0) {
239 while (col > 0 && obuf[col].c_width < 0)
241 w = obuf[col].c_width;
243 obuf[col++].c_mode |= UNDERL | mode;
248 obuf[col].c_char = '_';
249 obuf[col].c_width = 1;
269 if (obuf[col].c_char == '\0') {
270 obuf[co
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/rc4/
H A Drc4test.c121 unsigned char obuf[512]; local
132 memset(obuf,0x00,sizeof(obuf));
133 RC4(&key,data_len[i],&(data[i][0]),obuf);
134 if (memcmp(obuf,output[i],data_len[i]+1) != 0)
139 printf(" %02x",obuf[j]);
155 memset(obuf,0x00,sizeof(obuf));
156 RC4(&key,i,&(data[3][0]),obuf);
157 if ((memcmp(obuf,outpu
[all...]
/freebsd-10.0-release/lib/libipx/
H A Dipx_ntoa.c48 static char obuf[40]; local
57 sprintf(obuf, "%lx", (u_long)ntohl(net.long_e));
58 cp = spectHex(obuf);
78 return (obuf);
/freebsd-10.0-release/usr.bin/gzip/
H A Dunxz.c49 uint8_t obuf[BUFSIZ]; local
71 strm.next_out = obuf;
72 strm.avail_out = sizeof(obuf);
97 const size_t write_size = sizeof(obuf) - strm.avail_out;
99 if (write(o, obuf, write_size) != (ssize_t)write_size)
102 strm.next_out = obuf;
103 strm.avail_out = sizeof(obuf);
/freebsd-10.0-release/crypto/openssl/crypto/bio/
H A Dbf_lbuf.c100 char *obuf; /* the output char array */ member in struct:bio_linebuffer_ctx_struct
111 ctx->obuf=(char *)OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE);
112 if (ctx->obuf == NULL) { OPENSSL_free(ctx); return(0); }
128 if (b->obuf != NULL) OPENSSL_free(b->obuf);
185 memcpy(&(ctx->obuf[ctx->obuf_len]),
194 memcpy(&(ctx->obuf[ctx->obuf_len]),
207 ctx->obuf, ctx->obuf_len);
223 memmove(ctx->obuf, ctx->obuf
[all...]
H A Dbf_buff.c101 ctx->obuf=(char *)OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
102 if (ctx->obuf == NULL) { OPENSSL_free(ctx->ibuf); OPENSSL_free(ctx); return(0); }
123 if (b->obuf != NULL) OPENSSL_free(b->obuf);
212 memcpy(&(ctx->obuf[ctx->obuf_off+ctx->obuf_len]),in,inl);
222 memcpy(&(ctx->obuf[ctx->obuf_off+ctx->obuf_len]),in,i);
231 i=BIO_write(b->next_bio,&(ctx->obuf[ctx->obuf_off]),
352 p2=ctx->obuf;
375 if (ctx->obuf != p2)
377 OPENSSL_free(ctx->obuf);
[all...]
/freebsd-10.0-release/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-10.0-release/contrib/less/
H A Doutput.c76 static char obuf[OUTBUF_SIZE]; variable
77 static char *ob = obuf;
101 n = ob - obuf;
109 _outtext(obuf);
110 ob = obuf;
119 WIN32textout(obuf, ob - obuf);
150 for (anchor = p_next = obuf;
202 strcpy(obuf, anchor);
203 ob = &obuf[slo
[all...]
/freebsd-10.0-release/secure/usr.bin/bdes/
H A Dbdes.c355 cvtkey(DES_cblock obuf, char *ibuf) argument
365 (void)strncpy(obuf, ibuf, 8);
382 obuf[i] =
403 obuf[i] = (obuf[i]<<1)|nbuf[8*i+j];
411 (void)strncpy(obuf, ibuf, 8);
720 char obuf[8]; /* output buffer */ local
737 obuf[c] = ibuf[c] ^ msgbuf[c];
743 n = obuf[nbytes-1];
750 WRITE(obuf,
766 char obuf[8]; /* output buffer */ local
812 char obuf[8]; /* output buffer */ local
860 char obuf[8]; /* output buffer */ local
906 char obuf[8]; /* output buffer */ local
[all...]
/freebsd-10.0-release/lib/libc/net/
H A Dlinkaddr.c127 static char obuf[64]; local
128 char *out = obuf;
135 bcopy(sdl->sdl_data, obuf, sdl->sdl_nlen);
155 return (obuf);
/freebsd-10.0-release/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
71 fr->obuf = calloc(fr->olen, 1);
72 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-10.0-release/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-10.0-release/crypto/openssl/crypto/des/
H A Ddes.c375 static unsigned char buf[BUFSIZE+8],obuf[BUFSIZE+8]; local
377 static unsigned char *buf=NULL,*obuf=NULL; local
382 ((obuf=OPENSSL_malloc(BUFSIZE+8)) == NULL))
511 (DES_cblock *)&(obuf[i]),
517 (DES_cblock *)&(obuf[i]),
526 (DES_cblock *)buf,(DES_cblock *)obuf,
535 buf,obuf,
537 if (l >= 8) memcpy(iv,&(obuf[l-8]),8);
545 j=uufwrite(obuf,1,(unsigned int)l-i,
548 j=fwrite(obuf,
[all...]
/freebsd-10.0-release/crypto/openssl/crypto/comp/
H A Dc_zlib.c433 unsigned char *obuf; /* Output buffer */ member in struct:__anon5034
489 ctx->obuf = NULL;
523 if(ctx->obuf)
527 OPENSSL_free(ctx->obuf);
607 if(!ctx->obuf)
609 ctx->obuf = OPENSSL_malloc(ctx->obufsize);
611 if(!ctx->obuf)
616 ctx->optr = ctx->obuf;
619 zout->next_out = ctx->obuf;
649 ctx->optr = ctx->obuf;
[all...]
/freebsd-10.0-release/contrib/sendmail/src/
H A Dheaders.c1679 char obuf[MAXLINE]; local
1863 (void) sm_strlcpyn(obuf, sizeof(obuf), 2,
1865 if (!putline(obuf, mci))
1908 (void) sm_snprintf(obuf, sizeof(obuf),
1911 if (!putline(obuf, mci))
1946 char obuf[MAXLINE + 256]; /* additional length for h_field */ local
1951 (void) sm_snprintf(obuf, sizeof(obuf), "
2016 char obuf[MAXLINE + 3]; local
[all...]

Completed in 231 milliseconds

123