/freebsd-current/sys/powerpc/pseries/ |
H A D | phyp_dbg.c | 50 } inbuf; member in struct:uart_phyp_dbgport 110 0, 0, 0, &dbgport.inbuflen, &dbgport.inbuf.u64[0], 111 &dbgport.inbuf.u64[1]); 119 c = dbgport.inbuf.str[0]; 131 if (c == '\r' && dbgport.inbuf.str[next] == '\0') { 137 memmove(&dbgport.inbuf.str[0], &dbgport.inbuf.str[next],
|
/freebsd-current/usr.bin/msgs/ |
H A D | msgs.c | 95 static char inbuf[BUFSIZ]; variable 280 snprintf(inbuf, sizeof(inbuf), "%s/%s", _PATH_MSGS, cp); 288 if (stat(inbuf, &stbuf) != 0) 292 unlink(inbuf); 350 fgets(inbuf, sizeof inbuf, stdin); 354 ptr, ctime(&t), inbuf); 360 fgets(inbuf, sizeof inbuf, stdi [all...] |
/freebsd-current/usr.bin/gzip/ |
H A D | unbzip2.c | 42 static char *inbuf, *outbuf; local 44 if (inbuf == NULL) 45 inbuf = malloc(BUFLEN); 48 if (inbuf == NULL || outbuf == NULL) 72 n = read(in, inbuf, BUFLEN); 78 bzs.next_in = inbuf;
|
/freebsd-current/usr.bin/caesar/ |
H A D | caesar.c | 68 char *inbuf; local 74 if (!(inbuf = malloc((size_t)LINELENGTH))) { 86 if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) { 91 ch = (unsigned char) inbuf[i]; 120 ch = (unsigned char) inbuf[i]; 125 if ((nread = read(STDIN_FILENO, inbuf, (size_t)LINELENGTH)) < 0) {
|
/freebsd-current/sys/crypto/rc4/ |
H A D | rc4.h | 49 const u_char *inbuf, u_char *outbuf, int buflen);
|
H A D | rc4.c | 86 const u_char *inbuf, u_char *outbuf, int buflen) 103 outbuf[i] = inbuf[i] ^ state->perm[j]; 85 rc4_crypt(struct rc4_state *const state, const u_char *inbuf, u_char *outbuf, int buflen) argument
|
/freebsd-current/sbin/ipf/ipfsync/ |
H A D | ipsyncm.c | 60 int inbuf; local 121 inbuf = 0; 124 n1 = read(lfd, buff+inbuf, BUFFERLEN-inbuf); 142 inbuf += n1; 145 if (inbuf < sizeof(*sh)) { 181 if (inbuf < sizeof(*sh) + len) { 226 inbuf -= n2; 227 if (inbuf) { 228 bcopy(buff+n2, buff, inbuf); [all...] |
H A D | ipsyncs.c | 56 int n1, n2, n3, magic, len, inbuf; local 134 inbuf = 0; 142 n1 = read(nfd, buff+inbuf, BUFFERLEN-inbuf); 160 inbuf += n1; 163 if (inbuf < sizeof(*sh)) { 199 if (inbuf < sizeof(*sh) + len) { 245 inbuf -= n2; 246 if (inbuf) { 247 bcopy(buff+n2, buff, inbuf); [all...] |
/freebsd-current/contrib/bzip2/ |
H A D | unzcrash.c | 40 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-current/sys/libkern/ |
H A D | iconv_xlat.c | 79 iconv_xlat_conv(void *d2p, const char **inbuf, argument 88 if (inbuf == NULL || *inbuf == NULL || outbuf == NULL || *outbuf == NULL) 96 src = *inbuf; 100 *inbuf += n;
|
/freebsd-current/tools/test/iconv/posix/ |
H A D | posix.c | 115 uint32_t inbuf[2] = { 0x00000151, 0x00000171 }; local 120 inptr = (char *)inbuf; 135 uint32_t inbuf[4]; local 142 inptr = (char *)inbuf; 151 printf("inptr - inbuf = %d\n", (const uint8_t *)inptr - (uint8_t *)inbuf); 159 if (((const uint8_t *)inptr - (uint8_t *)inbuf == 8) && (inbytesleft == 8) && 175 uint16_t inbuf[1] = { 0xEA42 }; local 181 inptr = (char *)inbuf; 190 printf("inptr - inbuf 214 uint16_t inbuf[1] = { 0x8AC0 }; local [all...] |
/freebsd-current/tools/test/iconv/tablegen/ |
H A D | tablegen.c | 169 mb_to_wc_fb(const char* inbuf, size_t inbufsize, argument 178 mb_to_uc_fb(const char* inbuf, size_t inbufsize, argument 285 uint32_t inbuf; local 289 for (inbuf = 0; inbuf < (lflag ? 0x100000 : 0x10000); inbuf += 1) { 290 if (uniinput && (inbuf >= 0xD800) && (inbuf <= 0xDF00)) 292 inbytesleft = uniinput ? 4 : magnitude(inbuf); 296 inbuf_ = (char *)&inbuf; [all...] |
/freebsd-current/contrib/libucl/utils/ |
H A D | objdump.c | 105 unsigned char *inbuf; local 128 inbuf = malloc (BUFSIZ); 134 inbuf = realloc (inbuf, bufsize * 2); 136 if (inbuf == NULL) { 141 r += fread (inbuf + r, 1, bufsize - r, in); 149 ucl_parser_add_chunk (parser, inbuf, r);
|
/freebsd-current/usr.bin/iconv/ |
H A D | iconv.c | 74 char inbuf[INBUFSIZE], outbuf[OUTBUFSIZE], *in, *out; local 90 while ((inbytes = fread(inbuf, 1, INBUFSIZE, fp)) > 0) { 91 in = inbuf; 104 if (errno != EINVAL || in == inbuf) 108 (void)memmove(inbuf, in, inbytes); 109 ret = fread(inbuf + inbytes, 1, 121 in = inbuf;
|
/freebsd-current/contrib/pf/libevent/ |
H A D | buffer.c | 92 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-current/crypto/heimdal/lib/krb5/ |
H A D | rd_rep.c | 39 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-current/usr.bin/bintrans/ |
H A D | uudecode.c | 434 char inbuf[MAXPATHLEN + 1], *p; local 440 strcpy(inbuf, leftover); 441 switch (get_line(inbuf + strlen(inbuf), 442 sizeof(inbuf) - strlen(inbuf))) { 451 p = inbuf; 460 count4 = p - inbuf; 464 strcpy(leftover, inbuf + count4 + 1); 465 inbuf[count [all...] |
/freebsd-current/contrib/libucl/tests/ |
H A D | test_basic.c | 34 char *inbuf = NULL; local 130 inbuf = malloc (BUFSIZ); 136 inbuf = realloc (inbuf, bufsize * 2); 138 if (inbuf == NULL) { 143 r += fread (inbuf + r, 1, bufsize - r, in); 151 ucl_parser_add_chunk_full (parser, (const unsigned char *)inbuf, r, 298 if (inbuf != NULL) { 299 free (inbuf);
|
/freebsd-current/sys/sys/ |
H A D | iconv.h | 157 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-current/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ucm.c | 387 const char __user *inbuf, 398 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 472 const char __user *inbuf, 483 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 519 const char __user *inbuf, 530 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 564 const char __user *inbuf, 575 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 596 const char __user *inbuf, 608 if (copy_from_user(&cmd, inbuf, sizeo 386 ib_ucm_event(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 471 ib_ucm_create_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 518 ib_ucm_destroy_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 563 ib_ucm_attr_id(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 595 ib_ucm_init_qp_attr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 644 ib_ucm_listen(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 669 ib_ucm_notify(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 732 ib_ucm_send_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 790 ib_ucm_send_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 830 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 859 ib_ucm_send_rtu(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 866 ib_ucm_send_dreq(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 873 ib_ucm_send_drep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 880 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 920 ib_ucm_send_rej(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 927 ib_ucm_send_apr(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 934 ib_ucm_send_mra(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 961 ib_ucm_send_lap(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 995 ib_ucm_send_sidr_req(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument 1036 ib_ucm_send_sidr_rep(struct ib_ucm_file *file, const char __user *inbuf, int in_len, int out_len) argument [all...] |
H A D | ib_ucma.c | 383 static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf, argument 394 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 459 static ssize_t ucma_create_id(struct ucma_file *file, const char __user *inbuf, argument 472 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 583 static ssize_t ucma_destroy_id(struct ucma_file *file, const char __user *inbuf, argument 594 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 631 static ssize_t ucma_bind_ip(struct ucma_file *file, const char __user *inbuf, argument 638 if (copy_from_user(&cmd, inbuf, sizeof(cmd))) 653 static ssize_t ucma_bind(struct ucma_file *file, const char __user *inbuf, argument 660 if (copy_from_user(&cmd, inbuf, sizeo 676 ucma_resolve_ip(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 701 ucma_resolve_addr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 727 ucma_resolve_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 811 ucma_query_route(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 980 ucma_query(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1032 ucma_connect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1056 ucma_listen(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1077 ucma_accept(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1106 ucma_reject(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1125 ucma_disconnect(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1144 ucma_init_qp_attr(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1288 ucma_set_option(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1319 ucma_notify(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1406 ucma_join_ip_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1426 ucma_join_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1441 ucma_leave_multicast(struct ucma_file *file, const char __user *inbuf, int in_len, int out_len) argument 1522 ucma_migrate_id(struct ucma_file *new_file, const char __user *inbuf, int in_len, int out_len) argument [all...] |
/freebsd-current/sys/fs/cd9660/ |
H A D | cd9660_util.c | 59 char inbuf[3], outbuf[3], *inp, *outp; local 69 inbuf[0]=(char)*(isofn - 1); 70 inbuf[1]=(char)*isofn; 71 inbuf[2]='\0'; 72 inp = inbuf;
|
/freebsd-current/lib/libc/inet/ |
H A D | inet_net_ntop.c | 165 unsigned char inbuf[16]; local 185 memcpy(inbuf, src, p); 186 memset(inbuf + p, 0, 16 - p); 190 inbuf[p-1] &= m; 193 s = inbuf;
|
/freebsd-current/tools/test/iconv/gnu/ |
H A D | gnu.c | 333 mb_to_uc_fb(const char* inbuf, size_t inbufsize, argument 349 uint16_t inbuf[1] = { 0xF187 }; local 367 inptr = (char *)inbuf; 391 char *inbuf = "works!", *outptr; local 399 inptr = (char *)inbuf; 406 return ((memcmp(inbuf, outbuf, 6) == 0) ? 0 : 1);
|
/freebsd-current/contrib/ofed/libibnetdisc/ |
H A D | ibnetdisc_cache.c | 177 static size_t _unmarshall8(uint8_t * inbuf, uint8_t * num) argument 179 (*num) = inbuf[0]; 184 static size_t _unmarshall16(uint8_t * inbuf, uint16_t * num) argument 186 (*num) = ((uint16_t) inbuf[1] << 8) | inbuf[0]; 191 static size_t _unmarshall32(uint8_t * inbuf, uint32_t * num) argument 193 (*num) = (uint32_t) inbuf[0]; 194 (*num) |= ((uint32_t) inbuf[1] << 8); 195 (*num) |= ((uint32_t) inbuf[2] << 16); 196 (*num) |= ((uint32_t) inbuf[ 201 _unmarshall64(uint8_t * inbuf, uint64_t * num) argument 215 _unmarshall_buf(const void *inbuf, void *outbuf, unsigned int len) argument 760 _marshall_buf(void *outbuf, const void *inbuf, unsigned int len) argument [all...] |