Searched refs:buffer (Results 26 - 50 of 1321) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/xz/src/liblzma/simple/
H A Dpowerpc.c20 uint8_t *buffer, size_t size) variable
25 if ((buffer[i] >> 2) == 0x12
26 && ((buffer[i + 3] & 3) == 1)) {
28 const uint32_t src = ((buffer[i + 0] & 3) << 24)
29 | (buffer[i + 1] << 16)
30 | (buffer[i + 2] << 8)
31 | (buffer[i + 3] & (~3));
39 buffer[i + 0] = 0x48 | ((dest >> 24) & 0x03);
40 buffer[i + 1] = (dest >> 16);
41 buffer[
[all...]
H A Darmthumb.c20 uint8_t *buffer, size_t size) variable
24 if ((buffer[i + 1] & 0xF8) == 0xF0
25 && (buffer[i + 3] & 0xF8) == 0xF8) {
26 uint32_t src = ((buffer[i + 1] & 0x7) << 19)
27 | (buffer[i + 0] << 11)
28 | ((buffer[i + 3] & 0x7) << 8)
29 | (buffer[i + 2]);
40 buffer[i + 1] = 0xF0 | ((dest >> 19) & 0x7);
41 buffer[i + 0] = (dest >> 11);
42 buffer[
[all...]
/freebsd-10.0-release/lib/libgssapi/
H A Dutils.h29 #define _gss_buffer_zero(buffer) \
30 do { (buffer)->value = NULL; (buffer)->length = 0; } while(0)
/freebsd-10.0-release/tools/tools/vxge/
H A Dvxge_info.c298 char *buffer = NULL; local
303 buffer = (char *) vxge_mem_alloc(bufsize);
304 if (!buffer) {
309 *buffer = vxge_hal_mgmt_reg_type_common;
311 ifr.ifr_data = (caddr_t) buffer;
318 vxge_print_registers(buffer);
321 vxge_mem_free(buffer);
332 char *buffer = NULL; local
336 buffer = (char *) vxge_mem_alloc(bufsize);
337 if (!buffer) {
365 char *buffer = NULL; local
397 char *buffer = NULL; local
431 char *buffer = NULL; local
471 char *buffer = NULL; local
506 u32 buffer, no_of_vpath = 0; local
527 char *buffer = NULL; local
561 char *buffer = NULL; local
593 char *buffer = NULL; local
627 char *buffer = NULL; local
661 char *buffer = NULL; local
691 char *buffer = NULL; local
724 char *buffer = NULL; local
763 vxge_bw_info_t buffer; local
786 vxge_bw_info_t buffer; local
807 vxge_port_info_t buffer; local
827 vxge_port_info_t buffer; local
[all...]
/freebsd-10.0-release/crypto/openssh/
H A Dbufbn.c50 #include "buffer.h"
55 * Stores an BIGNUM in the buffer with a 2-byte msb first bit count, followed
59 buffer_put_bignum_ret(Buffer *buffer, const BIGNUM *value) argument
76 /* Store the number of bits in the buffer in two bytes, msb first. */
78 buffer_append(buffer, msg, 2);
80 buffer_append(buffer, buf, oi);
89 buffer_put_bignum(Buffer *buffer, const BIGNUM *value) argument
91 if (buffer_put_bignum_ret(buffer, value) == -1)
92 fatal("buffer_put_bignum: buffer error");
96 * Retrieves a BIGNUM from the buffer
99 buffer_get_bignum_ret(Buffer *buffer, BIGNUM *value) argument
133 buffer_get_bignum(Buffer *buffer, BIGNUM *value) argument
143 buffer_put_bignum2_ret(Buffer *buffer, const BIGNUM *value) argument
181 buffer_put_bignum2(Buffer *buffer, const BIGNUM *value) argument
188 buffer_get_bignum2_ret(Buffer *buffer, BIGNUM *value) argument
219 buffer_get_bignum2(Buffer *buffer, BIGNUM *value) argument
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/
H A DErrno.cpp41 char buffer[MaxErrStrLen]; local
42 buffer[0] = '\0';
49 // which may not use the buffer supplied.
50 str = strerror_r(errnum,buffer,MaxErrStrLen-1);
52 strerror_r(errnum,buffer,MaxErrStrLen-1);
53 str = buffer;
57 strerror_s(buffer, MaxErrStrLen - 1, errnum);
58 str = buffer;
62 // the buffer as fast as possible to minimize impact
/freebsd-10.0-release/contrib/ncurses/ncurses/widechar/
H A Dlib_get_wch.c47 #define count_mbytes(buffer,length,state) mblen(buffer,length)
48 #define check_mbytes(wch,buffer,length,state) \
49 (int) mbtowc(&wch, buffer, length)
53 #define count_mbytes(buffer,length,state) mbrlen(buffer,length,&state)
54 #define check_mbytes(wch,buffer,length,state) \
55 (int) mbrtowc(&wch, buffer, length, &state)
65 char buffer[(MB_LEN_MAX * 9) + 1]; /* allow some redundant shifts */ local
84 T(("reading %d of %d", (int) count + 1, (int) sizeof(buffer)));
[all...]
/freebsd-10.0-release/contrib/opie/
H A Dopiegen.c28 char buffer[OPIE_CHALLENGE_MAX+1]; local
42 if (!opiereadpass(buffer, sizeof(buffer)-1, 1))
48 ep = buffer + sizeof(buffer) - 1;
49 for (i = 1, ap = buffer; (i < argc) && (ap < ep); i++) {
56 syslog(LOG_DEBUG, "opiegen: challenge is +%s+\n", buffer);
59 buffer[sizeof(buffer)-1] = 0;
67 switch (result = opiegenerator(buffer, secre
[all...]
/freebsd-10.0-release/usr.sbin/pkg_install/lib/
H A Dpkgwrap.c38 char buffer[FILENAME_MAX], *cp, *verstr; local
46 cp = fgets(buffer, 256, f);
70 bcopy(cp, buffer, strlen(cp) + 1);
71 cp = strpbrk(buffer, SEPARATORS);
74 if (!isdir(buffer))
81 strlcat(buffer, "/", sizeof(buffer));
82 strlcat(buffer, cp, sizeof(buffer));
84 execve(buffer, arg
[all...]
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dload_http.c15 * Because the URL can be included twice into the buffer, once as the
16 * full path for the "GET" and once as the "Host:", the buffer it is
34 char *s, *t, *u, buffer[LOAD_BUFSIZE], *myurl; local
52 avail = sizeof(buffer);
53 error = snprintf(buffer, avail, "GET %s HTTP/1.0\r\n", url);
77 if (strlen(s) + strlen(buffer) + 10 > sizeof(buffer)) {
87 error = snprintf(buffer + strlen(buffer), avail, "Host: %s\r\n\r\n", s);
109 len = strlen(buffer);
[all...]
/freebsd-10.0-release/contrib/pf/libevent/
H A Dbuffer.c63 struct evbuffer *buffer; local
65 buffer = calloc(1, sizeof(struct evbuffer));
67 return (buffer);
71 evbuffer_free(struct evbuffer *buffer) argument
73 if (buffer->orig_buffer != NULL)
74 free(buffer->orig_buffer);
75 free(buffer);
79 * This is a destructive add. The data from one buffer moves into
80 * the other buffer.
84 (x)->buffer
131 char *buffer; local
204 evbuffer_readline(struct evbuffer *buffer) argument
405 evbuffer_write(struct evbuffer *buffer, int fd) argument
432 evbuffer_find(struct evbuffer *buffer, const u_char *what, size_t len) argument
450 evbuffer_setcb(struct evbuffer *buffer, void (*cb)(struct evbuffer *, size_t, size_t, void *), void *cbarg) argument
[all...]
/freebsd-10.0-release/tools/regression/pipe/
H A Dpipe-fstatbug.c42 char buffer[32768], buffer2[32768]; local
56 write(desc[1], &buffer, 145);
58 write(desc[1], &buffer, 2048);
60 write(desc[1], &buffer, 4096);
62 write(desc[1], &buffer, 8191);
64 write(desc[1], &buffer, 8192);
/freebsd-10.0-release/contrib/libyaml/tests/
H A Dtest-reader.c191 else if (memcmp(parser.buffer.start, bom_original, check) != 0) {
192 printf("- (value '%s' does not equal to the original value '%s')\n", parser.buffer.start, bom_original);
214 unsigned char *buffer = malloc(3+LONG*2); local
215 assert(buffer);
217 buffer[k++] = '\xef';
218 buffer[k++] = '\xbb';
219 buffer[k++] = '\xbf';
222 buffer[k++] = '\xd0';
223 buffer[k++] = '\x90';
226 buffer[
286 unsigned char *buffer = malloc(2+LONG*2); local
[all...]
/freebsd-10.0-release/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...]
/freebsd-10.0-release/contrib/gdb/gdb/gdbserver/
H A Dtarget.c74 one buffer is ever pending by making BUFFER static. */
75 static char *buffer = 0; local
78 if (buffer != NULL)
79 free (buffer);
81 buffer = malloc (len);
82 memcpy (buffer, myaddr, len);
83 check_mem_write (memaddr, buffer, len);
84 res = (*the_target->write_memory) (memaddr, buffer, len);
85 free (buffer);
86 buffer
[all...]
/freebsd-10.0-release/crypto/heimdal/lib/gssapi/mech/
H A Dmech_locl.h67 #define _mg_buffer_zero(buffer) \
69 if (buffer) { \
70 (buffer)->value = NULL; \
71 (buffer)->length = 0; \
/freebsd-10.0-release/crypto/heimdal/lib/krb5/
H A Dstore-int.c37 _krb5_put_int(void *buffer, unsigned long value, size_t size) argument
39 unsigned char *p = buffer;
49 _krb5_get_int(void *buffer, unsigned long *value, size_t size) argument
51 unsigned char *p = buffer;
/freebsd-10.0-release/libexec/tftpd/
H A Dtftp-file.h30 size_t write_file(char *buffer, int count);
34 size_t read_file(char *buffer, int count);
H A Dtftp-file.c54 convert_from_net(char *buffer, size_t count) argument
66 convbuffer[n++] = buffer[i];
67 gotcr = (buffer[i] == '\r');
72 if (buffer[i] == '\0') {
78 if (buffer[i] == '\n') {
96 convbuffer[n++] = buffer[i];
97 gotcr = (buffer[i] == '\r');
105 convert_to_net(char *buffer, size_t count, int init) argument
124 buffer[i++] = newline;
141 buffer[
193 write_file(char *buffer, int count) argument
233 read_file(char *buffer, int count) argument
[all...]
/freebsd-10.0-release/contrib/libyaml/src/
H A Dwriter.c28 * Flush the output buffer.
40 emitter->buffer.last = emitter->buffer.pointer;
41 emitter->buffer.pointer = emitter->buffer.start;
43 /* Check if the buffer is empty. */
45 if (emitter->buffer.start == emitter->buffer.last) {
49 /* If the output encoding is UTF-8, we don't need to recode the buffer. */
54 emitter->buffer
[all...]
/freebsd-10.0-release/usr.sbin/bluetooth/hccontrol/
H A Dutil.c122 hci_hmode2str(int mode, char *buffer, int size) argument
130 if (buffer != NULL && size > 0) {
133 memset(buffer, 0, size);
135 int len = strlen(buffer);
140 strncat(buffer, t[n], size - len);
144 return (buffer);
248 hci_features2str(uint8_t *features, char *buffer, int size) argument
282 if (buffer != NULL && size > 0) {
285 memset(buffer, 0, size);
290 len0 = strlen(buffer);
389 static char buffer[MAXHOSTNAMELEN]; local
[all...]
/freebsd-10.0-release/contrib/gcclibs/libcpp/
H A Dlex.c83 add_line_note (cpp_buffer *buffer, const uchar *pos, unsigned int type) argument
85 if (buffer->notes_used == buffer->notes_cap)
87 buffer->notes_cap = buffer->notes_cap * 2 + 200;
88 buffer->notes = XRESIZEVEC (_cpp_line_note, buffer->notes,
89 buffer->notes_cap);
92 buffer->notes[buffer
102 cpp_buffer *buffer; local
254 cpp_buffer *buffer = pfile->buffer; local
316 cpp_buffer *buffer = pfile->buffer; local
374 cpp_buffer *buffer = pfile->buffer; local
388 cpp_buffer *buffer = pfile->buffer; local
461 cpp_buffer *buffer = pfile->buffer; local
662 unsigned char *buffer; local
818 cpp_buffer *buffer = pfile->buffer; local
876 cpp_buffer *buffer; local
1242 utf8_to_ucn(unsigned char *buffer, const unsigned char *name) argument
1279 cpp_spell_token(cpp_reader *pfile, const cpp_token *token, unsigned char *buffer, bool forstring) argument
1399 unsigned char buffer[10]; local
[all...]
/freebsd-10.0-release/usr.bin/dtc/
H A Ddtb.cc56 name.push_to_buffer(buffer);
58 buffer.push_back(0);
64 buffer.push_back(v);
70 while (buffer.size() % 4 != 0)
72 buffer.push_back(0);
74 push_big_endian(buffer, v);
80 while (buffer.size() % 8 != 0)
82 buffer.push_back(0);
84 push_big_endian(buffer, v);
91 write(fd, buffer
[all...]
/freebsd-10.0-release/contrib/llvm/lib/Support/Unix/
H A DTimeValue.inc25 char buffer[32];
30 asctime_r(localtime(&ourTime), buffer);
32 ::asctime_r(::localtime(&ourTime), buffer);
35 std::string result(buffer);
/freebsd-10.0-release/contrib/opie/libopie/
H A Dparsechallenge.c36 int __opieparsechallenge FUNCTION((buffer, algorithm, sequence, seed, exts), char *buffer AND int *algorithm AND int *sequence AND char **seed AND int *exts)
40 if (!(c = strchr(buffer, ' ')))
46 for (a = algorithms; a->name && strncmp(buffer, a->name, (int)(c - buffer)); a++);
60 buffer = c;
64 int i = (int)(c - buffer);
70 *seed = buffer;

Completed in 225 milliseconds

1234567891011>>