Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: fusl/src/conf/legacy.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include <sys/sysinfo.h> 1 #include <sys/sysinfo.h>
2 #include <unistd.h> 2 #include <unistd.h>
3 3
4 int get_nprocs_conf() 4 int get_nprocs_conf() {
5 { 5 return sysconf(_SC_NPROCESSORS_CONF);
6 » return sysconf(_SC_NPROCESSORS_CONF);
7 } 6 }
8 7
9 int get_nprocs() 8 int get_nprocs() {
10 { 9 return sysconf(_SC_NPROCESSORS_ONLN);
11 » return sysconf(_SC_NPROCESSORS_ONLN);
12 } 10 }
13 11
14 long get_phys_pages() 12 long get_phys_pages() {
15 { 13 return sysconf(_SC_PHYS_PAGES);
16 » return sysconf(_SC_PHYS_PAGES);»
17 } 14 }
18 15
19 long get_avphys_pages() 16 long get_avphys_pages() {
20 { 17 return sysconf(_SC_AVPHYS_PAGES);
21 » return sysconf(_SC_AVPHYS_PAGES);»
22 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698