Searched refs:inbuf (Results 1 - 25 of 80) sorted by relevance

1234

/freebsd-10.1-release/crypto/openssh/
H A Drsa.c77 u_char *inbuf, *outbuf; local
87 inbuf = xmalloc(ilen);
88 BN_bn2bin(in, inbuf);
90 if ((len = RSA_public_encrypt(ilen, inbuf, outbuf, key,
98 explicit_bzero(inbuf, ilen);
100 free(inbuf);
106 u_char *inbuf, *outbuf; local
113 inbuf = xmalloc(ilen);
114 BN_bn2bin(in, inbuf);
116 if ((len = RSA_private_decrypt(ilen, inbuf, outbu
[all...]
/freebsd-10.1-release/usr.bin/msgs/
H A Dmsgs.c111 static char inbuf[BUFSIZ]; variable
296 snprintf(inbuf, sizeof(inbuf), "%s/%s", _PATH_MSGS, cp);
304 if (stat(inbuf, &stbuf) != 0)
308 unlink(inbuf);
366 fgets(inbuf, sizeof inbuf, stdin);
370 ptr, ctime(&t), inbuf);
376 fgets(inbuf, sizeof inbuf, stdi
[all...]
/freebsd-10.1-release/games/caesar/
H A Dcaesar.c82 char *inbuf; local
88 if (!(inbuf = malloc((size_t)LINELENGTH))) {
100 if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) {
105 ch = (unsigned char) inbuf[i];
134 ch = (unsigned char) inbuf[i];
139 if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) {
/freebsd-10.1-release/usr.bin/gzip/
H A Dunbzip2.c42 static char *inbuf, *outbuf; local
44 if (inbuf == NULL)
45 inbuf = malloc(BUFLEN);
48 if (inbuf == NULL || outbuf == NULL)
71 n = read(in, inbuf, BUFLEN);
76 bzs.next_in = inbuf;
/freebsd-10.1-release/sys/crypto/rc4/
H A Drc4.h51 const u_char *inbuf, u_char *outbuf, int buflen);
H A Drc4.c89 const u_char *inbuf, u_char *outbuf, int buflen)
106 outbuf[i] = inbuf[i] ^ state->perm[j];
88 rc4_crypt(struct rc4_state *const state, const u_char *inbuf, u_char *outbuf, int buflen) argument
/freebsd-10.1-release/contrib/libucl/tests/
H A Dtest_basic.c30 char inbuf[8192], *test_in = NULL; local
80 memset (inbuf, 0, sizeof (inbuf));
81 if (fread (inbuf, 1, sizeof (inbuf) - 1, in) == 0) {
84 inlen = strlen (inbuf);
86 memcpy (test_in, inbuf, inlen);
/freebsd-10.1-release/contrib/ipfilter/tools/
H A Dipsyncm.c65 int inbuf; local
126 inbuf = 0;
129 n1 = read(lfd, buff+inbuf, BUFFERLEN-inbuf);
147 inbuf += n1;
150 if (inbuf < sizeof(*sh)) {
186 if (inbuf < sizeof(*sh) + len) {
231 inbuf -= n2;
232 if (inbuf) {
233 bcopy(buff+n2, buff, inbuf);
[all...]
H A Dipsyncs.c61 int n1, n2, n3, magic, len, inbuf; local
139 inbuf = 0;
147 n1 = read(nfd, buff+inbuf, BUFFERLEN-inbuf);
165 inbuf += n1;
168 if (inbuf < sizeof(*sh)) {
204 if (inbuf < sizeof(*sh) + len) {
250 inbuf -= n2;
251 if (inbuf) {
252 bcopy(buff+n2, buff, inbuf);
[all...]
/freebsd-10.1-release/contrib/bzip2/
H A Dunzcrash.c40 uchar inbuf[M_BLOCK]; variable
92 nIn = fread ( inbuf, 1, M_BLOCK, f );
97 zbuf, &nZ, inbuf, nIn, 9, 0, 30 );
118 if (inbuf[i] != outbuf[i]) {
132 if (inbuf[i] != outbuf[i]) {
/freebsd-10.1-release/sys/libkern/
H A Diconv_xlat.c80 iconv_xlat_conv(void *d2p, const char **inbuf, argument
89 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL)
97 src = *inbuf;
101 *inbuf += n;
/freebsd-10.1-release/tools/test/iconv/posix/
H A Dposix.c114 uint32_t inbuf[2] = { 0x00000151, 0x00000171 }; local
119 inptr = (const char *)inbuf;
134 uint32_t inbuf[4]; local
141 inptr = (const char *)inbuf;
150 printf("inptr - inbuf = %d\n", (const uint8_t *)inptr - (uint8_t *)inbuf);
158 if (((const uint8_t *)inptr - (uint8_t *)inbuf == 8) && (inbytesleft == 8) &&
174 uint16_t inbuf[1] = { 0xEA42 }; local
180 inptr = (const char *)inbuf;
189 printf("inptr - inbuf
213 uint16_t inbuf[1] = { 0x8AC0 }; local
[all...]
/freebsd-10.1-release/contrib/apr-util/xlate/
H A Dxlate.c108 char inbuf[256], outbuf[256]; local
109 char *inbufptr = inbuf;
115 for (i = 0; i < sizeof(inbuf); i++) {
116 inbuf[i] = i;
119 inbytes_left = outbytes_left = sizeof(inbuf);
147 char inbuf[256], outbuf[256]; local
148 char *inbufptr = inbuf;
155 for (i = 0; i < sizeof(inbuf); i++) {
156 inbuf[i] = i;
159 inbytes_left = outbytes_left = sizeof(inbuf);
[all...]
/freebsd-10.1-release/tools/test/iconv/tablegen/
H A Dtablegen.c171 mb_to_wc_fb(const char* inbuf, size_t inbufsize, argument
180 mb_to_uc_fb(const char* inbuf, size_t inbufsize, argument
289 uint32_t inbuf; local
293 for (inbuf = 0; inbuf < (lflag ? 0x100000 : 0x10000); inbuf += 1) {
294 if (uniinput && (inbuf >= 0xD800) && (inbuf <= 0xDF00))
296 inbytesleft = uniinput ? 4 : magnitude(inbuf);
300 inbuf_ = (const char *)&inbuf;
[all...]
/freebsd-10.1-release/usr.bin/iconv/
H A Diconv.c74 char inbuf[INBUFSIZE], outbuf[OUTBUFSIZE], *out; local
89 while ((inbytes = fread(inbuf, 1, INBUFSIZE, fp)) > 0) {
90 in = inbuf;
103 if (errno != EINVAL || in == inbuf)
107 (void)memmove(inbuf, in, inbytes);
108 ret = fread(inbuf + inbytes, 1,
120 in = inbuf;
/freebsd-10.1-release/contrib/pf/libevent/
H A Dbuffer.c92 evbuffer_add_buffer(struct evbuffer *outbuf, struct evbuffer *inbuf) argument
99 size_t oldoff = inbuf->off;
103 SWAP(outbuf, inbuf);
104 SWAP(inbuf, &tmp);
109 * of data that we tranfered from inbuf to outbuf
111 if (inbuf->off != oldoff && inbuf->cb != NULL)
112 (*inbuf->cb)(inbuf, oldoff, inbuf
[all...]
/freebsd-10.1-release/crypto/heimdal/lib/krb5/
H A Drd_rep.c39 const krb5_data *inbuf,
50 ret = decode_AP_REP(inbuf->data, inbuf->length, &ap_rep, &len);
37 krb5_rd_rep(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_ap_rep_enc_part **repl) argument
/freebsd-10.1-release/usr.bin/uudecode/
H A Duudecode.c414 char inbuf[MAXPATHLEN + 1], *p; local
420 strcpy(inbuf, leftover);
421 switch (getline(inbuf + strlen(inbuf),
422 sizeof(inbuf) - strlen(inbuf))) {
431 p = inbuf;
440 count4 = p - inbuf;
444 strcpy(leftover, inbuf + count4 + 1);
445 inbuf[count
[all...]
/freebsd-10.1-release/contrib/apr-util/include/
H A Dapr_xlate.h99 * @param inbuf The address of the source buffer
114 * the inbuf and inbytes_left parameters as NULL. (Note that this
118 const char *inbuf,
/freebsd-10.1-release/sys/sys/
H A Diconv.h157 int iconv_conv(void *handle, const char **inbuf,
159 int iconv_conv_case(void *handle, const char **inbuf,
161 int iconv_convchr(void *handle, const char **inbuf,
163 int iconv_convchr_case(void *handle, const char **inbuf,
179 int (*conv)(void *handle, const char **inbuf, size_t *inbytesleft,
181 int (*conv_case)(void *handle, const char **inbuf, size_t *inbytesleft,
183 int (*convchr)(void *handle, const char **inbuf, size_t *inbytesleft,
185 int (*convchr_case)(void *handle, const char **inbuf, size_t *inbytesleft,
/freebsd-10.1-release/sys/ofed/drivers/infiniband/core/
H A Ducm.c393 const char __user *inbuf,
405 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
479 const char __user *inbuf,
490 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
526 const char __user *inbuf,
537 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
571 const char __user *inbuf,
582 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
603 const char __user *inbuf,
615 if (copy_from_user(&cmd, inbuf, sizeo
392 ib_ucm_event(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
478 ib_ucm_create_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
525 ib_ucm_destroy_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
570 ib_ucm_attr_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
602 ib_ucm_init_qp_attr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
651 ib_ucm_listen(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
677 ib_ucm_notify(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
745 ib_ucm_send_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
803 ib_ucm_send_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
843 ib_ucm_send_private_data(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int (*func)(struct ib_cm_id *cm_id, const void *private_data, u8 private_data_len)) argument
872 ib_ucm_send_rtu(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
879 ib_ucm_send_dreq(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
886 ib_ucm_send_drep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
893 ib_ucm_send_info(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int (*func)(struct ib_cm_id *cm_id, int status, const void *info, u8 info_len, const void *data, u8 data_len)) argument
933 ib_ucm_send_rej(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
940 ib_ucm_send_apr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
947 ib_ucm_send_mra(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
974 ib_ucm_send_lap(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
1008 ib_ucm_send_sidr_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
1049 ib_ucm_send_sidr_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument
[all...]
H A Ducma.c294 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, argument
306 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
354 const char __user *inbuf,
365 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
463 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, argument
474 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
497 static ssize_t ucma_bind_addr(struct ucma_file *file, const char __user *inbuf, argument
504 if (copy_from_user(&cmd, inbuf, sizeof(cmd)))
517 const char __user *inbuf,
524 if (copy_from_user(&cmd, inbuf, sizeo
353 ucma_create_id(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
516 ucma_resolve_addr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
538 ucma_resolve_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
622 ucma_query_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
692 ucma_connect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
716 ucma_listen(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
737 ucma_accept(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
763 ucma_reject(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
782 ucma_disconnect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
801 ucma_init_qp_attr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
922 ucma_set_option(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
958 ucma_notify(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
977 ucma_join_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1036 ucma_leave_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument
1117 ucma_migrate_id(struct ucma_file *new_file, const char __user *inbuf, int in_len, int out_len) argument
[all...]
/freebsd-10.1-release/contrib/libucl/utils/
H A Dobjdump.c98 char inbuf[8192]; local
120 while (!feof (in) && r < (int)sizeof (inbuf)) {
121 r += fread (inbuf + r, 1, sizeof (inbuf) - r, in);
123 ucl_parser_add_chunk (parser, inbuf, r);
/freebsd-10.1-release/lib/libc/inet/
H A Dinet_net_ntop.c178 unsigned char inbuf[16]; local
198 memcpy(inbuf, src, p);
199 memset(inbuf + p, 0, 16 - p);
203 inbuf[p-1] &= m;
206 s = inbuf;
/freebsd-10.1-release/contrib/apr-util/test/
H A Dtestxlate.c33 const char *inbuf, const char *expected)
36 apr_size_t inbytes_left = strlen(inbuf);
40 rv = apr_xlate_conv_buffer(convset, inbuf, &inbytes_left, buf, &outbytes_left);
32 test_conversion(abts_case *tc, apr_xlate_t *convset, const char *inbuf, const char *expected) argument

Completed in 143 milliseconds

1234