/system/core/sh/ |
H A D | mystring.c | 7 * This code is derived from software contributed to Berkeley by 19 * may be used to endorse or promote products derived from this software 48 * scopy(from, to) Copy a string. 49 * scopyn(from, to, n) Like scopy, but checks for overflow. 50 * number(s) Convert a string of digits to an integer. 73 * scopyn - copy a string from "from" to "to", truncating the string 75 * truncation is performed. "Size" is the size of "to". 79 scopyn(const char *from, char *to, int size) argument 83 if ((*to [all...] |
H A D | redir.c | 7 * This code is derived from software contributed to Berkeley by 19 * may be used to endorse or promote products derived from this software 89 * background commands, where we want to redirect fd0 to /dev/null only 114 char memory[10]; /* file descriptors to write to memory */ 120 /* We don't have to worry about REDIR_VFORK here, as 134 continue; /* redirect from/to same file descriptor */ 252 * Handle here documents. Normally we fork off a process to write the 253 * data to 377 copyfd(int from, int to) argument [all...] |
/system/vold/ |
H A D | vdc.c | 10 * Unless required by applicable law or agreed to in writing, software 88 printf("[Connected to Vold]\n"); 92 struct timeval to; local 95 to.tv_sec = 10; 96 to.tv_usec = 0; 101 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 113 fprintf(stderr, "Lost connection to Vold - did it crash?\n");
|
/system/core/libsync/ |
H A D | sync.c | 12 * 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/ |
H A D | ndc.c | 10 * 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 110 printf("[Connected to Netd]\n"); 114 struct timeval to; local 117 to.tv_sec = 10; 118 to.tv_usec = 0; 123 if ((rc = select(sock +1, &read_fds, NULL, NULL, &to)) < 0) { 135 fprintf(stderr, "Lost connection to Netd - did it crash?\n");
|
/system/core/libzipfile/ |
H A D | zipfile.c | 96 // Use the undocumented "negative window bits" feature to tell zlib 132 dump_zipfile(FILE* to, zipfile_t file) argument 138 fprintf(to, "entryCount=%d\n", zip->entryCount); 140 fprintf(to, " file \""); 141 fwrite(entry->fileName, entry->fileNameLength, 1, to); 142 fprintf(to, "\"\n");
|
/system/core/libpixelflinger/tinyutils/ |
H A D | VectorImpl.cpp | 313 void* to = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; variable 315 _do_move_forward(to, from, s); 363 void* to = reinterpret_cast<uint8_t *>(array) + where*mItemSize; 364 _do_destroy(to, amount); 368 _do_move_backward(to, from, s);
|
/system/core/libsparse/ |
H A D | backed_block.c | 10 * 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 D | sparse.c | 10 * Unless required by applicable law or agreed to in writing, software 224 struct sparse_file *to, unsigned int len) 243 to->block_size, to->len, false, true, 0, false); 250 /* will call out_counter_write to update count */ 270 to->backed_block_list, start, last_bb); 223 move_chunks_up_to_len(struct sparse_file *from, struct sparse_file *to, unsigned int len) argument
|
/system/core/toolbox/cp/ |
H A D | cp.c | 7 * 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 D | utils.c | 16 * may be used to endorse or promote products derived from this software 97 const char *to; member in struct:finfo 108 fi->from, fi->to, written, fi->size, pcent); 131 * If the file DNE, set the mode to be the from file, minus setuid 142 (void)fprintf(stderr, "overwrite %s? ", to.p_path); 153 lstat(to.p_path, &sb) : stat(to.p_path, &sb); 155 warn("stat: %s", to.p_path); 161 to_fd = open(to.p_path, O_WRONLY | O_TRUNC, 0); 163 to_fd = open(to [all...] |
/system/security/keystore-engine/ |
H A D | eng_keystore.cpp | 52 * on failure. This means we need to tell our scoped pointers when we've transferred ownership, 92 * Makes sure the ex_data for the keyhandle is initially set to NULL. 111 int keyhandle_dup(CRYPTO_EX_DATA* to, CRYPTO_EX_DATA*, void *ptrRef, int idx, long, void *) { argument 112 // This appears to be a bug in OpenSSL. 120 (void) CRYPTO_set_ex_data(to, idx, keyhandle_copy); 125 int keystore_rsa_priv_enc(int flen, const unsigned char* from, unsigned char* to, RSA* rsa, argument 127 ALOGV("keystore_rsa_sign(%d, %p, %p, %p, %d)", flen, from, to, rsa, padding); 177 memcpy(to, reply.get(), replyLen); 179 ALOGV("rsa=%p keystore_rsa_sign => returning %p len %llu", rsa, to, 248 * ENGINE_finish(), so we need to cal [all...] |