/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | open_wmemstream.c | 43 struct state *st = v; in wmemstream_write() local 47 end = (st->pos + l); in wmemstream_write() 49 if (end >= st->size) { in wmemstream_write() 51 size_t sz = st->size * 8 / 5; in wmemstream_write() 55 p = recallocarray(st->string, st->size, sz, sizeof(wchar_t)); in wmemstream_write() 58 *st->pbuf = st->string = p; in wmemstream_write() 59 st->size = sz; in wmemstream_write() 62 nmc = (st->size - st->pos) * sizeof(wchar_t); in wmemstream_write() 63 len = mbsnrtowcs(st->string + st->pos, &b, nmc, l, &st->mbs); in wmemstream_write() 66 st->pos += len; in wmemstream_write() [all …]
|
D | open_memstream.c | 41 struct state *st = v; in memstream_write() local 45 end = (st->pos + l); in memstream_write() 47 if (end >= st->size) { in memstream_write() 49 size_t sz = st->size * 8 / 5; in memstream_write() 53 p = recallocarray(st->string, st->size, sz, 1); in memstream_write() 56 *st->pbuf = st->string = p; in memstream_write() 57 st->size = sz; in memstream_write() 61 st->string[st->pos + i] = b[i]; in memstream_write() 62 st->pos += l; in memstream_write() 64 if (st->pos > st->len) { in memstream_write() [all …]
|
D | makebuf.c | 82 struct stat st; in __swhatbuf() local 84 if (fp->_file < 0 || fstat(fp->_file, &st) == -1) { in __swhatbuf() 91 *couldbetty = S_ISCHR(st.st_mode); in __swhatbuf() 92 if (st.st_blksize == 0) { in __swhatbuf() 102 *bufsize = st.st_blksize; in __swhatbuf() 103 fp->_blksize = st.st_blksize; in __swhatbuf() 104 return ((st.st_mode & S_IFMT) == S_IFREG && fp->_seek == __sseek ? in __swhatbuf()
|
D | fgetwc.c | 41 mbstate_t *st; in __fgetwc_unlock() local 59 st = &wcio->wcio_mbstate_in; in __fgetwc_unlock() 70 size = mbrtowc(&wc, &c, 1, st); in __fgetwc_unlock()
|
D | fputwc.c | 43 mbstate_t *st; in __fputwc_unlock() local 61 st = &wcio->wcio_mbstate_out; in __fputwc_unlock() 63 size = wcrtomb(buf, wc, st); in __fputwc_unlock()
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | stat.h | 32 #define INIT_STRUCT_STAT_PADDING(st) do { st.__unused4 = 0; st.__unused5 = 0; \ argument 56 …define INIT_STRUCT_STAT64_PADDING(st) do { memset(& st.__pad0, 0, sizeof(st.__pad0)); memset(& st.… argument 79 #define INIT_STRUCT_STAT_PADDING(st) do { st.__pad0 = 0; st.__linux_unused[0] = 0; st.__linux_unuse… argument
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | ftok.c | 36 struct stat st; in ftok() local 38 if (stat(path, &st) == -1) in ftok() 42 ((u_id & 0xff) << 24 | (st.st_dev & 0xff) << 16 | (st.st_ino & 0xffff)); in ftok()
|
/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | engine.c | 100 states st; /* current states */ member 133 static void print(struct match *m, const char *caption, states st, int ch, FILE *d); 295 SETUP(m->st); in matcher() 311 SP("mloop", m->st, *start); in matcher() 881 states st = m->st; in walk() local 899 CLEAR(st); in walk() 900 SET1(st, startst); in walk() 901 SP("sstart", st, *p); in walk() 902 st = step(m->g, startst, stopst, st, NOTHING, st, sflags); in walk() 904 ASSIGN(fresh, st); in walk() [all …]
|
/bionic/libc/malloc_debug/ |
D | RecordData.h | 71 explicit AllocEntry(void* pointer, uint64_t st, uint64_t et); 87 MallocEntry(void* pointer, size_t size, uint64_t st, uint64_t et); 101 explicit FreeEntry(void* pointer, uint64_t st, uint64_t et); 112 CallocEntry(void* pointer, size_t nmemb, size_t size, uint64_t st, uint64_t et); 126 ReallocEntry(void* pointer, size_t size, void* old_pointer, uint64_t st, uint64_t et); 141 MemalignEntry(void* pointer, size_t size, size_t alignment, uint64_t st, uint64_t et);
|
/bionic/tools/versioner/src/ |
D | Utils.h | 40 struct stat st; in is_directory() local 41 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in is_directory()
|
D | versioner.cpp | 94 struct stat st; in is_dir() local 95 return stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode); in is_dir() 124 struct stat st; in collectRequirements() local 125 if (stat(dependency.c_str(), &st) != 0) { in collectRequirements() 129 if (!S_ISDIR(st.st_mode)) { in collectRequirements() 538 struct stat st; in main() local 539 if (stat(platform_dir.c_str(), &st) != 0) { in main() 542 if (!S_ISDIR(st.st_mode) && !S_ISREG(st.st_mode)) { in main() 649 struct stat st; in main() local 650 if (const char *path = location.header_path.c_str(); stat(path, &st) != 0) { in main()
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 147 struct stat st; in TEST_F() local 148 ASSERT_NE(-1, stat(exe.c_str(), &st)) << "Stat of " << exe << " failed"; in TEST_F() 149 ASSERT_TRUE(S_ISREG(st.st_mode)) << exe << " is not a file, or doesn't exist."; in TEST_F()
|
/bionic/benchmarks/ |
D | bionic_benchmarks.cpp | 584 struct stat st; in FileExists() local 585 return stat(file.c_str(), &st) != -1 && S_ISREG(st.st_mode); in FileExists()
|
/bionic/libc/kernel/uapi/linux/dvb/ |
D | frontend.h | 356 struct dtv_fe_stats st; member
|
/bionic/libc/kernel/uapi/linux/ |
D | fuse.h | 371 struct fuse_kstatfs st; member
|
/bionic/tests/ |
D | dlext_test.cpp | 972 struct statfs st; in TEST() local 973 ASSERT_TRUE(TEMP_FAILURE_RETRY(fstatfs(memfd, &st)) == 0) << strerror(errno); in TEST() 974 ASSERT_EQ(static_cast<decltype(st.f_type)>(TMPFS_MAGIC), st.f_type); in TEST()
|
/bionic/libc/tzcode/ |
D | localtime.c | 394 struct state st; member 662 struct state *ts = &lsp->u.st; in tzloadbody()
|
/bionic/libc/malloc_debug/tests/ |
D | malloc_debug_unit_tests.cpp | 196 uint64_t st = strtoull(&actual[offset], nullptr, 10); in VerifyRecords() local 199 ASSERT_GT(et, st); in VerifyRecords()
|