logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

caps.awk (190B)


  1. BEGIN {
  2. print "static const char *const cap_names[] = {"
  3. }
  4. /^#define CAP_[^[:space:]]+[[:space:]]+[0-9]+[[:space:]]*$/ {
  5. printf "\t[%d] = \"%s\",\n", $3, tolower($2)
  6. }
  7. END {
  8. print "};"
  9. }