/system/core/libcutils/ |
H A D | sockets.c | 32 socklen_t len = sizeof(cr); local 33 int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len);
|
H A D | partition_utils.c | 26 static int only_one_char(char *buf, int len, char c) argument 31 for (i=0; i<len; i++) {
|
H A D | process_name.c | 49 int len = strlen(new_name); local 50 char* copy = (char*) malloc(len + 1); 55 if (len < 16) { 58 prctl(PR_SET_NAME, (unsigned long) new_name + len - 15, 0, 0, 0);
|
H A D | ashmem-dev.c | 75 int ashmem_pin_region(int fd, size_t offset, size_t len) argument 77 struct ashmem_pin pin = { offset, len }; 81 int ashmem_unpin_region(int fd, size_t offset, size_t len) argument 83 struct ashmem_pin pin = { offset, len };
|
H A D | strdup16to8.c | 29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len) argument 34 * potentially be as big as 3*len, which will overflow 35 * for len > SIZE_MAX/3. 43 * dst = malloc(strnlen16to8(utf16,len)+1) 55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1. 57 if (len < (SIZE_MAX-1)/3) { 58 while (len--) { 72 while (len--) { 102 * not just "len". 107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len) argument 146 size_t len; local [all...] |
/system/core/libsparse/ |
H A D | sparse_file.h | 24 int64_t len; member in struct:sparse_file
|
H A D | img2simg.c | 53 off64_t len; local 89 len = lseek64(in, 0, SEEK_END); 92 s = sparse_file_new(block_size, len);
|
/system/extras/ext4_utils/ |
H A D | wipe.c | 35 int wipe_block_device(int fd, s64 len) argument 46 range[1] = len; 50 range[1] = len; 70 int wipe_block_device(int fd, s64 len) argument
|
H A D | ext4_sb.h | 29 int64_t len; /* If set to 0, ask the block device for the size, member in struct:fs_info
|
/system/core/fastbootd/commands/ |
H A D | flash.h | 55 ssize_t len; local 57 while ((len = TEMP_FAILURE_RETRY(read(fd, (void *) &buffer[readcount], size - readcount))) > 0) { 58 readcount += len; 60 if (len < 0) { 62 return len;
|
/system/core/include/mincrypt/ |
H A D | rsa.h | 41 int len; /* Length of n[] in number of uint32_t */ member in struct:RSAPublicKey 50 const int len,
|
/system/core/liblog/ |
H A D | uio.c | 28 int len = vecs->iov_len; local 30 while (len > 0) { 31 int ret = read( fd, buf, len ); 42 len -= ret; 55 int len = vecs->iov_len; local 57 while (len > 0) { 58 int ret = write( fd, buf, len ); 69 len -= ret;
|
/system/core/toolbox/ |
H A D | smd.c | 9 int fd, len, r, port = 0; local 28 len = strlen(argv[0]); 29 r = write(fd, argv[0], len); 30 if(r != len) {
|
H A D | getsebool.c | 17 int i, get_all = 0, rc = 0, active, pending, len = 0, opt; local 31 rc = security_get_boolean_names(&names, &len); 38 if (!len) { 53 if (!len) { 56 len = argc - 1; 57 names = malloc(sizeof(char *) * len); 62 for (i = 0; i < len; i++) { 72 for (i = 0; i < len; i++) { 100 for (i = 0; i < len; i++)
|
H A D | readlink.c | 78 ssize_t len = readlink(argv[1], name, PATH_MAX); local 80 if (len < 0) { 86 name[len] = '\0';
|
/system/core/toolbox/upstream-netbsd/lib/libc/string/ |
H A D | swab.c | 48 swab(const void * __restrict from, void * __restrict to, ssize_t len) argument 54 if (len <= 1) 60 len /= 2; 65 if (__predict_false(len == 1)) { 71 while ((--len % 8) != 0) 73 len /= 8; 74 if (len == 0) 76 while (len-- != 0) {
|
/system/core/toolbox/upstream-netbsd/usr.bin/printenv/ |
H A D | printenv.c | 64 size_t len; local 85 len = strlen(*argv); 87 if (!memcmp(*ep, *argv, len)) { 88 cp = *ep + len;
|
/system/extras/f2fs_utils/ |
H A D | f2fs_utils.c | 60 int make_f2fs_sparse_fd(int fd, long long len, argument 68 len &= ~((__u64)F2FS_BLKSIZE); 69 config.total_sectors = len / config.sector_size; 71 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, len);
|
H A D | make_f2fs_main.c | 35 fprintf(stderr, "%s -l <len>\n", basename(path)); 45 long long len; local 49 len = atoll(optarg); 82 exitcode = make_f2fs_sparse_fd(fd, len, NULL, NULL);
|
/system/core/adb/ |
H A D | test_track_devices.c | 17 unix_write( int fd, const char* buf, int len ) 20 while (len > 0) { 21 int len2 = write(fd, buf, len); 28 len -= len2; 35 unix_read( int fd, char* buf, int len ) 38 while (len > 0) { 39 int len2 = read(fd, buf, len); 46 len -= len2; 59 int len; local 71 len [all...] |
H A D | test_track_jdwp.c | 17 unix_write( int fd, const char* buf, int len ) 20 while (len > 0) { 21 int len2 = write(fd, buf, len); 28 len -= len2; 35 unix_read( int fd, char* buf, int len ) 38 while (len > 0) { 39 int len2 = read(fd, buf, len); 46 len -= len2; 59 int len; local 71 len [all...] |
H A D | adb_auth.h | 37 int adb_auth_get_userkey(unsigned char *data, size_t len); 41 static inline void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t) { } argument 47 static inline int adb_auth_get_userkey(unsigned char *data, size_t len) { return 0; } argument 51 void adb_auth_confirm_key(unsigned char *data, size_t len, atransport *t);
|
/system/core/fastbootd/ |
H A D | config.c | 101 off_t len; local 112 len = lseek(fd, 0, SEEK_END); 113 if (len < 0) { 120 buffer = malloc(len + 1); 122 D(ERR, "failed to allocate %ld bytes", len); 126 while (count < (size_t)len) { 127 ret = read(fd, buffer + count, len - count); 140 buffer[len] = '\0';
|
/system/core/libsync/include/sync/ |
H A D | sync.h | 29 uint32_t len; member in struct:sync_fence_info_data 36 uint32_t len; member in struct:sync_pt_info
|
/system/core/logd/ |
H A D | LogBufferElement.cpp | 31 const char *msg, unsigned short len) 36 , mMsgLen(len) 39 mMsg = new char[len]; 40 memcpy(mMsg, msg, len); 51 entry.len = mMsgLen; 29 LogBufferElement(log_id_t log_id, log_time realtime, uid_t uid, pid_t pid, pid_t tid, const char *msg, unsigned short len) argument
|