Home
last modified time | relevance | path

Searched refs:st (Results 1 – 18 of 18) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dopen_wmemstream.c43 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 …]
Dopen_memstream.c41 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 …]
Dmakebuf.c82 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()
Dfgetwc.c41 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()
Dfputwc.c43 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/
Dstat.h32 #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/
Dftok.c36 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/
Dengine.c100 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/
DRecordData.h71 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/
DUtils.h40 struct stat st; in is_directory() local
41 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in is_directory()
Dversioner.cpp94 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/
Dinterface_test.cpp147 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/
Dbionic_benchmarks.cpp584 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/
Dfrontend.h356 struct dtv_fe_stats st; member
/bionic/libc/kernel/uapi/linux/
Dfuse.h371 struct fuse_kstatfs st; member
/bionic/tests/
Ddlext_test.cpp972 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/
Dlocaltime.c394 struct state st; member
662 struct state *ts = &lsp->u.st; in tzloadbody()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp196 uint64_t st = strtoull(&actual[offset], nullptr, 10); in VerifyRecords() local
199 ASSERT_GT(et, st); in VerifyRecords()