diff options
author | Roland McGrath <roland@gnu.org> | 1995-02-18 01:27:10 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1995-02-18 01:27:10 +0000 |
commit | 28f540f45bbacd939bfd07f213bcad2bf730b1bf (patch) | |
tree | 15f07c4c43d635959c6afee96bde71fb1b3614ee /sysdeps/unix/ioctls.awk | |
download | glibc-28f540f45bbacd939bfd07f213bcad2bf730b1bf.tar.gz glibc-28f540f45bbacd939bfd07f213bcad2bf730b1bf.tar.xz glibc-28f540f45bbacd939bfd07f213bcad2bf730b1bf.zip |
initial import
Diffstat (limited to 'sysdeps/unix/ioctls.awk')
-rw-r--r-- | sysdeps/unix/ioctls.awk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/ioctls.awk b/sysdeps/unix/ioctls.awk new file mode 100644 index 0000000000..b05140af7a --- /dev/null +++ b/sysdeps/unix/ioctls.awk @@ -0,0 +1,10 @@ +BEGIN { special = 0 } + +/REQUESTS/ { nreqs = split(requests, reqs) + for (i = 1; i <= nreqs; ++i) + printf "#ifdef\t%s\n DEFINE(\"%s\", %s);\n#endif\n", \ + reqs[i], reqs[i], reqs[i] + special = 1 } + + +{ if (special == 0) print $0; special = 0 } |