/external/ltp/testcases/kernel/syscalls/sync_file_range/ |
D | sync_file_range01.c | 114 off64_t nbytes; member 196 static inline long syncfilerange(int fd, off64_t offset, off64_t nbytes, in syncfilerange() argument 204 (int)(offset >> 32), (int)offset, (int)(nbytes >> 32), in syncfilerange() 205 (int)nbytes); in syncfilerange() 208 (int)(offset >> 32), nbytes, (int)(nbytes >> 32)); in syncfilerange() 211 return ltp_syscall(__NR_sync_file_range2, fd, flags, offset, nbytes); in syncfilerange() 217 (int)offset, (int)(nbytes >> 32), (int)nbytes, flags); in syncfilerange() 221 return ltp_syscall(__NR_sync_file_range, fd, offset, nbytes, flags); in syncfilerange() 271 test_data[test_index].nbytes, in main()
|
/external/pdfium/core/fxcrt/ |
D | fx_basic_utf.cpp | 53 int nbytes = 0; in Input() local 55 nbytes = 2; in Input() 57 nbytes = 3; in Input() 59 nbytes = 4; in Input() 61 nbytes = 5; in Input() 63 nbytes = 6; in Input() 66 int order = 1 << ((nbytes - 1) * 6); in Input() 68 m_Buffer.AppendChar(prefix[nbytes - 2] | (code / order)); in Input() 69 for (int i = 0; i < nbytes - 1; i++) { in Input()
|
/external/valgrind/memcheck/tests/solaris/ |
D | sendfilev.c | 25 ssize_t nbytes = write(test_fd, &chunk1, sizeof(chunk1)); in main() local 26 if (nbytes != CHUNK) { in main() 29 nbytes, strerror(error), error); in main() 54 nbytes = sendfilev(test_fd, vec, 2, &xferred); in main() 55 if (nbytes < 0) { in main() 65 nbytes = sendfilev(test_fd, vec, -1, &xferred); in main() 66 if (nbytes < 0) { in main() 78 nbytes = sendfilev(test_fd, vec, 1, &xferred); in main() 79 if (nbytes < 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite04.c | 69 int nbytes; in main() local 93 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() 96 nbytes, errno); in main() 113 if ((nbytes = pwrite(fd, wbuf[2], K1, K2)) != K1) { in main() 116 nbytes, errno); in main() 134 if ((nbytes = write(fd, wbuf[3], K1)) != K1) { in main() 136 nbytes, errno); in main() 148 if ((nbytes = pwrite(fd, wbuf[1], K1, K1)) != K1) { in main() 150 nbytes, errno); in main() 187 if ((nbytes = pwrite(fd, wbuf[0], K1, 0)) != K1) { in main() [all …]
|
/external/valgrind/VEX/useful/ |
D | smchash.c | 24 Int nbytes; member 42 r= fscanf(f, "GuestBytes %llx %d ", &gb->ga, &gb->nbytes); in read_one() 47 assert(gb->nbytes > 0); in read_one() 48 assert(gb->nbytes < 5000); // let's say in read_one() 50 Int nToAlloc = gb->nbytes + (gb->ga & 3); in read_one() 52 gb->bytes = malloc( gb->nbytes + nToAlloc); in read_one() 57 for (i = 0; i < gb->nbytes; i++) { in read_one() 81 if (0) printf("got %llu %d\n", gb->ga, gb->nbytes); in apply_to_all() 96 for (i = 0; i < gb->nbytes; i++) in hash_sum() 103 for (i = 0; i < gb->nbytes; i++) { in hash_rol() [all …]
|
/external/valgrind/perf/ |
D | heap.c | 12 int i, j, nbytes = 0; in main() local 31 arr[j] = malloc(nbytes); in main() 34 for (jpdb=0; jpdb<nbytes; jpdb = jpdb+pdb) { in main() 41 nbytes += 8; in main() 42 if (nbytes > 32) in main() 43 nbytes = 0; in main()
|
/external/ltp/testcases/kernel/fs/doio/ |
D | doio.c | 328 int lock_file_region(char *fname, int fd, int type, int start, int nbytes); 410 int alloc_mem(int nbytes); 413 int alloc_sds(int nbytes); 756 int rval, i, infd, nbytes; in doio() local 918 while ((nbytes = read(infd, (char *)&ioreq, sizeof(ioreq)))) { in doio() 935 if (nbytes == -1) { in doio() 943 if (nbytes != sizeof(ioreq)) { in doio() 946 sizeof(ioreq), nbytes); in doio() 1406 int fd, offset, nbytes, oflags, rval; in do_read() local 1425 nbytes = req->r_data.read.r_nbytes; in do_read() [all …]
|
/external/ltp/testcases/misc/crash/ |
D | crash01.c | 89 const int nbytes = 2000; variable 171 if (inc <= nbytes / 2) in main() 175 "Invalid arg for -b (max: %u): %s", nbytes / 2, in main() 185 (malloc_flag == 0) ? "" : "+", nbytes, incptr, nseed, in main() 312 the_data = bad_malloc((nbytes < 0) ? -nbytes : nbytes); in badboy_loop() 484 compute_block_badboy(nbytes); in compute_badboy() 489 || (next_offset > ((nbytes * BLOCK_TRIGGER) / 100))) { in compute_badboy() 490 compute_block_badboy(nbytes); in compute_badboy() 506 else if (nbytes == 0) in try_one_crash()
|
/external/e2fsprogs/lib/ext2fs/ |
D | bitops.c | 135 unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes) in ext2fs_bitcount() argument 141 while (((((uintptr_t) cp) & 3) != 0) && (nbytes > 0)) { in ext2fs_bitcount() 143 nbytes--; in ext2fs_bitcount() 147 while (nbytes > 4) { in ext2fs_bitcount() 149 nbytes -= 4; in ext2fs_bitcount() 153 while (nbytes > 0) { in ext2fs_bitcount() 155 nbytes--; in ext2fs_bitcount()
|
/external/elfutils/libasm/ |
D | asm_adduleb128.c | 75 size_t nbytes = dest - tmpbuf; in asm_adduleb128() local 78 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_adduleb128() 83 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_adduleb128() 86 asmscn->content->len += nbytes; in asm_adduleb128() 89 asmscn->offset += nbytes; in asm_adduleb128()
|
D | asm_addsleb128.c | 79 size_t nbytes = dest - tmpbuf; in asm_addsleb128() local 82 if (__libasm_ensure_section_space (asmscn, nbytes) != 0) in asm_addsleb128() 87 memcpy (&asmscn->content->data[asmscn->content->len], tmpbuf, nbytes); in asm_addsleb128() 90 asmscn->content->len += nbytes; in asm_addsleb128() 93 asmscn->offset += nbytes; in asm_addsleb128()
|
/external/libpng/contrib/arm-neon/ |
D | linux-auxv.c | 39 safe_read(png_structp png_ptr, int fd, void *buffer_in, size_t nbytes) in safe_read() argument 44 while (nbytes > 0) in safe_read() 53 if (nbytes > INT_MAX) in safe_read() 57 nread = (unsigned int)/*SAFE*/nbytes; in safe_read() 85 nbytes -= (unsigned int)/*SAFE*/iread; in safe_read()
|
/external/valgrind/memcheck/tests/ |
D | malloc2.c | 26 int i, j, k, nbytes; in main() local 38 nbytes = 1 + myrandom() % M_TEST_MALLOC; in main() 40 nbytes *= 17; in main() 41 test_arr[j] = malloc( nbytes ); in main() 43 for (k = 1; k < nbytes; k++) in main()
|
D | writev1.c | 27 int nbytes; in main() local 39 } else if ((nbytes = write(fd, buf_list[1], K_1)) != K_1) { in main() 41 nbytes, errno); in main() 62 if ((nbytes = read(fd, buf_list[0], CHUNK)) != 0) in main() 63 fprintf(stderr, "Expected nbytes = 0, got %d\n", nbytes); in main()
|
/external/ltp/testcases/kernel/sched/clisrv/ |
D | writen.c | 28 int writen(fd, ptr, nbytes) in writen() argument 31 register int nbytes; 35 nleft = nbytes; 43 return (nbytes - nleft);
|
/external/libvterm/src/ |
D | utf8.h | 18 int nbytes = utf8_seqlen(codepoint); in fill_utf8() local 21 int b = nbytes; in fill_utf8() 28 switch(nbytes) { in fill_utf8() 37 return nbytes; in fill_utf8()
|
/external/libcxx/src/support/solaris/ |
D | wcsnrtombs.inc | 35 size_t nbytes; 39 nbytes = 0; 47 return (nbytes + nb - 1); 49 nbytes += nb; 51 return (nbytes); 83 return (nbytes + nb - 1); 88 nbytes += nb; 91 return (nbytes);
|
/external/syslinux/com32/libutil/ |
D | unbase64.c | 47 size_t nbytes = 0; in unbase64() local 66 if (nbytes < bufsiz) in unbase64() 68 nbytes++; in unbase64() 75 return nbytes; in unbase64()
|
/external/ltp/testcases/kernel/controllers/freezer/ |
D | vfork.c | 266 ssize_t nbytes = 0; in send_mutex() local 269 nbytes = write(fd, "r", 1); in send_mutex() 270 if (nbytes == 1) in send_mutex() 272 if (nbytes != -1) in send_mutex() 285 ssize_t nbytes = 0; in await_mutex() local 288 nbytes = read(fd, buffer, sizeof(buffer)); in await_mutex() 289 if (nbytes == 1) in await_mutex() 291 if (nbytes != -1) in await_mutex()
|
/external/syslinux/com32/lib/sys/ |
D | stdcon_read.c | 51 if (fp->i.nbytes) { in __stdcon_read() 53 fp->i.nbytes--; in __stdcon_read() 58 fp->i.nbytes = __line_input(fp, fp->i.buf, MAXBLOCK, __rawcon_read); in __stdcon_read() 61 if (fp->i.nbytes == 0) in __stdcon_read()
|
D | fileread.c | 53 fp->i.nbytes = bytes_read; in __file_get_block() 65 if (fp->i.nbytes == 0) { in __file_read() 85 ncopy = min(count, fp->i.nbytes); in __file_read() 90 fp->i.nbytes -= ncopy; in __file_read()
|
/external/ltp/testcases/kernel/syscalls/epoll2/examples/ |
D | epoll-test.c | 81 int nbytes, rindex; member 132 conn->nbytes = conn->rindex = 0; in eph_new_conn() 294 int nbytes; in eph_read_data() local 296 if (conn->rindex && conn->rindex < conn->nbytes) { in eph_read_data() 298 conn->nbytes - conn->rindex); in eph_read_data() 299 conn->nbytes -= conn->rindex; in eph_read_data() 301 conn->nbytes = 0; in eph_read_data() 305 if ((nbytes = eph_read(conn, conn->buffer + conn->nbytes, in eph_read_data() 306 sizeof(conn->buffer) - conn->nbytes)) <= 0) in eph_read_data() 309 conn->nbytes += nbytes; in eph_read_data() [all …]
|
/external/valgrind/VEX/priv/ |
D | main_util.h | 125 static inline void* LibVEX_Alloc_inline ( SizeT nbytes ) in LibVEX_Alloc_inline() argument 150 return malloc(nbytes); in LibVEX_Alloc_inline() 156 nbytes = (nbytes + ALIGN) & ~ALIGN; in LibVEX_Alloc_inline() 158 next = curr + nbytes; in LibVEX_Alloc_inline()
|
/external/strace/tests-mx32/ |
D | sync_file_range.c | 43 const off64_t nbytes = 0xfacefeedcafef00dULL; in main() local 46 int rc = sync_file_range(fd, offset, nbytes, flags); in main() 52 (long long) nbytes, in main()
|
/external/strace/tests-m32/ |
D | sync_file_range2.c | 43 const off64_t nbytes = 0xfacefeedcafef00d; in main() local 46 int rc = sync_file_range(fd, offset, nbytes, flags); in main() 52 (long long) nbytes, in main()
|