Searched refs:buffer (Results 1 - 25 of 119) sorted by relevance

12345

/ast/src/lib/libtk/unix/
H A DtkUnix.c44 char buffer[50], buffer2[50];
46 sprintf(buffer, "X%dR%d ", ProtocolVersion(Tk_Display(tkwin)),
49 Tcl_AppendResult(interp, buffer, ServerVendor(Tk_Display(tkwin)),
43 char buffer[50], buffer2[50]; local
/ast/src/cmd/pack/
H A Dhuffencode.c61 register long buffer; local
81 buffer = hp->buffer;
106 putbits(buffer,left,bits[c],i);
107 outchars(fp,buffer,left,outp,i);
116 putbits(buffer,left,0,i);
117 outchars(fp,buffer,left,outp,i);
118 buffer = 0;
121 hp->buffer = buffer;
[all...]
H A Dhuffdecode.c39 /* read <n> bits from buffer <b> */
66 register long buffer; local
98 buffer = hp->buffer;
105 fillbuff(buffer,left,hp->maxlev,inp);
106 i = getbits(buffer,left,CHUNK);
109 putbits(buffer,left,n);
115 putbits(buffer,left,hp->excess);
121 i += getbits(buffer,left,1);
143 hp->buffer
[all...]
H A Dhuffman.h44 long buffer; member in struct:__anon178
/ast/src/lib/libast/comp/
H A Dexecvpe.c49 char buffer[PATH_MAX];
51 if (*path != '/' && !(path = pathpath(name, NULL, PATH_REGULAR|PATH_EXECUTE, buffer, sizeof(buffer))))
/ast/src/lib/libtksh/src/
H A Dfilecmd.c48 Tcl_DString buffer; local
63 fileName = Tcl_TildeSubst(interp, argv[2], &buffer);
349 Tcl_DStringFree(&buffer);
378 struct stat *statPtr; /* Pointer to buffer containing
522 Tcl_DString buffer;
523 Tcl_DStringInit(&buffer);
527 * result in the specified buffer. Individual elements are terminated
531 p = SplitUnixPath(path, &buffer);
537 size = Tcl_DStringLength(&buffer);
546 * Allocate a buffer larg
520 Tcl_DString buffer; local
653 Tcl_DString buffer; local
679 Tksh_CreatePipeline(Tcl_Interp *interp, int argc, char *argv[], Tcl_DString *buffer) argument
830 Tcl_DString buffer; local
895 Tcl_DString buffer; local
[all...]
H A DtclMain.c15 char buffer[1000], *args, *fileName; local
42 sprintf(buffer, "%d", argc-1);
43 Tcl_SetVar(interp, "argc", buffer, TCL_GLOBAL_ONLY);
/ast/src/cmd/dsslib/bgp/
H A Dbgp.c156 r->value.buffer.data = rp->agg_addr.v6;
157 r->value.buffer.size = sizeof(rp->agg_addr.v6);
158 r->value.buffer.elements = 0;
171 r->value.buffer.data = (rp->set & BGP_SET_agg_addrv6) ? rp->agg_addr.v6 : noipv6;
172 r->value.buffer.size = sizeof(rp->agg_addr.v6);
173 r->value.buffer.elements = 0;
178 r->value.buffer.data = rp->agg_addr32.v6;
179 r->value.buffer.size = sizeof(rp->agg_addr32.v6);
180 r->value.buffer.elements = 0;
193 r->value.buffer
[all...]
H A Dbgp-cisco.c204 if (r.value.buffer.size > elementsof(rp->data))
206 ap = (Bgpasn_t*)r.value.buffer.data;
207 n = r.value.buffer.size / sizeof(Bgpasn_t);
211 r.value.buffer.size = o * sizeof(Bgpasn_t);
212 if (r.value.buffer.size > elementsof(rp->data))
221 o = r.value.buffer.size;
222 memcpy(rp->data, r.value.buffer.data, o);
234 if ((n = r.value.buffer.size) > (elementsof(rp->data) - o))
242 memcpy(rp->data + o, r.value.buffer.data, n);
250 if ((n = r.value.buffer
[all...]
/ast/src/lib/libtksh/tcl/
H A DtclLink.c65 char *buffer));
99 char buffer[TCL_DOUBLE_SPACE];
113 if (Tcl_SetVar(interp, varName, StringValue(linkPtr, buffer),
193 char buffer[TCL_DOUBLE_SPACE];
203 Tcl_SetVar(interp, linkPtr->varName, StringValue(linkPtr, buffer),
240 char buffer[TCL_DOUBLE_SPACE];
254 Tcl_SetVar(interp, linkPtr->varName, StringValue(linkPtr, buffer),
295 Tcl_SetVar(interp, linkPtr->varName, StringValue(linkPtr, buffer),
311 Tcl_SetVar(interp, linkPtr->varName, StringValue(linkPtr, buffer),
330 StringValue(linkPtr, buffer), TCL_GLOBAL_ONL
98 char buffer[TCL_DOUBLE_SPACE]; local
190 char buffer[TCL_DOUBLE_SPACE]; local
236 char buffer[TCL_DOUBLE_SPACE]; local
[all...]
H A DtclUnixFile.c203 char buffer[MAXPATHLEN+1];
210 if (getcwd(buffer, MAXPATHLEN+1) == NULL) {
222 currentDir = (char *) ckalloc((unsigned) (strlen(buffer) + 1));
223 strcpy(currentDir, buffer);
326 char *buf; /* The buffer to store input in. */
494 Tcl_DString buffer;
497 Tcl_DStringInit(&buffer);
539 Tcl_DStringSetLength(&buffer, 0);
541 Tcl_DStringAppend(&buffer, name, p-name);
543 Tcl_DStringAppend(&buffer, "/",
198 char buffer[MAXPATHLEN+1]; local
482 Tcl_DString buffer; local
[all...]
H A DtclExpr.c402 if (string != valuePtr->pv.buffer) {
406 valuePtr->pv.next = valuePtr->pv.buffer;
407 shortfall = length - (valuePtr->pv.end - valuePtr->pv.buffer);
411 strcpy(valuePtr->pv.buffer, string);
554 return ExprParseString(interp, valuePtr->pv.buffer, valuePtr);
564 return ExprParseString(interp, valuePtr->pv.buffer, valuePtr);
749 value2.pv.buffer = value2.pv.next = value2.staticSpace;
750 value2.pv.end = value2.pv.buffer + STATIC_STRING_SPACE - 1;
859 value2.pv.next = value2.pv.buffer;
919 valuePtr->pv.next = valuePtr->pv.buffer;
[all...]
H A DtclClock.c280 Tcl_DString buffer;
336 Tcl_DStringInit(&buffer);
337 Tcl_DStringSetLength(&buffer, bufSize);
339 if (TclStrftime(buffer.string, (unsigned int) bufSize, format,
341 Tcl_DStringFree(&buffer);
359 Tcl_DStringResult(interp, &buffer);
277 Tcl_DString buffer; local
/ast/src/lib/libtk/generic/
H A DtkClipboard.c25 int offset, char *buffer, int maxBytes));
27 int offset, char *buffer, int maxBytes));
29 ClientData clientData, int offset, char *buffer,
41 * data from the buffer chain for a given selection target.
45 * actually stored at buffer.
54 ClipboardHandler(clientData, offset, buffer, maxBytes)
58 char *buffer; /* Place to store converted selection. */
59 int maxBytes; /* Maximum # of bytes to store at buffer. */
69 * Skip to buffer containing offset byte
87 srcPtr = cbPtr->buffer
[all...]
H A DtkImgPPM.c153 char buffer[30];
155 sprintf(buffer, "%d", maxIntensity);
157 "\" has bad maximum intensity value ", buffer,
345 char buffer[BUFFER_SIZE];
379 buffer[i] = c;
385 buffer[i] = ' ';
389 buffer[i] = 0;
395 if (strncmp(buffer, "P6 ", 3) == 0) {
397 } else if (strncmp(buffer, "P5 ", 3) == 0) {
402 if (sscanf(buffer
151 char buffer[30]; local
341 char buffer[BUFFER_SIZE]; local
[all...]
H A DtkSelect.h114 char *buffer; /* Null terminated data buffer. */ member in struct:TkClipboardBuffer
115 long length; /* Length of string in buffer. */
159 * buffer space that's guaranteed to be word-aligned and that
175 char *buffer, int maxBytes, Atom *typePtr));
/ast/src/cmd/tests/sfio/
H A Dtnoseek.c22 char* buffer; variable
49 buffer = (char*)s;
75 if(buffer != buf || size != 8 || count != 1)
/ast/src/lib/libast/obsolete/
H A Dspawn.c88 char buffer[PATH_MAX];
91 path = pathpath(name, NULL, PATH_REGULAR|PATH_EXECUTE, buffer, sizeof(buffer));
/ast/src/cmd/bzip/
H A Dbzip2recover.c127 Int32 buffer; member in struct:__anon50
140 bs->buffer = 0;
153 bs->buffer = 0;
164 Int32 retVal = putc ( (UChar) bs->buffer, bs->handle );
168 bs->buffer = bit & 0x1;
170 bs->buffer = ( (bs->buffer << 1) | (bit & 0x1) );
184 return ( ((bs->buffer) >> (bs->buffLive)) & 0x1 );
192 bs->buffer = retVal;
193 return ( ((bs->buffer) >>
[all...]
/ast/src/cmd/pax/
H A Dbio.c172 error(2, "%s: blokread buffer overflow (%d>%d)", ap->name, j, n);
265 s = sfprints("<%p,%d,%d,%I*d,%d,%d>", io->buffer, io->unread, io->fill, sizeof(io->count), io->count, io->next - (io->buffer + io->unread), io->last - (io->buffer + io->unread));
279 if (ap->io->buffer)
291 if (!(ap->io->buffer = newof(0, char, n, u)))
292 error(3, "%s: cannot allocate buffer", ap->name);
294 ap->io->next = ap->io->last = ap->io->buffer + u;
319 ap->io->next = ap->io->last = ap->io->buffer + ap->io->unread;
359 while ((c = read(ap->io->fd, state.tmp.buffer, stat
[all...]
H A Dpax-cpio.c89 char opsbuf[PATH_MAX]; /* extended ops buffer */
357 if (paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)CPIO_HEADER, 0) <= 0)
359 state.tmp.buffer[CPIO_HEADER] = 0;
360 if (state.tmp.buffer[0] == '0' && sfsscanf(state.tmp.buffer, "%6o%6lo%6lo%6lo%6lo%6lo%6lo%6lo%11lo%6o%11I*o",
384 paxunread(pax, ap, state.tmp.buffer, CPIO_HEADER);
440 sfsprintf(state.tmp.buffer, state.tmp.buffersize, "%0.6lo%0.6lo%0.6lo%0.6lo%0.6lo%0.6lo%0.6lo%0.6lo%0.11lo%0.6o%0.11I*o",
452 paxwrite(pax, ap, state.tmp.buffer, CPIO_HEADER);
490 if (f->st->st_size == f->linkpathsize && paxread(pax, ap, state.tmp.buffer, (off_t)0, n = f->st->st_size + 6, 0) > 0)
492 paxunread(pax, ap, state.tmp.buffer,
[all...]
H A Dpax-slt.c55 char buf[LABEL_MAX]; /* header buffer */
390 n = paxread(pax, ap, state.tmp.buffer, (off_t)0, (off_t)state.buffersize, 0);
397 n = paxread(pax, ap, state.tmp.buffer, (off_t)0, m, 1);
422 f->id = strcpy(state.tmp.buffer, f->id);
423 f->name = strcpy(state.tmp.buffer + NAME_SIZE + 1, f->name);
452 if ((k = ((unsigned char*)state.tmp.buffer)[0] << 8 | ((unsigned char*)state.tmp.buffer)[1]) != n)
461 if (state.tmp.buffer[i] == '^')
467 for (j = i; j < n && state.tmp.buffer[j] == '^'; j++);
484 if (sfsscanf(&state.tmp.buffer[
[all...]
/ast/src/lib/libsum/
H A Dsum-sha2.c7 * with bitcount[] order reversed to allow a single noalias buffer copy
452 sha2_byte buffer[SHA256_BLOCK_LENGTH]; member in struct:Sha256_s
497 W256 = (sha2_word32*)sha->buffer;
555 W256 = (sha2_word32*)sha->buffer;
641 /* Calculate how much free space is available in the buffer */
645 /* Fill the buffer completely and process it */
646 MEMCPY_BCOPY(&sha->buffer[usedspace], data, freespace);
650 SHA256_Transform(sha, (sha2_word32*)sha->buffer);
652 /* The buffer is not yet full */
653 MEMCPY_BCOPY(&sha->buffer[usedspac
821 sha2_byte buffer[SHA512_BLOCK_LENGTH]; member in struct:Sha512_s
[all...]
/ast/src/cmd/dsslib/netflow/
H A Dnetflow.c171 r->value.buffer.data = pp->data + fp->offset;
172 r->value.buffer.size = fp->size;
197 r->value.buffer.data = rp->dst_addrv6;
198 r->value.buffer.size = sizeof(rp->dst_addrv6) - 1;
211 r->value.buffer.data = rp->dst_addrv6;
212 r->value.buffer.size = sizeof(rp->dst_addrv6) - 1;
238 r->value.buffer.data = rp->dst_addrv6;
239 r->value.buffer.size = sizeof(rp->dst_addrv6);
252 r->value.buffer.data = rp->dst_addrv6;
253 r->value.buffer
[all...]
/ast/src/lib/libcs/
H A Dmsglist.c33 * print buffer s,n on sp
39 buffer(register Sfio_t* sp, register char* s, int n) function
158 else r += buffer(sp, p, (ap)->number);
175 r += buffer(sp, dp->d_name, i);
223 r += buffer(sp, p, msg->ret.number);
234 if (p = (ap++)->pointer) r += buffer(sp, p, strlen(p));
244 r += buffer(sp, p, strlen(p));

Completed in 61 milliseconds

12345