Home
last modified time | relevance | path

Searched refs:set (Results 1 – 25 of 75) sorted by relevance

123

/bionic/libc/bionic/
Dsignal.cpp60 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()
89 int SigDelSet(SigSetT* set, int sig) { in SigDelSet() argument
91 unsigned long* local_set = reinterpret_cast<unsigned long*>(set); in SigDelSet()
92 if (set == nullptr || bit < 0 || bit >= static_cast<int>(8*sizeof(*set))) { in SigDelSet()
[all …]
Dpoll.cpp53 SigSetConverter set; in ppoll() local
56 set = {}; in ppoll()
57 set.sigset = *ss; in ppoll()
58 ss_ptr = &set.sigset64; in ppoll()
102 SigSetConverter set; in pselect() local
105 set = {}; in pselect()
106 set.sigset = *ss; in pselect()
107 ss_ptr = &set.sigset64; in pselect()
Dsys_epoll.cpp51 SigSetConverter set; in epoll_pwait() local
54 set = {}; in epoll_pwait()
55 set.sigset = *ss; in epoll_pwait()
56 ss_ptr = &set.sigset64; in epoll_pwait()
Dsched_getaffinity.cpp35 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()
Dsys_signalfd.cpp36 SigSetConverter set = {}; in signalfd() local
37 set.sigset = *mask; in signalfd()
38 return signalfd64(fd, &set.sigset64, flags); in signalfd()
Dsched_cpualloc.c40 void __sched_cpufree(cpu_set_t* set) in __sched_cpufree() argument
42 free(set); in __sched_cpufree()
Dsched_cpucount.c31 int __sched_cpucount(size_t setsize, const cpu_set_t* set) { in __sched_cpucount() argument
37 count += __builtin_popcountl(set->__bits[nn]); in __sched_cpucount()
/bionic/libc/include/sys/
Dselect.h63 #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
85 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument
87 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument
89 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument
94 #define FD_CLR(fd, set) __FD_CLR(fd, set) argument
[all …]
/bionic/tests/
Dsched_test.cpp71 cpu_set_t set; in TEST() local
73 CPU_ZERO(&set); in TEST()
74 CPU_SET(0, &set); in TEST()
75 CPU_SET(17, &set); in TEST()
77 ASSERT_EQ(i == 0 || i == 17, CPU_ISSET(i, &set)); in TEST()
81 CPU_SET(CPU_SETSIZE, &set); in TEST()
82 ASSERT_FALSE(CPU_ISSET(CPU_SETSIZE, &set)); in TEST()
86 cpu_set_t set; in TEST() local
88 CPU_ZERO(&set); in TEST()
89 ASSERT_EQ(0, CPU_COUNT(&set)); in TEST()
[all …]
Dsignal_test.cpp41 static int SIGNAL_MAX(SigSetT* set) { in SIGNAL_MAX() argument
42 return sizeof(*set) * 8; in SIGNAL_MAX()
54 SigSetT set = {}; in TestSigSet1() local
56 ASSERT_EQ(0, fn(&set)); in TestSigSet1()
68 SigSetT set = {}; in TestSigSet2() local
72 ASSERT_EQ(-1, fn(&set, 0)); in TestSigSet2()
77 ASSERT_EQ(-1, fn(&set, SIGNAL_MAX(&set) + 1)); in TestSigSet2()
82 ASSERT_EQ(0, fn(&set, SIGNAL_MIN())); in TestSigSet2()
84 ASSERT_EQ(0, fn(&set, SIGNAL_MAX(&set))); in TestSigSet2()
862 sigset_t set; in TestSigholdSigpauseSigrelse() local
[all …]
Ddirent_test.cpp31 static void CheckProcSelf(std::set<std::string>& names) { in CheckProcSelf()
42 std::set<std::string>& name_set, std::vector<std::string>& name_list) { in ScanEntries()
62 std::set<std::string> name_set; in TEST()
75 std::set<std::string> name_set64; in TEST()
104 std::set<std::string> name_set, name_set_at, name_set_at64; in TEST()
205 std::set<std::string> name_set; in TEST()
222 std::set<std::string> name_set; in TEST()
239 std::set<std::string> name_set; in TEST()
257 std::set<std::string> name_set; in TEST()
/bionic/libc/include/android/
Dlegacy_signal_inlines.h62 static __inline int sigismember(const sigset_t *set, int signum) { in sigismember() argument
65 const unsigned long *local_set = (const unsigned long *)set; in sigismember()
66 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigismember()
73 static __inline int sigaddset(sigset_t *set, int signum) { in sigaddset() argument
76 unsigned long *local_set = (unsigned long *)set; in sigaddset()
77 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigaddset()
85 static __inline int sigdelset(sigset_t *set, int signum) { in sigdelset() argument
88 unsigned long *local_set = (unsigned long *)set; in sigdelset()
89 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigdelset()
97 static __inline int sigemptyset(sigset_t *set) { in sigemptyset() argument
[all …]
/bionic/libc/include/
Dsched.h79 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set) argument
80 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set) argument
81 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set) argument
82 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set) argument
83 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) argument
98 #define CPU_FREE(set) __sched_cpufree((set)) argument
103 #define CPU_ZERO_S(setsize, set) __builtin_memset(set, 0, setsize) argument
105 #define CPU_SET_S(cpu, setsize, set) \ argument
109 (set)->__bits[__CPU_ELT(__cpu)] |= __CPU_MASK(__cpu); \
112 #define CPU_CLR_S(cpu, setsize, set) \ argument
[all …]
/bionic/libc/tools/
Dcheck-symbols-glibc.py41 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 …]
Dsymbols.py23 symbols = set()
42 symbols = set()
61 results = set()
79 results = set()
87 results = set()
/bionic/libc/private/
DScopedSignalBlocker.h33 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/
Dkernel.py73 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))
210 self.searched = set(headers)
218 self.arch_headers = set()
236 self.searched = set(headers)
245 needed[path] = set()
257 needed[path] = set()
266 self.needed[header] = set()
[all …]
Ddefaults.py40 kernel_structs_to_remove = set(
107 kernel_struct_replacements = set(
121 kernel_known_generic_statics = set(
Dutils.py77 self.old_files = set()
78 self.new_files = set()
115 adds = set()
116 edits = set()
117 deletes = set()
/bionic/libc/malloc_hooks/
DREADME.md8 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/
Dversioner.cpp162 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/
Dres_init.c672 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/malloc_debug/
DREADME_api.md12 *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
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcspbrk.c42 wcspbrk(const wchar_t *s, const wchar_t *set) in wcspbrk() argument
49 q = set; in wcspbrk()
Dwcscspn.c42 wcscspn(const wchar_t *s, const wchar_t *set) in wcscspn() argument
49 q = set; in wcscspn()

123