Rivoreo Source Code Repositories
src.rivoreo.one
/
systemd-stable
/
v244
/
.
/
src
/
basic
/
generate-af-list.sh
blob: 6987877ebfd2b80e456c169c7f399238936ab550 [
file
] [
log
] [
blame
] [
raw
]
#!/bin/sh
set
-
eu
$1
-
E
-
dM
-
include sys
/
socket
.
h
-
include
"$2"
-
include
"$3"
-
</
dev
/
null
|
\
grep
-
Ev
'AF_UNSPEC|AF_MAX'
|
\
awk
'/^#define[ \t]+AF_[^ \t]+[ \t]+[AP]F_[^ \t]/ { print $2; }'