/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. 73 * scopyn - copy a string from "from" to "to", truncating the string 79 scopyn(const char *from, char *to, int size) argument 83 if ((*to++ = *from++) == '\0')
|
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 134 continue; /* redirect from/to same file descriptor */ 377 copyfd(int from, int to) argument 381 newfd = fcntl(from, F_DUPFD, to); 386 error("%d: %s", from, strerror(errno));
|
/system/security/keystore-engine/ |
H A D | rsa_meth.cpp | 44 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); 57 if (!RSA_padding_add_PKCS1_type_1(padded.get(), num, from, flen)) { 62 if (!RSA_padding_add_X931(padded.get(), num, from, flen)) { 67 if (!RSA_padding_add_none(padded.get(), num, from, flen)) { 100 ALOGW("Error during signing from keystore: %d", ret); 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); 139 int32_t ret = service->sign(String16(reinterpret_cast<const char*>(key_id)), from, 145 ALOGW("Error during sign from keystor [all...] |
/system/core/include/utils/ |
H A D | SortedVector.h | 129 virtual void do_copy(void* dest, const void* from, size_t num) const; 131 virtual void do_move_forward(void* dest, const void* from, size_t num) const; 132 virtual void do_move_backward(void* dest, const void* from, size_t num) const; 141 // No user serviceable parts from here... 253 void SortedVector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument 254 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); 263 void SortedVector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const { argument 264 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); 268 void SortedVector<TYPE>::do_move_backward(void* dest, const void* from, size_t num) const { argument 269 move_backward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), nu [all...] |
H A D | Vector.h | 85 * constructor, or removed from the end as needed. 141 //! insert one or several items initialized from a prototype item 204 virtual void do_copy(void* dest, const void* from, size_t num) const; 206 virtual void do_move_forward(void* dest, const void* from, size_t num) const; 207 virtual void do_move_backward(void* dest, const void* from, size_t num) const; 215 // No user serviceable parts from here... 399 void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument 400 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); 409 void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const { argument 410 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), nu 414 do_move_backward(void* dest, const void* from, size_t num) const argument [all...] |
/system/core/libpixelflinger/codeflinger/tinyutils/ |
H A D | Vector.h | 97 //! same as operator [], but allows to access the vector backward (from the end) with a negative index 126 //! insert on onr several items initialized from a prototype item 165 virtual void do_copy(void* dest, const void* from, size_t num) const; 167 virtual void do_move_forward(void* dest, const void* from, size_t num) const; 168 virtual void do_move_backward(void* dest, const void* from, size_t num) const; 173 // No user serviceable parts from here... 328 void Vector<TYPE>::do_copy(void* dest, const void* from, size_t num) const { argument 329 copy_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), num ); 338 void Vector<TYPE>::do_move_forward(void* dest, const void* from, size_t num) const { argument 339 move_forward_type( reinterpret_cast<TYPE*>(dest), reinterpret_cast<const TYPE*>(from), nu 343 do_move_backward(void* dest, const void* from, size_t num) const argument [all...] |
H A D | VectorImpl.cpp | 303 const void* from = reinterpret_cast<const uint8_t *>(mStorage) + where*mItemSize; variable 305 _do_copy(dest, from, mCount-where); 316 const void* from = reinterpret_cast<const uint8_t *>(array) + where*mItemSize; variable 317 _do_move_forward(to, from, s); 355 const void* from = reinterpret_cast<const uint8_t *>(mStorage) + (where+amount)*mItemSize; local 357 _do_copy(dest, from, mCount-(where+amount)); 369 const void* from = reinterpret_cast<uint8_t *>(array) + (where+amount)*mItemSize; local 370 _do_move_backward(to, from, s); 396 void VectorImpl::_do_copy(void* dest, const void* from, size_t num) const argument 399 do_copy(dest, from, nu 409 _do_move_forward(void* dest, const void* from, size_t num) const argument 413 _do_move_backward(void* dest, const void* from, size_t num) const argument [all...] |
/system/core/libsparse/ |
H A D | backed_block.c | 144 void backed_block_list_move(struct backed_block_list *from, argument 151 start = from->data_blocks; 163 from->last_used = NULL; 165 if (from->data_blocks == start) { 166 from->data_blocks = end->next; 168 for (bb = from->data_blocks; bb; bb = bb->next) { 263 pointer to the last bb that was added, and start searching from
|
H A D | sparse.c | 223 static struct backed_block *move_chunks_up_to_len(struct sparse_file *from, argument 241 start = backed_block_iter_new(from->backed_block_list); 259 backed_block_split(from->backed_block_list, bb, len - file_len); 269 backed_block_list_move(from->backed_block_list,
|
/system/core/toolbox/cp/ |
H A D | utils.c | 16 * may be used to endorse or promote products derived from this software 96 const char *from; 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 134 * other choice is 666 or'ed with the execute bits on the from file 204 fi.from = entp->fts_path; 231 * long time if the reading the data from
|