Changeset a8b0618 for libcfa/src
- Timestamp:
- Jun 14, 2021, 4:01:48 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 07033ce
- Parents:
- 9824500
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/device/cpu.cfa
r9824500 ra8b0618 144 144 // Count number of cpus in the system 145 145 static int count_cpus(void) { 146 const char * fpath = "/sys/devices/system/cpu/p ossible";146 const char * fpath = "/sys/devices/system/cpu/present"; 147 147 int fd = open(fpath, 0, O_RDONLY); 148 148 /* paranoid */ verifyf(fd >= 0, "Could not open file %s", fpath);
Note: See TracChangeset
for help on using the changeset viewer.