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 snarf fcntl definitions



details:   https://anonhg.NetBSD.org/src/rev/2a22ad3d9eec
branches:  trunk
changeset: 343402:2a22ad3d9eec
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Feb 02 01:15:24 2016 +0000

description:
snarf fcntl definitions

diffstat:

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

diffs (42 lines):

diff -r 9def860c7d8b -r 2a22ad3d9eec sys/rump/include/rump/makerumpdefs.sh
--- a/sys/rump/include/rump/makerumpdefs.sh     Tue Feb 02 01:14:26 2016 +0000
+++ b/sys/rump/include/rump/makerumpdefs.sh     Tue Feb 02 01:15:24 2016 +0000
@@ -8,7 +8,7 @@
 rm -f rumpdefs.h
 exec 3>&1 > rumpdefs.h
 
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.28 2015/09/15 14:55:12 pooka Exp $ */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 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'
@@ -53,6 +53,11 @@
 fromvers ../../../sys/fcntl.h
 sed -n '/#define       O_[A-Z]*        *0x/s/O_/RUMP_O_/gp' \
     < ../../../sys/fcntl.h
+sed -n '/#define       F_[A-Z_]*       *0x/s/F_/RUMP_F_/gp' \
+    < ../../../sys/fcntl.h
+sed -n '/#define       F_[A-Z_]*       *(/s/F_/RUMP_F_/gp' \
+    < ../../../sys/fcntl.h
+sed -n '/#define[      ]*_FCN/{:t;N;/\\$/bt;s/_FCN/RUMP__FCN/g;s/F_[A-Z]/RUMP_&/gp}' <../../../sys/fcntl.h | sed 's,/\*.*$,,'
 
 fromvers ../../../sys/vnode.h
 sed -n '/enum vtype.*{/{s/vtype/rump_&/;s/ V/ RUMP_V/gp;}' <../../../sys/vnode.h
@@ -130,7 +135,7 @@
 echo Generating rumperr.h
 rm -f rumperr.h
 exec > rumperr.h
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.28 2015/09/15 14:55:12 pooka Exp $ */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 pooka Exp $ */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n'
 
 fromvers ../../../sys/errno.h
@@ -171,7 +176,7 @@
 echo Generating rumperrno2host.h 1>&3
 rm -f rumperrno2host.h
 exec > rumperrno2host.h
-printf '/*     $NetBSD: makerumpdefs.sh,v 1.28 2015/09/15 14:55:12 pooka Exp $ */\n\n'
+printf '/*     $NetBSD: makerumpdefs.sh,v 1.29 2016/02/02 01:15:24 pooka Exp $ */\n\n'
 printf '/*\n *\tAUTOMATICALLY GENERATED.  DO NOT EDIT.\n */\n'
 
 fromvers ../../../sys/errno.h



Home | Main Index | Thread Index | Old Index