summaryrefslogtreecommitdiff
path: root/usr.bin/kdump/mksubr
diff options
context:
space:
mode:
authorMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-19 18:20:13 +0000
committerMatthew Dempsky <matthew@cvs.openbsd.org>2011-07-19 18:20:13 +0000
commita879809cfaf556cdf54894f91ea968ccad8e8c84 (patch)
tree039743dadb0d2cfa4ee275623ec1a63627d17c46 /usr.bin/kdump/mksubr
parent1cc10b6938d5899d30e9566130563b5295bbf628 (diff)
Add fancy kdump support for the openat(2) system calls.
ok otto@
Diffstat (limited to 'usr.bin/kdump/mksubr')
-rw-r--r--usr.bin/kdump/mksubr5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 6652aa99a81..29150f81e9c 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: mksubr,v 1.5 2011/07/08 19:29:44 otto Exp $
+# $OpenBSD: mksubr,v 1.6 2011/07/19 18:20:12 matthew Exp $
#
# Copyright (c) 2006 David Kirchner <dpk@dpk.net>
#
@@ -334,6 +334,7 @@ _EOF_
auto_or_type "modename" "S_[A-Z]+[[:space:]]+[0-6]{7}" "sys/stat.h"
auto_or_type "flagsname" "O_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/fcntl.h"
+auto_or_type "atflagsname" "AT_[A-Z_]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/fcntl.h"
auto_or_type "accessmodename" "[A-Z]_OK[[:space:]]+0?x?[0-9A-Fa-f]+" "sys/unistd.h"
auto_or_type "mmapprotname" "PROT_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/mman.h"
auto_or_type "mmapflagsname" "MAP_[A-Z]+[[:space:]]+0x[0-9A-Fa-f]+" "sys/mman.h"
@@ -382,7 +383,7 @@ fcntlcmdname (int cmd, int arg)
{
switch (cmd) {
_EOF_
-egrep "^#[[:space:]]*define[[:space:]]+F_[A-Z]+[[:space:]]+[0-9]+[[:space:]]*" \
+egrep "^#[[:space:]]*define[[:space:]]+F_[A-Z_]+[[:space:]]+[0-9]+[[:space:]]*" \
$include_dir/sys/fcntl.h | \
awk 'BEGIN { o=0 } { for (i = 1; i <= NF; i++) \
if ($i ~ /define/) \