forked from DGNum/liminix
74cf3e0711
we use an ugly bit of C preprocessor to get the values from header files, because certain constants are different on MIPS than on other architectures
11 lines
181 B
C
11 lines
181 B
C
|
|
#define MACRO(c) [#c] = c,
|
|
|
|
return {
|
|
MACRO(SOCK_STREAM)
|
|
MACRO(SOCK_DGRAM)
|
|
MACRO(SOCK_RAW)
|
|
MACRO(AF_LOCAL)
|
|
MACRO(AF_NETLINK)
|
|
MACRO(NETLINK_KOBJECT_UEVENT)
|
|
}
|