View | Details | Raw Unified | Return to bug 45683
Collapse All | Expand All

(-)mono-4.6.1.org/mono/utils/mono-proclib.c (+12 lines)
Lines 61-66 Link Here
61
#define USE_SYSCTL 1
61
#define USE_SYSCTL 1
62
#endif
62
#endif
63
63
64
#ifndef CPU_COUNT
65
static int
66
CPU_COUNT(cpu_set_t *set)
67
{
68
    int i, count = 0;
69
    for (int i = 0; i < CPU_SETSIZE; i++)
70
        if (CPU_ISSET(i, set))
71
            count++;
72
    return count;
73
}
74
# endif /* !CPU_COUNT */
75
64
/**
76
/**
65
 * mono_process_list:
77
 * mono_process_list:
66
 * @size: a pointer to a location where the size of the returned array is stored
78
 * @size: a pointer to a location where the size of the returned array is stored

Return to bug 45683