Searched defs:to (Results 1 - 14 of 14) sorted by relevance

/system/core/toolbox/upstream-netbsd/lib/libc/string/
H A Dswab.c7 * This code is derived from software contributed to Berkeley by
19 * may be used to endorse or promote products derived from this software
48 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument
58 _DIAGASSERT(to != NULL);
62 tp = (char *)to;
70 /* round to multiple of 8 */
/system/security/keystore-engine/
H A Dkeyhandle.cpp29 * Makes sure the ex_data for the keyhandle is initially set to NULL.
48 int keyhandle_dup(CRYPTO_EX_DATA* to, CRYPTO_EX_DATA*, void *ptrRef, int idx, long, void *) { argument
49 // This appears to be a bug in OpenSSL.
57 (void) CRYPTO_set_ex_data(to, idx, keyhandle_copy);
H A Drsa_meth.cpp44 int keystore_rsa_priv_enc(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument
46 ALOGV("keystore_rsa_priv_enc(%d, %p, %p, %p, %d)", flen, from, to, rsa, padding);
108 memcpy(to, reply, replyLen);
111 ALOGV("rsa=%p keystore_rsa_priv_enc => returning %p len %llu", rsa, to,
116 int keystore_rsa_priv_dec(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument
118 ALOGV("keystore_rsa_priv_dec(%d, %p, %p, %p, %d)", flen, from, to, rsa, padding);
164 outSize = RSA_padding_check_PKCS1_type_2(to, num, alignedReply, replyLen, num);
167 outSize = RSA_padding_check_X931(to, num, alignedReply, replyLen, num);
170 outSize = RSA_padding_check_none(to, num, alignedReply, replyLen, num);
180 ALOGV("rsa=%p keystore_rsa_priv_dec => returning %p len %d", rsa, to, outSiz
[all...]
/system/core/libsync/
H A Dsync.c12 * Unless required by applicable law or agreed to in writing, software
32 __s32 to = timeout; local
34 return ioctl(fd, SYNC_IOC_WAIT, &to);
/system/netd/server/
H A Dndc.c10 * Unless required by applicable law or agreed to in writing, software
45 // try interpreting the first arg as the socket name - if it fails go back to netd
121 printf("[Connected to Netd]\n");
125 struct timeval to; local
128 to.tv_sec = 10;
129 to.tv_usec = 0;
134 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) {
148 fprintf(stderr, "Lost connection to Netd - did it crash?\n");
/system/vold/
H A Dvdc.c10 * Unless required by applicable law or agreed to in writing, software
106 printf("[Connected to Vold]\n");
110 struct timeval to; local
113 to.tv_sec = 10;
114 to.tv_usec = 0;
119 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) {
131 fprintf(stderr, "Lost connection to Vold - did it crash?\n");
/system/core/libzipfile/
H A Dzipfile.c95 // Use the undocumented "negative window bits" feature to tell zlib
131 dump_zipfile(FILE* to, zipfile_t file) argument
137 fprintf(to, "entryCount=%d\n", zip->entryCount);
139 fprintf(to, " file \"");
140 fwrite(entry->fileName, entry->fileNameLength, 1, to);
141 fprintf(to, "\"\n");
/system/core/toolbox/upstream-netbsd/bin/mv/
H A Dmv.c7 * This code is derived from software contributed to Berkeley by
19 * may be used to endorse or promote products derived from this software
154 do_move(char *from, char *to) argument
167 * the mv utility shall write a prompt to standard error and
172 if (!fflg && !access(to, F_OK)) {
181 (void)fprintf(stderr, "overwrite %s? ", to);
182 } else if (stdin_ok && access(to, W_OK) && !stat(to, &sb)) {
191 group_from_gid(sb.st_gid, 0), to);
208 * EXDEV, mv shall write a diagnostic message to th
256 fastcopy(char *from, char *to, struct stat *sbp) argument
344 copy(char *from, char *to) argument
[all...]
/system/core/libsparse/
H A Dbacked_block.c10 * Unless required by applicable law or agreed to in writing, software
145 struct backed_block_list *to, struct backed_block *start,
164 to->last_used = NULL;
176 if (!to->data_blocks) {
177 to->data_blocks = start;
180 for (bb = to->data_blocks; bb; bb = bb->next) {
263 pointer to the last bb that was added, and start searching from
287 /* Queues a fill block of memory to be written to the specified data blocks */
305 /* Queues a block of memory to b
144 backed_block_list_move(struct backed_block_list *from, struct backed_block_list *to, struct backed_block *start, struct backed_block *end) argument
[all...]
H A Dsparse.c10 * Unless required by applicable law or agreed to in writing, software
225 struct sparse_file *to, unsigned int len)
244 to->block_size, to->len, false, true, 0, false);
251 /* will call out_counter_write to update count */
271 to->backed_block_list, start, last_bb);
224 move_chunks_up_to_len(struct sparse_file *from, struct sparse_file *to, unsigned int len) argument
/system/core/toolbox/upstream-netbsd/bin/cp/
H A Dcp.c7 * This code is derived from software contributed to Berkeley by
19 * may be used to endorse or promote products derived from this software
51 * Cp copies source files to target files.
53 * The global PATH_T structure "to" always contains the path to the
57 * The basic algorithm is to initialize "to" and use fts(3) to traverse
61 * path (relative to the root of the traversal) is appended to di
87 PATH_T to = { .p_end = to.p_path, .target_end = empty }; variable
[all...]
H A Dutils.c16 * may be used to endorse or promote products derived from this software
91 const char *to; member in struct:finfo
102 fi->from, fi->to, written, fi->size, pcent);
125 * If the file DNE, set the mode to be the from file, minus setuid
136 (void)fprintf(stderr, "overwrite %s? ", to.p_path);
147 lstat(to.p_path, &sb) : stat(to.p_path, &sb);
149 warn("stat: %s", to.p_path);
155 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0);
157 to_fd = open(to
[all...]
/system/core/fastbootd/commands/
H A Dpartitions.c15 * may be used to endorse or promote products derived from this
73 * returns mapped location to choosen area
74 * mapped_ptr is pointer to whole area mapped (it can be bigger then requested)
114 D(ERR, "unable to map header:%s\n", strerror(errno));
126 D(ERR, "unable to map entries");
135 D(ERR, "unable to map backup gpt header");
143 D(ERR, "unable to map secondary gpt table");
170 D(ERR, "unable to map header: %s", strerror(errno));
202 D(ERR, "unable to open file %s:%s\n", path, strerror(errno));
210 D(WARN, "unable to ge
440 GPT_to_UTF16(uint16_t *to, const char *from, int n) argument
447 GPT_from_UTF16(char *to, const uint16_t *from, int n) argument
[all...]
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DVectorImpl.cpp10 * Unless required by applicable law or agreed to in writing, software
315 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; variable
317 _do_move_forward(to, from, s);
365 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize; local
366 _do_destroy(to, amount);
370 _do_move_backward(to, from, s);

Completed in 549 milliseconds