Home
last modified time | relevance | path

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

12345678910>>...20

/bionic/libc/include/sys/
Dselect.h50 #define __FDS_BITS(set) (__BIONIC_CAST(static_cast, fd_set*, set)->fds_bits) argument
53 #define FD_ZERO(set) \ argument
57 (set)->fds_bits[__i] = 0; \
66 #define FD_CLR(fd, set) __FD_CLR_chk(fd, set, __bos(set)) argument
67 #define FD_SET(fd, set) __FD_SET_chk(fd, set, __bos(set)) argument
68 #define FD_ISSET(fd, set) __FD_ISSET_chk(fd, set, __bos(set)) argument
70 #define FD_CLR(fd, set) (__FDS_BITS(set)[__FDELT(fd)] &= ~__FDMASK(fd)) argument
71 #define FD_SET(fd, set) (__FDS_BITS(set)[__FDELT(fd)] |= __FDMASK(fd)) argument
72 #define FD_ISSET(fd, set) ((__FDS_BITS(set)[__FDELT(fd)] & __FDMASK(fd)) != 0) argument
/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 …]
/bionic/libc/include/android/
Dlegacy_signal_inlines.h63 static __inline int sigismember(const sigset_t *set, int signum) { in sigismember() argument
66 const unsigned long *local_set = (const unsigned long *)set; in sigismember()
67 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigismember()
74 static __inline int sigaddset(sigset_t *set, int signum) { in sigaddset() argument
77 unsigned long *local_set = (unsigned long *)set; in sigaddset()
78 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigaddset()
86 static __inline int sigdelset(sigset_t *set, int signum) { in sigdelset() argument
89 unsigned long *local_set = (unsigned long *)set; in sigdelset()
90 if (set == NULL || bit < 0 || bit >= (int)(8 * sizeof(sigset_t))) { in sigdelset()
98 static __inline int sigemptyset(sigset_t *set) { in sigemptyset() argument
[all …]
/bionic/libc/include/
Dsched.h76 int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) __INTRODUCED_IN(12);
77 int sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) __INTRODUCED_IN(12);
79 #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
101 void __sched_cpufree(cpu_set_t* set) __INTRODUCED_IN(12);
103 #define CPU_ZERO_S(setsize, set) __builtin_memset(set, 0, setsize) argument
[all …]
/bionic/libc/kernel/tools/
Ddefaults.py91 kernel_known_arm_statics = set(
96 kernel_known_arm64_statics = set(
101 kernel_known_mips_statics = set(
106 kernel_known_x86_statics = set(
111 kernel_known_generic_statics = set(
151 kernel_ignored_macros = set(
/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([
115 macro_stuff = set([
133 linux_stuff = set([
140 std_stuff = set([
148 weird_stuff = set([
170 libresolv_stuff = set([
[all …]
/bionic/libc/bionic/
Dsigrelse.cpp32 sigset_t set; in sigrelse() local
33 if (sigemptyset(&set) == -1) return -1; in sigrelse()
34 if (sigaddset(&set, sig) == -1) return -1; in sigrelse()
35 return sigprocmask(SIG_UNBLOCK, &set, nullptr); in sigrelse()
Dsighold.cpp32 sigset_t set; in sighold() local
33 if (sigemptyset(&set) == -1) return -1; in sighold()
34 if (sigaddset(&set, sig) == -1) return -1; in sighold()
35 return sigprocmask(SIG_BLOCK, &set, nullptr); in sighold()
Dsigpause.cpp32 sigset_t set; in sigpause() local
33 if (sigprocmask(SIG_SETMASK, nullptr, &set) == -1) return -1; in sigpause()
34 if (sigdelset(&set, sig) == -1) return -1; in sigpause()
35 return sigsuspend(&set); in sigpause()
Dsigpending.cpp36 kernel_sigset_t set; in sigpending() local
37 int result = __rt_sigpending(&set, sizeof(set)); in sigpending()
39 *bionic_set = set.bionic; in sigpending()
Dsigfillset.cpp33 int sigfillset(sigset_t* set) { in sigfillset() argument
34 if (set == NULL) { in sigfillset()
38 memset(set, ~0, sizeof(sigset_t)); in sigfillset()
Dsigemptyset.cpp33 int sigemptyset(sigset_t* set) { in sigemptyset() argument
34 if (set == NULL) { in sigemptyset()
38 memset(set, 0, sizeof(sigset_t)); in sigemptyset()
Dsigsuspend.cpp36 kernel_sigset_t set(bionic_set); in sigsuspend() local
37 return __rt_sigsuspend(&set, sizeof(set)); in sigsuspend()
Dsigismember.cpp32 int sigismember(const sigset_t* set, int signum) { in sigismember() argument
34 const unsigned long* local_set = reinterpret_cast<const unsigned long*>(set); in sigismember()
35 if (set == NULL || bit < 0 || bit >= static_cast<int>(8*sizeof(sigset_t))) { in sigismember()
Dsigaddset.cpp32 int sigaddset(sigset_t* set, int signum) { in sigaddset() argument
34 unsigned long* local_set = reinterpret_cast<unsigned long*>(set); in sigaddset()
35 if (set == NULL || bit < 0 || bit >= static_cast<int>(8*sizeof(sigset_t))) { in sigaddset()
Dsigdelset.cpp32 int sigdelset(sigset_t* set, int signum) { in sigdelset() argument
34 unsigned long* local_set = reinterpret_cast<unsigned long*>(set); in sigdelset()
35 if (set == NULL || bit < 0 || bit >= static_cast<int>(8*sizeof(sigset_t))) { in sigdelset()
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()
Dsigwaitinfo.cpp31 int sigwaitinfo(const sigset_t* set, siginfo_t* info) { in sigwaitinfo() argument
32 return sigtimedwait(set, info, NULL); in sigwaitinfo()
/bionic/libc/arch-mips/bionic/
Dvfork.S37 .set noreorder
41 .set push
42 .set mips32r2
44 .set pop
/bionic/libc/arch-mips64/syscalls/
Dsetitimer.S6 .set push
7 .set noreorder
24 .set pop
Dmount.S6 .set push
7 .set noreorder
24 .set pop
Dsched_setaffinity.S6 .set push
7 .set noreorder
24 .set pop
Dmlock.S6 .set push
7 .set noreorder
24 .set pop
Depoll_ctl.S6 .set push
7 .set noreorder
24 .set pop
Dgetsid.S6 .set push
7 .set noreorder
24 .set pop

12345678910>>...20