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

123

/haiku-fatelf/src/bin/gzip/
H A Dunzip.c54 uch *h = inbuf + inptr; /* first local header */
95 * IN assertions: the buffer inbuf contains already the beginning of
113 orig_crc = LG(inbuf + LOCCRC);
114 orig_len = LG(inbuf + LOCLEN);
130 register ulg n = LG(inbuf + LOCLEN);
132 if (n != LG(inbuf + LOCSIZ) - (decrypt ? RAND_HEAD_LEN : 0)) {
134 fprintf(stderr, "len %ld, siz %ld\n", n, LG(inbuf + LOCSIZ));
182 if (pkzip && inptr + 4 < insize && LG(inbuf+inptr) == LOCSIG) {
H A Dunlzw.c187 * IN assertions: the buffer inbuf contains already the beginning of
255 inbuf[i] = inbuf[i+o];
261 if ((rsize = read(in, (char*)inbuf+insize, INBUFSIZ)) == EOF) {
283 input(inbuf,posbits,code,n_bits,bitmask);
309 p = &inbuf[posbits>>3];
314 "posbits:%ld inbuf:%02X %02X %02X %02X %02X\n",
H A Dgzip.h66 * unlzw: tab_prefix tab_suffix stack inbuf outbuf
67 * inflate: window inbuf
68 * unpack: window inbuf prefix_len
69 * unlzh: left+right window c_table inbuf c_len
115 EXTERN(uch, inbuf); /* input buffer */
131 extern unsigned insize; /* valid bytes in inbuf */
132 extern unsigned inptr; /* index of next byte to be processed in inbuf */
202 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(0))
203 #define try_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(1))
H A Dutil.c37 * IN assertion: insize bytes have already been read in inbuf.
44 write_buf(out, (char*)inbuf, insize);
46 insize = read(in, (char*)inbuf, INBUFSIZ);
102 len = read(ifd, (char*)inbuf+insize, INBUFSIZ-insize);
113 return inbuf[0];
/haiku-fatelf/src/kits/network/libbind/isc/
H A Dctl_clnt.c94 struct ctl_buf inbuf; member in struct:ctl_cctx
174 buffer_init(ctx->inbuf);
373 if (allocated_p(ctx->inbuf))
374 ctl_bufput(&ctx->inbuf);
501 if (!allocated_p(ctx->inbuf) &&
502 ctl_bufget(&ctx->inbuf, ctx->logger) < 0) {
507 n = read(ctx->sock, ctx->inbuf.text + ctx->inbuf.used,
508 MAX_LINELEN - ctx->inbuf.used);
517 ctx->inbuf
[all...]
H A Dctl_srvr.c94 struct ctl_buf inbuf; member in struct:ctl_sess
457 buffer_init(sess->inbuf);
509 if (allocated_p(sess->inbuf))
510 ctl_bufput(&sess->inbuf);
532 sess->inbuf.used = 0;
581 if (!allocated_p(sess->inbuf) &&
582 ctl_bufget(&sess->inbuf, ctx->logger) < 0) {
588 n = read(sess->sock, sess->inbuf.text + sess->inbuf.used,
589 MAX_LINELEN - sess->inbuf
[all...]
/haiku-fatelf/src/add-ons/translators/jpeg2000/libjasper/
H A Djpc_mqdec.h275 #define jpc_mqdec_renormd(areg, creg, ctreg, in, eof, inbuf) \
279 jpc_mqdec_bytein2(creg, ctreg, in, eof, inbuf); \
287 #define jpc_mqdec_bytein2(creg, ctreg, in, eof, inbuf) \
296 prevbuf = (inbuf); \
297 (inbuf) = c; \
/haiku-fatelf/src/bin/coreutils/lib/
H A Dunicodeio.c78 char inbuf[6]; local
110 count = u8_uctomb ((unsigned char *) inbuf, code, sizeof (inbuf));
124 inptr = inbuf;
156 return success (inbuf, count, callback_arg);
H A Diconv.in.h65 @ICONV_CONST@ char **inbuf, size_t *inbytesleft,
/haiku-fatelf/src/add-ons/input_server/methods/canna/lib/
H A Debind.c36 static WCHAR_T *inbuf = 0; variable
83 if (inbuf) free(inbuf);
84 inbuf = (WCHAR_T *)malloc(inbufsize * sizeof(WCHAR_T));
85 if (!inbuf) {
94 p = (char *)inbuf;
195 if (inbuf) free(inbuf);
196 inbuf = (WCHAR_T *)malloc(inbufsize * sizeof(WCHAR_T));
197 if (!inbuf) {
[all...]
/haiku-fatelf/src/bin/coreutils/src/
H A Dbase64.c138 char inbuf[BLOCKSIZE]; local
149 n = fread (inbuf + sum, 1, BLOCKSIZE - sum, in);
158 base64_encode (inbuf, sum, outbuf, BASE64_LENGTH (sum));
177 char inbuf[B64BLOCKSIZE]; local
193 n = fread (inbuf + sum, 1, B64BLOCKSIZE - sum, in);
199 if (isbase64 (inbuf[sum + i]) || inbuf[sum + i] == '=')
202 memmove (inbuf + sum + i, inbuf + sum + i + 1, --n - i);
221 ok = base64_decode_ctx (&ctx, inbuf, (
[all...]
H A Dcat.c218 char *inbuf,
266 /* The inbuf pointers are initialized so that BPIN > EOB, and thereby input
269 eob = inbuf;
341 n_read = safe_read (input_desc, inbuf, insize);
359 bpin = inbuf;
513 char *inbuf; local
726 inbuf = xmalloc (insize + page_size - 1);
728 ok &= simple_cat (ptr_align (inbuf, page_size), insize);
732 inbuf = xmalloc (insize + 1 + page_size - 1);
759 ok &= cat (ptr_align (inbuf, page_siz
216 cat( char *inbuf, size_t insize, char *outbuf, size_t outsize, bool show_nonprinting, bool show_tabs, bool number, bool number_nonblank, bool show_ends, bool squeeze_blank) argument
[all...]
/haiku-fatelf/src/libs/iconv/
H A Dloop_wchar.h135 const char* * inbuf, size_t *inbytesleft,
141 const wchar_t * inptr = (const wchar_t *) *inbuf;
166 for (fallback_inptr = (const wchar_t *) *inbuf;
178 *inbuf = (const char *) (inptr + 1);
222 *inbuf = (const char *) inptr;
319 const char* * inbuf, size_t *inbytesleft,
328 const char* inptr = *inbuf;
365 wcd->parent.fallbacks.mb_to_wc_fallback(*inbuf, incount,
378 *inbuf += incount;
402 *inbuf
134 wchar_from_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
318 wchar_to_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
429 wchar_id_loop_convert(iconv_t icd, const char* * inbuf, size_t *inbytesleft, char* * outbuf, size_t *outbytesleft) argument
[all...]
/haiku-fatelf/headers/libs/iconv/
H A Diconv.h59 starting at `*inbuf', writing at most `*outbytesleft' bytes starting at
61 Decrements `*inbytesleft' and increments `*inbuf' by the same amount.
66 extern size_t iconv(iconv_t cd, char* * inbuf, size_t *inbytesleft,
97 bytes from inbuf and may produce replacement Unicode characters by calling
100 (const char* inbuf, size_t inbufsize,
117 a wide character. This function should process all bytes from inbuf and may
121 (const char* inbuf, size_t inbufsize,
/haiku-fatelf/src/system/libroot/posix/glibc/iconv/
H A Dgconv_int.h70 const unsigned char **inbuf, \
/haiku-fatelf/src/add-ons/translators/hpgs/lib/
H A Dhpgslabel.c119 char *inbuf; local
138 inbuf = hpgs_alloca(str_len);
140 if (!inbuf)
143 memcpy(inbuf,str,str_len);
148 iconv(encoding,&inbuf,&inbytesleft,&outbuf,&outbytesleft);
/haiku-fatelf/src/kits/network/libbind/inet/
H A Dinet_net_ntop.c176 unsigned char inbuf[16]; local
196 memcpy(inbuf, src, p);
197 memset(inbuf + p, 0, 16 - p);
201 inbuf[p-1] &= m;
204 s = inbuf;
/haiku-fatelf/src/bin/gdb/gdb/
H A Dremote-sds.c275 tob64 (unsigned char *inbuf, char *outbuf, int len)
287 sum = ((long) *inbuf++) << 16;
288 sum |= ((long) *inbuf++) << 8;
289 sum |= ((long) *inbuf++);
301 fromb64 (char *inbuf, char *outbuf, int len)
311 sum = (*inbuf++ - '0') << 18;
312 sum |= (*inbuf++ - '0') << 12;
313 sum |= (*inbuf++ - '0') << 6;
314 sum |= (*inbuf++ - '0');
864 unsigned char inbuf[50
274 tob64(unsigned char *inbuf, char *outbuf, int len) argument
300 fromb64(char *inbuf, char *outbuf, int len) argument
857 unsigned char inbuf[500]; local
[all...]
/haiku-fatelf/src/libs/print/libgutenprint/test/
H A Dbjc-unprint.c68 void rle_info (const unsigned char *inbuf, int n, int *first, int *last,
70 int rle_decode (unsigned char *inbuf, int n, unsigned char *outbuf, int max);
119 void rle_info(const unsigned char *inbuf, int n, int *first, int *last, int *width, int *length) argument
121 const char *ib= (const char *)inbuf;
135 if (inbuf[i+1]) {
136 if (f<0) f=o*8 + first_bit(inbuf[i+1]);
137 l= o*8 + last_bit(inbuf[i+1]);
144 if (inbuf[i+j+1]) {
145 if (f<0) f=(o+j)*8 + first_bit(inbuf[i+j+1]);
146 l= o*8 + last_bit(inbuf[
160 rle_decode(unsigned char *inbuf, int n, unsigned char *outbuf,int max) argument
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dcompress.c85 const unsigned char *inbuf; member in struct:COMPRESS_CONTEXT
119 p1 = pctx->inbuf;
191 static unsigned int ntfs_compress_block(const char *inbuf, int bufsize, argument
216 pctx->inbuf = (const unsigned char*)inbuf;
257 outbuf[xout++] = inbuf[i];
268 outbuf[xout++] = inbuf[i];
289 memcpy(&outbuf[2],inbuf,bufsize);
827 s64 offs, u32 to_read, char *inbuf)
839 xinbuf = inbuf;
826 read_clusters(ntfs_volume *vol, const runlist_element *rl, s64 offs, u32 to_read, char *inbuf) argument
913 ntfs_comp_set(ntfs_attr *na, runlist_element *rl, s64 offs, u32 insz, const char *inbuf) argument
1528 char *inbuf; local
1719 char *inbuf; local
[all...]
/haiku-fatelf/src/bin/unzip/
H A Dprocess.c182 G.inbuf = (uch *)malloc(INBUFSIZ + 4); /* 4 extra for hold[] (below) */
185 if ((G.inbuf == (uch *)NULL) || (G.outbuf == (uch *)NULL)) {
190 G.hold = G.inbuf + INBUFSIZ; /* to check for boundary-spanning sigs */
507 if (G.inbuf)
508 free(G.inbuf);
509 G.inbuf = G.outbuf = (uch *)NULL;
631 G.inptr = G.inbuf;
908 if ((G.incnt = read(G.zipfd,(char *)G.inbuf,(unsigned int)G.ziplen))
912 for (G.inptr = G.inbuf+(int)G.ziplen-(ECREC_SIZE+4);
913 G.inptr >= G.inbuf;
[all...]
H A Dfileio.c452 * checks. Call defer_leftover_input() if you ever have filled G.inbuf
526 if ((G.incnt = read(G.zipfd, (char *)G.inbuf, INBUFSIZ)) == 0)
537 G.inptr = G.inbuf;
558 int readbyte(__G) /* refill inbuf and return a byte if available, else EOF */
569 if ((G.incnt = read(G.zipfd, (char *)G.inbuf, INBUFSIZ)) == 0) {
586 G.inptr = G.inbuf;
619 int fillinbuf(__G) /* like readbyte() except returns number of bytes in inbuf */
623 (G.incnt = read(G.zipfd, (char *)G.inbuf, INBUFSIZ)) <= 0)
626 G.inptr = G.inbuf;
699 if ((G.incnt = read(G.zipfd, (char *)G.inbuf, INBUFSI
[all...]
/haiku-fatelf/src/libs/print/libgutenprint/src/escputil/
H A Descputil.c1911 char *inbuf; local
1926 inbuf = do_get_input(_("> "));
1927 if (!inbuf)
1929 switch (inbuf[0])
1935 inbuf = do_get_input (_("> "));
1936 if (!inbuf)
1938 if (inbuf[0] == 'q' || inbuf[0] == 'Q')
1950 inbuf = do_get_input(_("> "));
1951 if (!inbuf)
2010 char *inbuf; local
[all...]
/haiku-fatelf/src/libs/libtelnet/
H A Dkerberos5.c497 krb5_data inbuf; local
499 inbuf.data = (char *)data;
500 inbuf.length = cnt;
533 &inbuf);
627 krb5_data inbuf; local
630 inbuf.length = cnt;
631 inbuf.data = (char *)data;
633 ret = krb5_rd_rep(context, auth_context, &inbuf, &reply);
/haiku-fatelf/src/libs/pdflib/libs/pdcore/
H A Dpc_file.h53 void pdc_tempname(char *outbuf, int outlen, const char *inbuf, int inlen);

Completed in 233 milliseconds

123