Home
last modified time | relevance | path

Searched refs:set_size (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/bionic/
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()
Dfortify.cpp81 int __FD_ISSET_chk(int fd, const fd_set* set, size_t set_size) { in __FD_ISSET_chk() argument
82 __check_fd_set("FD_ISSET", fd, set_size); in __FD_ISSET_chk()
86 void __FD_CLR_chk(int fd, fd_set* set, size_t set_size) { in __FD_CLR_chk() argument
87 __check_fd_set("FD_CLR", fd, set_size); in __FD_CLR_chk()
91 void __FD_SET_chk(int fd, fd_set* set, size_t set_size) { in __FD_SET_chk() argument
92 __check_fd_set("FD_SET", fd, set_size); in __FD_SET_chk()
/bionic/libc/private/
Dbionic_fortify.h54 static inline void __check_fd_set(const char* fn, int fd, size_t set_size) { in __check_fd_set() argument
61 if (__predict_false(set_size < sizeof(fd_set))) { in __check_fd_set()
62 __fortify_fatal("%s: set size %zu is too small to be an fd_set", fn, set_size); in __check_fd_set()
/bionic/tests/
Dsched_test.cpp192 int set_size = 64; in TEST() local
193 size_t size = CPU_ALLOC_SIZE(set_size); in TEST()
194 cpu_set_t* set = CPU_ALLOC(set_size); in TEST()
197 for (int i = 0; i < set_size; i++) { in TEST()
204 for (int i = 0; i < set_size; i++) { in TEST()
207 ASSERT_EQ(set_size - i - 1, CPU_COUNT_S(size, set)); in TEST()