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

1234567891011>>

/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/bundle-terminator/
H A Dbundle.cxx28 Foo() { buffer = malloc(100); }
29 ~Foo() { free(buffer); }
30 void* get() { return buffer; }
32 void* buffer; member in class:Foo
/macosx-10.10/OpenSSH-189/openssh/
H A Dbuffer.c1 /* $OpenBSD: buffer.c,v 1.32 2010/02/09 03:56:28 djm Exp $ */
24 #include "buffer.h"
31 /* Initializes the buffer structure. */
34 buffer_init(Buffer *buffer) argument
38 buffer->alloc = 0;
39 buffer->buf = xmalloc(len);
40 buffer->alloc = len;
41 buffer->offset = 0;
42 buffer->end = 0;
45 /* Frees any memory used for the buffer
48 buffer_free(Buffer *buffer) argument
63 buffer_clear(Buffer *buffer) argument
72 buffer_append(Buffer *buffer, const void *data, u_int len) argument
80 buffer_compact(Buffer *buffer) argument
103 buffer_append_space(Buffer *buffer, u_int len) argument
144 buffer_check_alloc(Buffer *buffer, u_int len) argument
163 buffer_len(const Buffer *buffer) argument
171 buffer_get_ret(Buffer *buffer, void *buf, u_int len) argument
184 buffer_get(Buffer *buffer, void *buf, u_int len) argument
193 buffer_consume_ret(Buffer *buffer, u_int bytes) argument
204 buffer_consume(Buffer *buffer, u_int bytes) argument
213 buffer_consume_end_ret(Buffer *buffer, u_int bytes) argument
222 buffer_consume_end(Buffer *buffer, u_int bytes) argument
231 buffer_ptr(const Buffer *buffer) argument
239 buffer_dump(const Buffer *buffer) argument
[all...]
H A Dbufaux.c54 #include "buffer.h"
59 * Returns integers from the buffer (msb first).
63 buffer_get_short_ret(u_short *ret, Buffer *buffer) argument
67 if (buffer_get_ret(buffer, (char *) buf, 2) == -1)
74 buffer_get_short(Buffer *buffer) argument
78 if (buffer_get_short_ret(&ret, buffer) == -1)
79 fatal("buffer_get_short: buffer error");
85 buffer_get_int_ret(u_int *ret, Buffer *buffer) argument
89 if (buffer_get_ret(buffer, (char *) buf, 4) == -1)
97 buffer_get_int(Buffer *buffer) argument
108 buffer_get_int64_ret(u_int64_t *ret, Buffer *buffer) argument
120 buffer_get_int64(Buffer *buffer) argument
134 buffer_put_short(Buffer *buffer, u_short value) argument
143 buffer_put_int(Buffer *buffer, u_int value) argument
152 buffer_put_int64(Buffer *buffer, u_int64_t value) argument
169 buffer_get_string_ret(Buffer *buffer, u_int *length_ptr) argument
200 buffer_get_string(Buffer *buffer, u_int *length_ptr) argument
210 buffer_get_cstring_ret(Buffer *buffer, u_int *length_ptr) argument
233 buffer_get_cstring(Buffer *buffer, u_int *length_ptr) argument
243 buffer_get_string_ptr_ret(Buffer *buffer, u_int *length_ptr) argument
262 buffer_get_string_ptr(Buffer *buffer, u_int *length_ptr) argument
275 buffer_put_string(Buffer *buffer, const void *buf, u_int len) argument
281 buffer_put_cstring(Buffer *buffer, const char *s) argument
292 buffer_get_char_ret(char *ret, Buffer *buffer) argument
302 buffer_get_char(Buffer *buffer) argument
315 buffer_put_char(Buffer *buffer, int value) argument
[all...]
/macosx-10.10/cups-408/cups/cups/
H A Dattr.c151 char *buffer, /* I - String buffer */
152 size_t bufsize) /* I - Size of string buffer */
154 char *bufptr; /* Pointer into buffer */
157 if (!make_and_model || !buffer || bufsize < 1)
159 if (buffer)
160 *buffer = '\0';
178 strlcpy(buffer, make_and_model + 1, bufsize);
180 if ((bufptr = strrchr(buffer, ')')) != NULL)
189 snprintf(buffer, bufsiz
149 _ppdNormalizeMakeAndModel( const char *make_and_model, char *buffer, size_t bufsize) argument
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/gssapi/krb5/
H A Drelease_buffer.c38 gss_buffer_t buffer
42 free (buffer->value);
43 buffer->value = NULL;
44 buffer->length = 0;
/macosx-10.10/Heimdal-398.1.2/lib/gssapi/mech/
H A Dgss_release_buffer.c33 gss_buffer_t buffer)
37 if (buffer->value)
38 free(buffer->value);
39 _mg_buffer_zero(buffer);
32 gss_release_buffer(OM_uint32 *minor_status, gss_buffer_t buffer) argument
/macosx-10.10/bind9-45.101/bind9/lib/isc/
H A Dbufferlist.c26 #include <isc/buffer.h>
32 isc_buffer_t *buffer; local
38 buffer = ISC_LIST_HEAD(*bl);
39 while (buffer != NULL) {
40 REQUIRE(ISC_BUFFER_VALID(buffer));
41 length += isc_buffer_usedlength(buffer);
42 buffer = ISC_LIST_NEXT(buffer, link);
50 isc_buffer_t *buffer; local
56 buffer
[all...]
/macosx-10.10/ntp-92/lib/isc/
H A Dbufferlist.c26 #include <isc/buffer.h>
32 isc_buffer_t *buffer; local
38 buffer = ISC_LIST_HEAD(*bl);
39 while (buffer != NULL) {
40 REQUIRE(ISC_BUFFER_VALID(buffer));
41 length += isc_buffer_usedlength(buffer);
42 buffer = ISC_LIST_NEXT(buffer, link);
50 isc_buffer_t *buffer; local
56 buffer
[all...]
/macosx-10.10/CrackLib-37765/cracklib27/util/
H A Dtestlib.c15 char buffer[STRINGSIZE]; local
19 while (fgets (buffer, STRINGSIZE, stdin))
23 Chop(buffer);
25 val = FascistCheck(buffer, CRACKLIB_DICTPATH);
31 printf ("%s: %s\n", buffer, val);
H A Dteststr.c16 char buffer[STRINGSIZE]; local
26 while (fgets (buffer, STRINGSIZE, stdin))
30 Chop(buffer);
31 i = FindPW(pwp, buffer);
32 printf ("%s: %lu%s\n", buffer, i, (i==PW_WORDS(pwp) ? " **** NOT FOUND ****" : ""));
H A Dpacker.c19 char buffer[STRINGSIZE]; local
35 for (readed = 0; fgets(buffer, STRINGSIZE, stdin); /* nothing */)
39 buffer[MAXWORDLEN - 1] = '\0';
41 Chop(buffer);
43 if (!buffer[0])
49 if (PutPW(pwp, buffer))
51 fprintf(stderr, "error: PutPW '%s' line %luy\n", buffer, readed);
/macosx-10.10/llvmCore-3425.0.34/utils/
H A DDSAclean.py21 buffer = input.readline() variable
22 while buffer != '':
23 if re.compile("label(\s*)=(\s*)\"\s%tmp(.\w*)*(\s*)\"").search(buffer):
25 buffer = input.readline() variable
28 output.write(buffer)
30 buffer = input.readline() variable
H A DDSAextract.py59 buffer = input.readline() variable
60 while buffer != '':
62 if not arrowexp.search(buffer):
67 if regexp.search(buffer):
68 node_set |= set([re.split('\s+',buffer,2)[1]])
70 buffer = input.readline() variable
86 buffer = input.readline() variable
87 while buffer != '':
95 if arrowexp.search(buffer):
98 nodes = arrowexp.split(buffer)
110 buffer = input.readline() variable
[all...]
/macosx-10.10/tcl-105/tcl_ext/expect/expect/example/
H A Dread1char8 send_user $expect_out(buffer)
/macosx-10.10/ncurses-44/ncurses/ncurses/tinfo/
H A Dcomp_expand.c55 static char *buffer; local
66 if (buffer != 0) {
67 FreeAndNull(buffer);
73 if (buffer == 0 || need > length) {
74 if ((buffer = typeRealloc(char, length = need, buffer)) == 0)
81 buffer[bufp++] = *str++;
93 sprintf(buffer + bufp, "{%d}", str[1]);
94 bufp += strlen(buffer + bufp);
97 buffer[buf
[all...]
/macosx-10.10/postfix-255/postfix/src/smtp/
H A Dsmtp_key.c9 /* char *smtp_key_prefix(buffer, delim_na, iterator, context_flags)
10 /* VSTRING *buffer;
32 /* .IP buffer
114 static void smtp_key_append_na(VSTRING *buffer, const char *delim_na) argument
117 VSTRING_ADDCH(buffer, delim_na[1]);
118 VSTRING_ADDCH(buffer, delim_na[0]);
123 static void smtp_key_append_str(VSTRING *buffer, const char *str, argument
127 smtp_key_append_na(buffer, delim_na);
129 base64_encode_opt(buffer, str, strlen(str), BASE64_FLAG_APPEND);
130 VSTRING_ADDCH(buffer, delim_n
138 smtp_key_append_uint(VSTRING *buffer, unsigned num, const char *delim_na) argument
146 smtp_key_prefix(VSTRING *buffer, const char *delim_na, SMTP_ITERATOR *iter, int flags) argument
[all...]
/macosx-10.10/WTF-7600.1.24/wtf/
H A DOSRandomSource.h31 // This function attempts to fill buffer with randomness from the operating
32 // system. If insufficient randomness is available, the buffer will be
35 void cryptographicallyRandomValuesFromOS(unsigned char* buffer, size_t length);
/macosx-10.10/curl-83.1.2/curl/src/
H A Dtool_getpass.h33 char* getpass_r(const char *prompt, char* buffer, size_t buflen);
/macosx-10.10/libiconv-42/libiconv/srclib/
H A Dxreadlink.c64 /* The initial buffer size for the link value. A power of 2
68 /* Allocate the initial buffer on the stack. This way, in the common
73 char *buffer = initial_buf; local
78 /* Attempt to read the link into the current buffer. */
79 ssize_t link_length = readlink (filename, buffer, buf_size);
83 if (buffer != initial_buf)
86 free (buffer);
94 buffer[link_length++] = '\0';
97 if (buffer == initial_buf)
99 buffer
[all...]
/macosx-10.10/Security-57031.1.35/Security/include/security_cryptkit/
H A Dmutils.m33 char buffer[PHRASELEN];
36 getpassword([prompt cString], buffer);
37 if (buffer[0] == 0) return nil;
38 result = [NSString stringWithCString:buffer];
39 bzero(buffer, PHRASELEN);
/macosx-10.10/Security-57031.1.35/Security/libsecurity_cryptkit/lib/
H A Dmutils.m33 char buffer[PHRASELEN];
36 getpassword([prompt cString], buffer);
37 if (buffer[0] == 0) return nil;
38 result = [NSString stringWithCString:buffer];
39 bzero(buffer, PHRASELEN);
/macosx-10.10/dyld-353.2.1/unit-tests/test-cases/big-stack/
H A Dmain.c40 char buffer[32*1024*1024]; local
41 keepAlive = buffer;
42 // only recursive if there is enough room for next buffer
43 intptr_t freeStackSpace = (buffer - sizeof(buffer)) - (stackStart - stackSize);
44 //fprintf(stderr, "&buffer=%p, stackStart=%p, freeStackSpace=0x%lx\n", buffer, stackStart, freeStackSpace);
45 if ( freeStackSpace < sizeof(buffer) )
/macosx-10.10/pcre-7/pcre/
H A Dpcre_ord2utf8.c60 buffer pointer to buffer for result - at least 6 bytes long
62 Returns: number of characters placed in the buffer
66 _pcre_ord2utf8(int cvalue, uschar *buffer) argument
72 buffer += i;
75 *buffer-- = 0x80 | (cvalue & 0x3f);
78 *buffer = _pcre_utf8_table2[i] | cvalue;
82 (void)(buffer); /* called when SUPPORT_UTF8 is not defined. */
/macosx-10.10/postfix-255/postfix/src/global/
H A Dsmtp_reply_footer.c9 /* int smtp_reply_footer(buffer, start, template, filter,
11 /* VSTRING *buffer;
22 /* .IP buffer
23 /* Result buffer. This should contain a properly formatted
32 /* appended to. This supports applications that buffer up
33 /* multiple responses in one buffer.
88 int smtp_reply_footer(VSTRING *buffer, ssize_t start, argument
105 if (start < 0 || start > VSTRING_LEN(buffer))
114 for (cp = STR(buffer) + start, end = cp + strlen(cp);;) {
119 reply_patch_undo_offs = cp + 3 - STR(buffer);
[all...]
/macosx-10.10/cups-408/cups/scheduler/
H A Dstatbuf.c4 * Status buffer routines for the CUPS scheduler.
25 * 'cupsdStatBufDelete()' - Destroy a status buffer.
29 cupsdStatBufDelete(cupsd_statbuf_t *sb) /* I - Status buffer */
49 * 'cupsdStatBufNew()' - Create a new status buffer.
52 cupsd_statbuf_t * /* O - New status buffer */
57 cupsd_statbuf_t *sb; /* New status buffer */
69 * Allocate the status buffer...
110 * 'cupsdStatBufUpdate()' - Update the status buffer.
113 char * /* O - Line from buffer, "", or NULL */
115 cupsd_statbuf_t *sb, /* I - Status buffer */
[all...]

Completed in 224 milliseconds

1234567891011>>