Searched refs:buffer (Results 76 - 100 of 1691) sorted by path

1234567891011>>

/freebsd-11-stable/contrib/binutils/opcodes/
H A Dsparc-dis.c454 bfd_byte buffer[4]; local
486 (*info->read_memory_func) (memaddr, buffer, sizeof (buffer), info);
502 insn = getword (buffer);
942 (memaddr - 4, buffer, sizeof (buffer), info);
946 prev_insn = getword (buffer);
962 (memaddr - 8, buffer, sizeof (buffer), info);
966 prev_insn = getword (buffer);
[all...]
H A Dspu-dis.c94 bfd_byte buffer[4]; local
102 status = (*info->read_memory_func) (memaddr, buffer, 4, info);
109 insn = bfd_getb32 (buffer);
/freebsd-11-stable/contrib/blacklist/test/
H A Dsrvtest.c65 char buffer[256]; local
67 memset(buffer, 0, sizeof(buffer));
69 if ((n = read(afd, buffer, sizeof(buffer))) == -1)
71 buffer[sizeof(buffer) - 1] = '\0';
72 printf("%s: sending %d %s\n", getprogname(), afd, buffer);
74 blacklist_r(b, 1, afd, buffer);
76 blacklist(1, afd, buffer);
85 char buffer[256]; local
[all...]
/freebsd-11-stable/contrib/bmake/
H A Dbuf.c97 #define BUF_DEF_SIZE 256 /* Default buffer size */
102 * Extend buffer for single byte add.
110 bp->buffer = bmake_realloc(bp->buffer, bp->size);
116 * Add a number of bytes to the buffer.
134 bp->buffer = bmake_realloc(bp->buffer, bp->size);
137 ptr = bp->buffer + count;
163 return (bp->buffer);
169 * Throw away bytes in a buffer
[all...]
H A Dbuf.h86 int size; /* Current size of the buffer */
87 int count; /* Number of bytes in buffer */
88 Byte *buffer; /* The buffer itself (zero terminated) */ member in struct:Buffer
96 /* Buf_AddByte adds a single byte to a buffer. */
102 _ptr = (bp)->buffer + _count; \
H A Dstr.c136 * Memory containing the actual words in *buffer.
141 brk_string(const char *str, int *store_argc, Boolean expand, char **buffer) argument
156 *buffer = bmake_malloc(curlen = len);
170 for (p = str, start = t = *buffer;; ++p) {
227 free(*buffer);
228 *buffer = NULL;
/freebsd-11-stable/contrib/bsnmp/snmp_mibII/
H A DmibII.c553 * Allocate maximum memory for a buffer and later reallocate
562 irr.ifr_buffer.buffer = ifp->alias;
569 } else if (irr.ifr_buffer.buffer == NULL) {
1286 syslog(LOG_ERR, "sysctl buffer: %m");
/freebsd-11-stable/contrib/dialog/
H A Darrows.c168 char buffer[80]; local
192 (void) sprintf(buffer, "%d%%", percent);
194 (void) waddstr(win, buffer);
195 if ((len = dlg_count_columns(buffer)) < 4) {
H A Dbuttons.c34 center_label(char *buffer, int longest, const char *label) argument
39 *buffer = 0;
44 sprintf(buffer, "%*s", left, " ");
46 strcat(buffer, label);
48 sprintf(buffer + strlen(buffer), "%*s", right, " ");
341 char *buffer; local
358 * Allocate a buffer big enough for any label.
368 buffer = dlg_malloc(char, need);
369 assert_ptr(buffer, "dlg_draw_button
[all...]
H A Dcalendar.c443 char buffer[MAX_LEN]; local
672 size_t used = strftime(buffer,
673 sizeof(buffer) - 1,
676 if (used == 0 || *buffer == '\0')
677 DefaultFormat(buffer, current);
680 DefaultFormat(buffer, current);
682 dlg_add_result(buffer);
H A Ddialog.c1647 init_result(char *buffer) argument
1658 dialog_vars.input_result = buffer;
H A Deditbox.c348 char *input, *buffer; local
362 buffer = dlg_malloc(char, max_len + 1);
363 assert_ptr(buffer, "dlg_editbox");
614 strncpy(buffer, input, max_len - 1)[max_len - 1] = '\0';
615 edit = dlg_edit_string(buffer, &chr_offset, key, fkey, FALSE);
619 if (strcmp(input, buffer)) {
621 THIS_ROW = dlg_strclone(buffer);
705 * the output buffer.
715 free(buffer);
H A Dguage.c89 read_data(char *buffer, FILE *fp) argument
95 } else if (fgets(buffer, MY_LEN, fp) != 0) {
96 DLG_TRACE(("read_data:%s", buffer));
97 buffer[MY_LEN] = '\0';
98 dlg_trim_string(buffer);
107 decode_percent(char *buffer) argument
110 long value = strtol(buffer, &tmp, 10);
H A Drangebox.c88 char buffer[80]; local
92 sprintf(buffer, "%*d", data->value_len, data->current);
93 buffer[data->value_col] = (char) chr;
94 check = strtol(buffer, &next, 10);
219 char buffer[MAX_LEN]; local
409 sprintf(buffer, "%d", cur_value);
410 dlg_add_result(buffer);
H A Dtextbox.c134 /* Allocate space for read buffer */
165 /* Allocate space for read buffer */
173 /* Allocate space for read buffer */
203 find_first(MY_OBJ * obj, char *buffer, long length) argument
209 if (buffer[length] == '\n') {
234 /* Allocate space for read buffer */
276 if (obj->buf[obj->in_buf] == '\0') { /* Either end of file or end of buffer reached */
280 /* We've reached end of buffer, but not end of file yet, so
281 * read next part of file into buffer
330 /* Either beginning of buffer o
[all...]
H A Dtimebox.c188 char buffer[MAX_LEN]; local
403 used = strftime(buffer,
404 sizeof(buffer) - 1,
407 if (used == 0 || *buffer == '\0')
408 DefaultFormat(buffer, hr_box);
411 DefaultFormat(buffer, hr_box);
413 dlg_add_result(buffer);
H A Dtrace.c81 char buffer[80]; local
89 buffer[0] = (char) ch;
90 buffer[1] = '\0';
99 buffer[0] = '.';
100 buffer[1] = '\0';
106 wcsrtombs(buffer, &ucp, sizeof(buffer), &state);
110 fputs(buffer, myFP);
H A Dutil.c278 char buffer[2]; local
281 buffer[0] = (char) ch;
282 return (int) write(fd, buffer, (size_t) 1);
1041 char buffer[5]; local
1086 (void) sprintf(buffer, "%d%%", percent);
1087 (void) waddstr(win, buffer);
1088 if ((len = (int) strlen(buffer)) < 4) {
2363 * Returns the nominal maximum buffer size.
2375 * Free storage used for the result buffer.
2389 * Setup a fixed-buffer fo
[all...]
/freebsd-11-stable/contrib/diff/lib/
H A Dc-stack.c153 char buffer[SIGSTKSZ]; member in union:__anon962
237 st.ss_sp = alternate_signal_stack.buffer;
238 st.ss_size = sizeof alternate_signal_stack.buffer;
/freebsd-11-stable/contrib/diff/src/
H A Danalyze.c825 /* Scan both files, a buffer at a time, looking for a difference. */
836 cmp->file[f].buffer = xrealloc (cmp->file[f].buffer, buffer_size);
840 /* Read a buffer's worth from both files. */
848 || memcmp (cmp->file[0].buffer,
849 cmp->file[1].buffer,
1038 if (cmp->file[0].buffer != cmp->file[1].buffer)
1039 free (cmp->file[0].buffer);
1040 free (cmp->file[1].buffer);
[all...]
H A Dcmp.c67 static word *buffer[2];
352 buffer[0] = xmalloc (2 * sizeof (word) * words_per_buffer);
353 buffer[1] = buffer[0] + words_per_buffer;
368 using `buffer[0]' and `buffer[1]'.
381 word *buffer0 = buffer[0];
382 word *buffer1 = buffer[1];
573 word l; /* One word from first buffer. */
574 word const *l0, *l1; /* Pointers into each buffer
66 static word *buffer[2]; variable
[all...]
H A Ddiff.h241 word *buffer;
243 /* Allocated size of buffer, in bytes. Always a multiple of
244 sizeof *buffer. */
247 /* Number of valid bytes now in the buffer. */
301 /* The file buffer, considered as an array of bytes rather than
303 #define FILE_BUFFER(f) ((char *) (f)->buffer)
238 word *buffer; member in struct:file_data
H A Dio.c71 /* Read a block of data into a file buffer, checking for EOF and error. */
107 current->buffer = xmalloc (current->bufsize);
114 current->buffer = xmalloc (current->bufsize);
139 return binary_file_p (current->buffer, buffered);
167 plus word-alignment since we want the buffer word-aligned. */
177 current->buffer = xrealloc (current->buffer, cc);
193 growing the buffer as needed. */
204 current->buffer = xrealloc (current->buffer, curren
[all...]
H A Dsdiff.c354 char *buffer;
362 lf->bufpos = lf->buffer = lf->buflim = xmalloc (SDIFF_BUFSIZE + 1);
366 /* Fill an exhausted line_filter buffer from its INFILE */
370 size_t s = ck_fread (lf->buffer, SDIFF_BUFSIZE, lf->infile);
371 lf->bufpos = lf->buffer;
372 lf->buflim = lf->buffer + s;
424 /* Snarf a line into a buffer. Return EOF if EOF, 0 if error, 1 if OK. */
426 lf_snarf (struct line_filter *lf, char *buffer, size_t bufsize)
435 memcpy (buffer, start, s);
438 buffer[
353 char *buffer; member in struct:line_filter
425 lf_snarf(struct line_filter *lf, char *buffer, size_t bufsize) argument
[all...]
/freebsd-11-stable/contrib/dma/
H A Dcrypto.c260 char buffer[BUF_SIZE], ascii_digest[33]; local
266 memset(buffer, 0, sizeof(buffer));
272 if (read_remote(fd, sizeof(buffer), buffer) != 3) {
281 base64_decode(buffer + 4, temp);
293 snprintf(buffer, BUF_SIZE, "%s %s", login, ascii_digest);
296 len = base64_encode(buffer, strlen(buffer), &temp);

Completed in 410 milliseconds

1234567891011>>