summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2018-02-11 18:45:51 +0000
committerotto <otto@openbsd.org>2018-02-11 18:45:51 +0000
commit72adc1106e865942b6f598f4185329641216db39 (patch)
tree36dc39c5a1b4884b421cb594c24476a7e184b79f
parentMake sorting in the pcache view work. This allows us to sort on all (diff)
downloadwireguard-openbsd-72adc1106e865942b6f598f4185329641216db39.tar.xz
wireguard-openbsd-72adc1106e865942b6f598f4185329641216db39.zip
fix madvise(2) flags matching; ok deraadt@ tom@
-rw-r--r--usr.bin/kdump/mksubr4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 8771356341a..426221c86cb 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: mksubr,v 1.33 2017/11/29 15:53:44 guenther Exp $
+# $OpenBSD: mksubr,v 1.34 2018/02/11 18:45:51 otto Exp $
#
# Copyright (c) 2006 David Kirchner <dpk@dpk.net>
#
@@ -329,7 +329,7 @@ auto_switch_type "pathconfname" "_PC_[_A-Z]+[[:space:]]+[0-9]+" "sys/unistd.h"
auto_switch_type "rlimitname" "RLIMIT_[A-Z]+[[:space:]]+[0-9]+" "sys/resource.h"
auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h"
auto_switch_type "prioname" "PRIO_[A-Z]+[[:space:]]+[0-9]" "sys/resource.h"
-auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h"
+auto_switch_type "madvisebehavname" "MADV_[A-Z]+[[:space:]]+[0-9A-Z_]+" "sys/mman.h"
auto_switch_type "msyncflagsname" "MS_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h"
auto_switch_type "clocktypename" "CLOCK_[_A-Z]+[[:space:]]+[0-9]+" "sys/_time.h"
#auto_switch_type "schedpolicyname" "SCHED_[A-Z]+[[:space:]]+[0-9]+" "sched.h"