/bionic/libc/bionic/ |
D | signal.cpp | 60 int SigAddSet(SigSetT* set, int sig) { in SigAddSet() argument 62 unsigned long* local_set = reinterpret_cast<unsigned long*>(set); in SigAddSet() 63 if (set == nullptr || bit < 0 || bit >= static_cast<int>(8*sizeof(*set))) { in SigAddSet() 71 int sigaddset(sigset_t* set, int sig) { in sigaddset() argument 72 return SigAddSet(set, sig); in sigaddset() 75 int sigaddset64(sigset64_t* set, int sig) { in sigaddset64() argument 76 return SigAddSet(set, sig); in sigaddset64() 81 sigset64_t set; member 87 if (sigprocmask64(SIG_BLOCK, &in.set, &out.set) == -1) return -1; in sigblock() 94 if (sigprocmask64(SIG_SETMASK, &in.set, &out.set) == -1) return -1; in sigsetmask() [all …]
|
D | sched_getaffinity.cpp | 35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { in sched_getaffinity() argument 36 int rc = __sched_getaffinity(pid, set_size, set); in sched_getaffinity() 43 memset(reinterpret_cast<char*>(set) + rc, 0, set_size - rc); in sched_getaffinity()
|
D | sys_epoll.cpp | 53 SigSetConverter set{ss}; in epoll_pwait() local 54 return epoll_pwait64(fd, events, max_events, timeout, set.ptr); in epoll_pwait() 63 SigSetConverter set{ss}; in epoll_pwait2() local 64 return epoll_pwait2_64(fd, events, max_events, timeout, set.ptr); in epoll_pwait2()
|
D | sched_cpualloc.cpp | 36 void __sched_cpufree(cpu_set_t* set) { in __sched_cpufree() argument 37 free(set); in __sched_cpufree()
|
D | sched_cpucount.cpp | 31 int __sched_cpucount(size_t setsize, const cpu_set_t* set) { in __sched_cpucount() argument 34 count += __builtin_popcountl(set->__bits[i]); in __sched_cpucount()
|
D | sys_signalfd.cpp | 41 SigSetConverter set{mask}; in signalfd() local 42 return signalfd64(fd, set.ptr, flags); in signalfd()
|
D | poll.cpp | 53 SigSetConverter set{ss}; in ppoll() local 54 return ppoll64(fds, fd_count, ts, set.ptr); in ppoll() 96 SigSetConverter set{ss}; in pselect() local 97 return pselect64(fd_count, read_fds, write_fds, error_fds, ts, set.ptr); in pselect()
|
D | pthread_exit.cpp | 115 sigset64_t set; in pthread_exit() local 116 sigfillset64(&set); in pthread_exit() 117 __rt_sigprocmask(SIG_BLOCK, &set, nullptr, sizeof(sigset64_t)); in pthread_exit()
|
/bionic/tests/ |
D | sched_test.cpp | 73 cpu_set_t set; in TEST() local 75 CPU_ZERO(&set); in TEST() 76 CPU_SET(0, &set); in TEST() 77 CPU_SET(17, &set); in TEST() 79 ASSERT_EQ(i == 0 || i == 17, CPU_ISSET(i, &set)); in TEST() 83 CPU_SET(CPU_SETSIZE, &set); in TEST() 84 ASSERT_FALSE(CPU_ISSET(CPU_SETSIZE, &set)); in TEST() 88 cpu_set_t set; in TEST() local 90 CPU_ZERO(&set); in TEST() 91 ASSERT_EQ(0, CPU_COUNT(&set)); in TEST() [all …]
|
D | signal_test.cpp | 49 static int SIGNAL_MAX(SigSetT* set) { in SIGNAL_MAX() argument 50 return sizeof(*set) * 8; in SIGNAL_MAX() 62 SigSetT set = {}; in TestSigSet1() local 64 ASSERT_EQ(0, fn(&set)); in TestSigSet1() 76 SigSetT set = {}; in TestSigSet2() local 80 ASSERT_EQ(-1, fn(&set, 0)); in TestSigSet2() 85 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX(&set) + 1)); in TestSigSet2() 90 ASSERT_EQ(0, fn(&set, SIGNAL_MIN())); in TestSigSet2() 92 ASSERT_EQ(0, fn(&set, SIGNAL_MAX(&set))); in TestSigSet2() 881 sigset_t set; in TestSigholdSigpauseSigrelse() local [all …]
|
/bionic/libc/include/sys/ |
D | select.h | 63 #define __FDS_BITS(type,set) (__BIONIC_CAST(static_cast, type, set)->fds_bits) argument 66 #define FD_ZERO(set) \ argument 70 (set)->fds_bits[__i] = 0; \ 78 #define __FD_CLR(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] &= ~__FDMASK(fd)) argument 79 #define __FD_SET(fd, set) (__FDS_BITS(fd_set*,set)[__FDELT(fd)] |= __FDMASK(fd)) argument 80 #define __FD_ISSET(fd, set) ((__FDS_BITS(const fd_set*,set)[__FDELT(fd)] & __FDMASK(fd)) != 0) argument 83 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument 85 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument 87 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument
|
/bionic/libc/include/ |
D | sched.h | 241 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set) argument 246 #define CPU_ZERO_S(setsize, set) __builtin_memset(set, 0, setsize) argument 252 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set) argument 257 #define CPU_SET_S(cpu, setsize, set) \ argument 261 (set)->__bits[__CPU_ELT(__cpu)] |= __CPU_MASK(__cpu); \ 268 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set) argument 273 #define CPU_CLR_S(cpu, setsize, set) \ argument 277 (set)->__bits[__CPU_ELT(__cpu)] &= ~__CPU_MASK(__cpu); \ 284 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set) argument 289 #define CPU_ISSET_S(cpu, setsize, set) \ argument [all …]
|
/bionic/libc/tools/ |
D | check-symbols-glibc.py | 41 ignored_symbols = set() 45 ignored_symbols |= set(open(f, 'r').read().splitlines()) 70 glibc = set(map(MangleGlibcNameToBionic, glibc)) 73 bsd_stuff = set([ 94 FORTIFY_stuff = set([ 116 macro_stuff = set([ 134 linux_stuff = set([ 141 std_stuff = set([ 149 weird_stuff = set([ 171 libresolv_stuff = set([ [all …]
|
D | symbols.py | 23 symbols = set() 42 symbols = set() 62 results = set() 84 results = set() 92 results = set()
|
D | test_genseccomp.py | 15 self.assertEqual(set(ranges[0].names), {"a", "b"}) 21 self.assertEqual(set(ranges[0].names), {"a"}) 24 self.assertEqual(set(ranges[1].names), {"b"})
|
/bionic/libc/private/ |
D | ScopedSignalBlocker.h | 33 sigset64_t set; in ScopedSignalBlocker() local 34 sigfillset64(&set); in ScopedSignalBlocker() 35 __rt_sigprocmask(SIG_BLOCK, &set, &old_set_, sizeof(sigset64_t)); in ScopedSignalBlocker() 40 sigset64_t set = {}; in ScopedSignalBlocker() local 41 sigaddset64(&set, signal); in ScopedSignalBlocker() 42 __rt_sigprocmask(SIG_BLOCK, &set, &old_set_, sizeof(sigset64_t)); in ScopedSignalBlocker()
|
/bionic/libc/kernel/tools/ |
D | kernel.py | 73 self.files = set() # set of files being parsed for headers 99 self.headers[header] = set() 148 return set(self.headers.keys()) 152 return set(self.headers.get(header)) 209 self.searched = set(headers) 217 self.arch_headers = set() 235 self.searched = set(headers) 244 needed[path] = set() 256 needed[path] = set() 265 self.needed[header] = set() [all …]
|
D | utils.py | 76 self.old_files = set() 77 self.new_files = set() 114 adds = set() 115 edits = set() 116 deletes = set()
|
/bionic/libc/malloc_hooks/ |
D | README.md | 8 There are two ways to enable these hooks, set a special system 9 property, or set a special environment variable and run your app/program. 35 When malloc is called and \_\_malloc\_hook has been set, then the hook 38 When realloc is called and \_\_realloc\_hook has been set, then the hook 41 When free is called and \_\_free\_hook has been set, then the hook 44 When memalign is called and \_\_memalign\_hook has been set, then the hook 47 For posix\_memalign, if \_\_memalign\_hook has been set, then the hook is 50 For aligned\_alloc, if \_\_memalign\_hook has been set, then the hook is 53 For calloc, if \_\_malloc\_hook has been set, then the hook function is 54 called, then the allocated memory is set to zero. [all …]
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 162 static std::set<CompilationType> generateCompilationTypes(const std::set<Arch> selected_architectur… in generateCompilationTypes() 163 const std::set<int>& selected_levels) { in generateCompilationTypes() 164 std::set<CompilationType> result; in generateCompilationTypes() 185 static std::unique_ptr<HeaderDatabase> compileHeaders(const std::set<CompilationType>& types, in compileHeaders() 264 static std::set<CompilationType> getCompilationTypes(const Declaration* decl) { in getCompilationTypes() 265 std::set<CompilationType> result; in getCompilationTypes() 273 static std::vector<T> Intersection(const std::set<T>& a, const std::set<T>& b) { in Intersection() 292 std::unordered_map<const Declaration*, std::set<CompilationType>> inline_definitions; in checkSymbol() 296 std::set<CompilationType> compilation_types = getCompilationTypes(decl); in checkSymbol() 351 static bool checkVersions(const std::set<CompilationType>& types, in checkVersions() [all …]
|
/bionic/libc/dns/resolv/ |
D | res_init.c | 672 res_setservers(res_state statp, const union res_sockaddr_union *set, int cnt) in res_setservers() argument 685 switch (set->sin.sin_family) { in res_setservers() 687 size = sizeof(set->sin); in res_setservers() 690 &set->sin, size); in res_setservers() 693 &set->sin, size); in res_setservers() 701 size = sizeof(set->sin6); in res_setservers() 704 &set->sin6, size); in res_setservers() 707 &set->sin6, size); in res_setservers() 717 set++; in res_setservers() 724 res_getservers(res_state statp, union res_sockaddr_union *set, int cnt) in res_getservers() argument [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
D | wcspbrk.c | 42 wcspbrk(const wchar_t *s, const wchar_t *set) in wcspbrk() argument 49 q = set; in wcspbrk()
|
D | wcscspn.c | 42 wcscspn(const wchar_t *s, const wchar_t *set) in wcscspn() argument 49 q = set; in wcscspn()
|
D | wcsspn.c | 42 wcsspn(const wchar_t *s, const wchar_t *set) in wcsspn() argument 49 q = set; in wcsspn()
|
/bionic/libc/malloc_debug/ |
D | README_api.md | 12 *info* is set to a buffer allocated by the call that contains all of 14 *overall\_size* is set to the total size of the buffer returned. If this 17 *total\_memory* is set to the sum of all allocation sizes that are live at 20 *backtrace\_size* is set to the maximum number of backtrace entries 43 incorrectly set to the number of frames in the backtrace. 56 Note, the size value in each allocation data structure will have bit 31 set
|