Searched refs:buf (Results 51 - 75 of 4444) sorted by relevance

1234567891011>>

/external/libcxx/test/std/input.output/string.streams/stringbuf/stringbuf.assign/
H A Dnonmember_swap.pass.cpp26 std::stringbuf buf; local
27 swap(buf, buf1);
28 assert(buf.str() == "testing");
33 std::stringbuf buf; local
34 swap(buf, buf1);
35 assert(buf.str() == "testing");
40 std::stringbuf buf; local
41 swap(buf, buf1);
42 assert(buf.str() == "testing");
47 std::wstringbuf buf; local
54 std::wstringbuf buf; local
61 std::wstringbuf buf; local
[all...]
/external/parameter-framework/utility/
H A DFullIo.hpp48 bool fullWrite(int fd, const void *buf, size_t count);
65 bool fullRead(int fd, void *buf, size_t count);
/external/strace/
H A Dprintmode.c11 static char buf[sizeof("S_IFSOCK|S_ISUID|S_ISGID|S_ISVTX|%o") local
19 sprintf(buf, "%#o", mode);
20 return buf;
22 s = buf + sprintf(buf, "%s%s%s%s", s,
29 s = (*buf == '|') ? buf + 1 : buf;
/external/valgrind/coregrind/m_gdbserver/
H A Dregcache.h45 void registers_to_string (char *buf);
49 void registers_from_string (const char *buf);
65 /* *mod set to True if *buf provides a new value. */
66 void supply_register (int n, const void *buf, Bool *mod);
68 /* Reads register data from buf (hex string in target byte order)
70 *mod set to True if *buf provides a new value. */
71 void supply_register_from_string (int n, const char *buf, Bool *mod);
73 /* *mod set to True if *buf provides a new value. */
74 void supply_register_by_name (const char *name, const void *buf, Bool *mod);
76 void collect_register (int n, void *buf);
[all...]
/external/zlib/src/contrib/blast/
H A Dblast.h38 typedef unsigned (*blast_in)(void *how, unsigned char **buf);
39 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
52 * The input function is invoked: len = infun(how, &buf), where buf is set by
58 * The output function is invoked: err = outfun(how, buf, len), where the bytes
59 * to be written are buf[0..len-1]. If err is not zero, then blast() returns
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-eax.c32 u8 *buf; local
46 buf = os_malloc(buf_len);
47 if (buf == NULL)
50 os_memset(buf, 0, 15);
52 buf[15] = 0;
53 os_memcpy(buf + 16, nonce, nonce_len);
54 if (omac1_aes_128(key, buf, 16 + nonce_len, nonce_mac))
57 buf[15] = 1;
58 os_memcpy(buf + 16, hdr, hdr_len);
59 if (omac1_aes_128(key, buf, 1
96 u8 *buf; local
[all...]
/external/iproute2/include/
H A Drt_names.h6 char* rtnl_rtprot_n2a(int id, char *buf, int len);
7 char* rtnl_rtscope_n2a(int id, char *buf, int len);
8 char* rtnl_rttable_n2a(__u32 id, char *buf, int len);
9 char* rtnl_rtrealm_n2a(int id, char *buf, int len);
10 char* rtnl_dsfield_n2a(int id, char *buf, int len);
18 const char *inet_proto_n2a(int proto, char *buf, int len);
19 int inet_proto_a2n(char *buf);
22 const char * ll_type_n2a(int type, char *buf, int len);
24 const char *ll_addr_n2a(unsigned char *addr, int alen, int type, char *buf, int blen);
27 const char * ll_proto_n2a(unsigned short id, char *buf, in
[all...]
/external/libselinux/src/
H A Dfgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = fgetxattr(fd, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = getxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
H A Dgetpeercon.c16 char *buf; local
21 buf = malloc(size);
22 if (!buf)
24 memset(buf, 0, size);
26 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
30 newbuf = realloc(buf, size);
34 buf = newbuf;
35 memset(buf, 0, size);
36 ret = getsockopt(fd, SOL_SOCKET, SO_PEERSEC, buf, &size);
40 free(buf);
[all...]
H A Dlgetfilecon.c12 char *buf; local
17 buf = malloc(size);
18 if (!buf)
20 memset(buf, 0, size);
22 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
31 newbuf = realloc(buf, size);
35 buf = newbuf;
36 memset(buf, 0, size);
37 ret = lgetxattr(path, XATTR_NAME_SELINUX, buf, size - 1);
46 free(buf);
[all...]
/external/wpa_supplicant_8/hostapd/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
44 * @buf: wpabuf buffer
47 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
57 wpabuf_len(const struct wpabuf *buf) argument
67 wpabuf_tailroom(const struct wpabuf *buf) argument
77 wpabuf_head(const struct wpabuf *buf) argument
82 wpabuf_head_u8(const struct wpabuf *buf) argument
92 wpabuf_mhead(struct wpabuf *buf) argument
97 wpabuf_mhead_u8(struct wpabuf *buf) argument
102 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
108 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
114 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
120 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
126 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
132 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
138 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
151 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
44 * @buf: wpabuf buffer
47 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
57 wpabuf_len(const struct wpabuf *buf) argument
67 wpabuf_tailroom(const struct wpabuf *buf) argument
77 wpabuf_head(const struct wpabuf *buf) argument
82 wpabuf_head_u8(const struct wpabuf *buf) argument
92 wpabuf_mhead(struct wpabuf *buf) argument
97 wpabuf_mhead_u8(struct wpabuf *buf) argument
102 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
108 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
114 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
120 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
126 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
132 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
138 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
151 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/wpa_supplicant_8/wpa_supplicant/src/utils/
H A Dwpabuf.h12 /* wpabuf::buf is a pointer to external data */
23 u8 *buf; /* pointer to the head of the buffer */ member in struct:wpabuf
29 int wpabuf_resize(struct wpabuf **buf, size_t add_len);
34 void wpabuf_free(struct wpabuf *buf);
35 void wpabuf_clear_free(struct wpabuf *buf);
36 void * wpabuf_put(struct wpabuf *buf, size_t len);
38 struct wpabuf * wpabuf_zeropad(struct wpabuf *buf, size_t len);
39 void wpabuf_printf(struct wpabuf *buf, char *fmt, ...) PRINTF_FORMAT(2, 3);
44 * @buf: wpabuf buffer
47 static inline size_t wpabuf_size(const struct wpabuf *buf) argument
57 wpabuf_len(const struct wpabuf *buf) argument
67 wpabuf_tailroom(const struct wpabuf *buf) argument
77 wpabuf_head(const struct wpabuf *buf) argument
82 wpabuf_head_u8(const struct wpabuf *buf) argument
92 wpabuf_mhead(struct wpabuf *buf) argument
97 wpabuf_mhead_u8(struct wpabuf *buf) argument
102 wpabuf_put_u8(struct wpabuf *buf, u8 data) argument
108 wpabuf_put_le16(struct wpabuf *buf, u16 data) argument
114 wpabuf_put_le32(struct wpabuf *buf, u32 data) argument
120 wpabuf_put_be16(struct wpabuf *buf, u16 data) argument
126 wpabuf_put_be24(struct wpabuf *buf, u32 data) argument
132 wpabuf_put_be32(struct wpabuf *buf, u32 data) argument
138 wpabuf_put_data(struct wpabuf *buf, const void *data, size_t len) argument
151 wpabuf_set(struct wpabuf *buf, const void *data, size_t len) argument
[all...]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
H A DGrammarReport2.java47 StringBuilder buf = new StringBuilder();
48 stats(root, buf);
51 stats(g, buf);
53 return buf.toString();
56 void stats(Grammar g, StringBuilder buf) { argument
67 buf.append(g.name+"."+enclosingRule.name+":" +
71 buf.append(decisionAST.getLine());
72 buf.append(":");
73 buf.append(decisionAST.getCharPositionInLine());
74 buf
90 nl(StringBuilder buf) argument
[all...]
H A DGrammarReport.java260 StringBuffer buf = new StringBuffer();
268 if (i>0) buf.append('\t');
269 buf.append(s);
276 return buf.toString();
280 StringBuffer buf = new StringBuffer();
281 buf.append("Backtracking report:");
282 buf.append(newline);
283 buf.append("Number of decisions that backtrack: ");
284 buf.append(grammar.decisionsWhoseDFAsUsesSynPreds.size());
285 buf
[all...]
/external/jetty/src/java/org/eclipse/jetty/util/
H A DURIUtil.java67 StringBuilder buf = encodePath(null,path);
68 return buf==null?path:buf.toString();
74 * @param buf StringBuilder to encode path into (or null)
77 public static StringBuilder encodePath(StringBuilder buf, String path) argument
80 if (buf==null)
97 buf=new StringBuilder(path.length()*2);
110 buf=new StringBuilder(path.length()*2);
116 if (buf==null)
120 synchronized(buf)
221 encodeString(StringBuilder buf, String path, String encode) argument
358 decodePath(byte[] buf, int offset, int length) argument
[all...]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
H A Dpb_bufmgr_ondemand.c74 pb_ondemand_buffer(struct pb_buffer *buf) argument
76 assert(buf);
77 if (!buf)
79 assert(buf->vtbl == &pb_ondemand_buffer_vtbl);
80 return (struct pb_ondemand_buffer *)buf;
94 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
96 pb_reference(&buf->buffer, NULL);
98 align_free(buf->data);
100 FREE(buf);
108 struct pb_ondemand_buffer *buf local
125 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
141 pb_ondemand_buffer_instantiate(struct pb_ondemand_buffer *buf) argument
177 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
196 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
211 struct pb_ondemand_buffer *buf = pb_ondemand_buffer(_buf); local
241 struct pb_ondemand_buffer *buf; local
[all...]
H A Dpb_buffer.h122 void (*destroy)( struct pb_buffer *buf );
128 void *(*map)( struct pb_buffer *buf,
131 void (*unmap)( struct pb_buffer *buf );
133 enum pipe_error (*validate)( struct pb_buffer *buf,
137 void (*fence)( struct pb_buffer *buf,
151 void (*get_base_buffer)( struct pb_buffer *buf,
162 pb_map(struct pb_buffer *buf, argument
165 assert(buf);
166 if(!buf)
168 assert(pipe_is_referenced(&buf
174 pb_unmap(struct pb_buffer *buf) argument
185 pb_get_base_buffer( struct pb_buffer *buf, struct pb_buffer **base_buf, pb_size *offset ) argument
204 pb_validate(struct pb_buffer *buf, struct pb_validate *vl, unsigned flags) argument
215 pb_fence(struct pb_buffer *buf, struct pipe_fence_handle *fence) argument
226 pb_destroy(struct pb_buffer *buf) argument
[all...]
/external/icu/icu4c/source/tools/toolutil/
H A Ducbuf.c161 ucbuf_fillucbuf( UCHARBUF* buf,UErrorCode* error){ argument
172 pTarget = buf->buffer;
174 if(buf->currentPos<buf->bufLimit){
175 offset = (int32_t)(buf->bufLimit-buf->currentPos);
176 memmove(buf->buffer,buf->currentPos,offset* sizeof(UChar));
182 if(buf->isBuffered){
185 inputRead=T_FileStream_read(buf
323 ucbuf_getc(UCHARBUF* buf,UErrorCode* error) argument
342 ucbuf_getc32(UCHARBUF* buf,UErrorCode* error) argument
373 ucbuf_getcx32(UCHARBUF* buf,UErrorCode* error) argument
467 UCHARBUF* buf =(UCHARBUF*) uprv_malloc(sizeof(UCHARBUF)); local
537 ucbuf_ungetc(int32_t c,UCHARBUF* buf) argument
554 ucbuf_closebuf(UCHARBUF* buf) argument
561 ucbuf_close(UCHARBUF* buf) argument
574 ucbuf_rewind(UCHARBUF* buf,UErrorCode* error) argument
613 ucbuf_size(UCHARBUF* buf) argument
625 ucbuf_getBuffer(UCHARBUF* buf,int32_t* len,UErrorCode* error) argument
714 ucbuf_readline(UCHARBUF* buf,int32_t* len,UErrorCode* err) argument
[all...]
/external/toybox/toys/pending/
H A Dipcs.c45 struct semid_ds *buf; member in union:semun
52 struct msqid_ds buf; local
55 if ((ret = msgctl(TT.id, IPC_STAT, &buf)) < 0) {
60 #define ipcperm buf.msg_perm
66 (long) buf.msg_cbytes, (long) buf.msg_qbytes,
67 (long) buf.msg_qnum, buf.msg_lspid, buf.msg_lrpid);
70 buf
78 struct semid_ds buf; local
120 struct shmid_ds buf; local
151 struct shmid_ds buf; local
252 struct semid_ds buf; local
340 struct msqid_ds buf; local
[all...]
/external/valgrind/none/tests/s390x/
H A Dsrst.c44 char *buf; local
52 buf = srst3(&buffer[23], &buffer[23], '0', &cc);
53 dump_field(buf, 1);
56 buf = srst3(&buffer[23], &buffer[0], '0', &cc);
57 dump_field(buf, 1);
60 buf = srst3(&buffer[23], &buffer[0], 'a', &cc);
61 dump_field(buf, 1);
64 buf = srst3(&buffer[23], &buffer[0], 'm', &cc);
65 dump_field(buf, 1);
68 buf
[all...]
/external/libvpx/libvpx/
H A Dvpxstats.c25 stats->buf.sz = 0;
26 stats->buf.buf = NULL;
36 stats->buf.sz = stat_buf.st_size;
37 stats->buf.buf = mmap(NULL, stats->buf.sz, PROT_READ, MAP_PRIVATE, fd, 0);
38 res = (stats->buf.buf != NULL);
47 stats->buf
[all...]

Completed in 658 milliseconds

1234567891011>>