Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/include/rump Fix #define ERRNO EANOTHERRNO.



details:   https://anonhg.NetBSD.org/src/rev/f033a4d4c6e3
branches:  trunk
changeset: 340524:f033a4d4c6e3
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Sep 10 16:21:32 2015 +0000

description:
Fix #define ERRNO EANOTHERRNO.

Was: #define RUMP_ERRNO EANOTHERRNO
Now: #define RUMP_ERRNO RUMP_EANOTHERRNO

pointed out by Sebastian Wicki on irc

diffstat:

 sys/rump/include/rump/makerumpdefs.sh |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r b0009e41f3e7 -r f033a4d4c6e3 sys/rump/include/rump/makerumpdefs.sh
--- a/sys/rump/include/rump/makerumpdefs.sh     Thu Sep 10 16:16:35 2015 +0000
+++ b/sys/rump/include/rump/makerumpdefs.sh     Thu Sep 10 16:21:32 2015 +0000
@@ -8,7 +8,7 @@
 rm -f rumpdefs.h
 exec 3>&1 > rumpdefs.h
 
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.26 2015/09/10 16:14:22 pooka Exp $ */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.27 2015/09/10 16:21:32 pooka Exp $ */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n\n'
 printf '#ifndef _RUMP_RUMPDEFS_H_\n'
 printf '#define _RUMP_RUMPDEFS_H_\n\n'
@@ -60,7 +60,8 @@
     | sed 's,/\*.*$,,'
 
 fromvers ../../../sys/errno.h
-sed -n '/#define[      ]*E/s/E[A-Z]*/RUMP_&/p' < ../../../sys/errno.h
+sed -n '/#define[      ]*E/s/\([       ]\)\(E[A-Z2][A-Z]*\)/\1RUMP_\2/gp' \
+    < ../../../sys/errno.h
 
 fromvers ../../../sys/reboot.h
 sed -n '/#define.*RB_[A-Z]/s/RB_/RUMP_RB_/gp' <../../../sys/reboot.h   \
@@ -129,7 +130,7 @@
 rm -f rumperr.h
 exec > rumperr.h
 
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.26 2015/09/10 16:14:22 pooka Exp $ */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.27 2015/09/10 16:21:32 pooka Exp $ */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n'
 
 fromvers ../../../sys/errno.h



Home | Main Index | Thread Index | Old Index