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

Side by Side Diff: fusl/include/sys/param.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « fusl/include/sys/mtio.h ('k') | fusl/include/sys/personality.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _SYS_PARAM_H
2 #define _SYS_PARAM_H
3
4 #define MAXSYMLINKS 20
5 #define MAXHOSTNAMELEN 64
6 #define MAXNAMLEN 255
7 #define MAXPATHLEN 4096
8 #define NBBY 8
9 #define NGROUPS 32
10 #define CANBSIZE 255
11 #define NOFILE 256
12 #define NCARGS 131072
13 #define DEV_BSIZE 512
14 #define NOGROUP (-1)
15
16 #undef MIN
17 #undef MAX
18 #define MIN(a,b) (((a)<(b))?(a):(b))
19 #define MAX(a,b) (((a)>(b))?(a):(b))
20
21 #define __bitop(x,i,o) ((x)[(i)/8] o (1<<(i)%8))
22 #define setbit(x,i) __bitop(x,i,|=)
23 #define clrbit(x,i) __bitop(x,i,&=~)
24 #define isset(x,i) __bitop(x,i,&)
25 #define isclr(x,i) !isset(x,i)
26
27 #define howmany(n,d) (((n)+((d)-1))/(d))
28 #define roundup(n,d) (howmany(n,d)*(d))
29 #define powerof2(n) !(((n)-1) & (n))
30
31 #include <sys/resource.h>
32 #include <endian.h>
33 #include <limits.h>
34
35 #endif
OLDNEW
« no previous file with comments | « fusl/include/sys/mtio.h ('k') | fusl/include/sys/personality.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698