Lines Matching refs:set
652 int uv__nonblock_ioctl(int fd, int set) { in uv__nonblock_ioctl() argument
656 r = ioctl(fd, FIONBIO, &set); in uv__nonblock_ioctl()
667 int uv__nonblock_fcntl(int fd, int set) { in uv__nonblock_fcntl() argument
679 if (!!(r & O_NONBLOCK) == !!set) in uv__nonblock_fcntl()
682 if (set) in uv__nonblock_fcntl()
698 int uv__cloexec(int fd, int set) { in uv__cloexec() argument
703 if (set) in uv__cloexec()
1885 static int uv__cpu_count(cpuset_t* set) { in uv__cpu_count() argument
1891 int r = cpuset_isset(i, set); in uv__cpu_count()
1906 cpu_set_t set; in uv_available_parallelism() local
1908 memset(&set, 0, sizeof(set)); in uv_available_parallelism()
1914 if (0 == sched_getaffinity(0, sizeof(set), &set)) in uv_available_parallelism()
1915 rc = uv__cpu_count(&set); in uv_available_parallelism()
1923 cpuset_t set; in uv_available_parallelism() local
1925 memset(&set, 0, sizeof(set)); in uv_available_parallelism()
1927 if (0 == cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1, sizeof(set), &set)) in uv_available_parallelism()
1928 rc = uv__cpu_count(&set); in uv_available_parallelism()
1930 cpuset_t* set = cpuset_create(); in uv_available_parallelism() local
1931 if (set != NULL) { in uv_available_parallelism()
1932 if (0 == sched_getaffinity_np(getpid(), sizeof(set), &set)) in uv_available_parallelism()
1933 rc = uv__cpu_count(&set); in uv_available_parallelism()
1934 cpuset_destroy(set); in uv_available_parallelism()