From: Wichert Akkerman Date: Sat, 31 Mar 2001 16:16:57 +0000 (+0000) Subject: Removed since we can use the general Linux copy X-Git-Tag: v4.5.18~1057 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf7156792ab23d21dc0bb313d03bfb8a2a153edf;p=strace Removed since we can use the general Linux copy --- diff --git a/ChangeLog b/ChangeLog index 65112b0d..b33d19cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-03-31 Wichert Akkerman + + * linux/{alpha,ia64,powerpc}/ioctlent.sh: removed, all archs use the + general Linux ioctlent.sh + 2001-03-31 Wichert Akkerman * linux/ioctlent.sh: add dir variable for location of kernel headers diff --git a/linux/alpha/ioctlent.sh b/linux/alpha/ioctlent.sh deleted file mode 100644 index dd5fd9da..00000000 --- a/linux/alpha/ioctlent.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh -# Copyright (c) 1993, 1994, 1995 Rick Sladkey -# All rights reserved. -# -# Copyright (c) 1995, 1996 Michael Elizabeth Chastain -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $Id$ - -# Files to find. -file_find='asm/*.h linux/*.h scsi/*.h' - -# Files to stop. -file_stop='asm/byteorder.h linux/config.h linux/pci.h linux/xd.h' - -# Defs to find. -# Work on the kernel source to convert all to df_iowr. -# Don't know how to find low-numbered ioctls in linux/mc146818rtc.h. -df_name='^[ ]*#[ ]*define[ ]+[A-Z_][A-Z0-9_]*[ ]+' -df_iowr='_IO|_IOR|_IOW|_IOWR' -df_NNNN='0[Xx](03|06|22|46|4B|4C|53|54|56|89|90)[0-9A-Fa-f][0-9A-Fa-f]' -df_4359='0[Xx]4359[0-9A-Fa-f][0-9A-Fa-f]' # linux/cyclades.h -df_470N='470[0-9]' # linux/fs.h (only in 1.2.13) -df_smix='MIXER_READ|MIXER_WRITE' # linux/soundcard.h -df_12NN='12[3-4][0-9]' # linux/umsdos_fs.h (only in 1.2.13) -df_tail='([() ]|$)' -def_find="$df_name($df_iowr|$df_NNNN|$df_4359|$df_470N|$df_smix|$df_12NN)$df_tail" - -# Defs to stop. -ds_tail='_MAGIC|_PATCH' -ds_fdmp='FD(DEF|GET|SET)MEDIAPRM' # linux/fd.h aliases (only in 1.2.13) -ds_mtio='MTIOC(GET|SET)CONFIG' # linux/mtio.h needs config (only in 1.2.13) -def_stop="$ds_tail|$ds_fdmp|$ds_mtio" - -# Validate arg count. -if [ $# -ne 1 ] -then - echo "usage: $0 include-directory" >&2 - exit 1 -fi - -# Grep through the files. -( - # Construct list: find files minus stop files. - cd $1 || exit - file_list=`(ls $file_find $file_stop $file_stop 2>/dev/null) | sort | uniq -u` - - # Grep matching #define lines. - # Transform to C structure form. - # Filter out stop list. - egrep "$def_find" $file_list | - sed -n -e 's/^\(.*\):#[ ]*define[ ]*\([A-Z_][A-Z0-9_]*\).*$/ { "\1", "\2", \2 },/p' | - egrep -v "$def_stop" -) > ioctlent.tmp - -# Generate the output file. -echo '/* This file is automatically generated by ioctlent.sh */' -echo -echo '#include ' -echo -echo '/* Needed for */' -echo '#define BAYCOM_DEBUG' -echo -echo '/* Needed for */' -echo '#include ' -echo '#include ' -echo -awk '{ print "#include <" substr($2, 2, length($2) - 3) ">" }' ioctlent.tmp | sort -u -echo -echo 'struct ioctlent ioctlent [] =' -echo '{' -cat ioctlent.tmp -echo '};' - -# Clean up. -rm -f ioctlent.tmp diff --git a/linux/ia64/ioctlent.sh b/linux/ia64/ioctlent.sh deleted file mode 100644 index dd5fd9da..00000000 --- a/linux/ia64/ioctlent.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh -# Copyright (c) 1993, 1994, 1995 Rick Sladkey -# All rights reserved. -# -# Copyright (c) 1995, 1996 Michael Elizabeth Chastain -# All rights reserved. -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions -# are met: -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above copyright -# notice, this list of conditions and the following disclaimer in the -# documentation and/or other materials provided with the distribution. -# 3. The name of the author may not be used to endorse or promote products -# derived from this software without specific prior written permission. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# $Id$ - -# Files to find. -file_find='asm/*.h linux/*.h scsi/*.h' - -# Files to stop. -file_stop='asm/byteorder.h linux/config.h linux/pci.h linux/xd.h' - -# Defs to find. -# Work on the kernel source to convert all to df_iowr. -# Don't know how to find low-numbered ioctls in linux/mc146818rtc.h. -df_name='^[ ]*#[ ]*define[ ]+[A-Z_][A-Z0-9_]*[ ]+' -df_iowr='_IO|_IOR|_IOW|_IOWR' -df_NNNN='0[Xx](03|06|22|46|4B|4C|53|54|56|89|90)[0-9A-Fa-f][0-9A-Fa-f]' -df_4359='0[Xx]4359[0-9A-Fa-f][0-9A-Fa-f]' # linux/cyclades.h -df_470N='470[0-9]' # linux/fs.h (only in 1.2.13) -df_smix='MIXER_READ|MIXER_WRITE' # linux/soundcard.h -df_12NN='12[3-4][0-9]' # linux/umsdos_fs.h (only in 1.2.13) -df_tail='([() ]|$)' -def_find="$df_name($df_iowr|$df_NNNN|$df_4359|$df_470N|$df_smix|$df_12NN)$df_tail" - -# Defs to stop. -ds_tail='_MAGIC|_PATCH' -ds_fdmp='FD(DEF|GET|SET)MEDIAPRM' # linux/fd.h aliases (only in 1.2.13) -ds_mtio='MTIOC(GET|SET)CONFIG' # linux/mtio.h needs config (only in 1.2.13) -def_stop="$ds_tail|$ds_fdmp|$ds_mtio" - -# Validate arg count. -if [ $# -ne 1 ] -then - echo "usage: $0 include-directory" >&2 - exit 1 -fi - -# Grep through the files. -( - # Construct list: find files minus stop files. - cd $1 || exit - file_list=`(ls $file_find $file_stop $file_stop 2>/dev/null) | sort | uniq -u` - - # Grep matching #define lines. - # Transform to C structure form. - # Filter out stop list. - egrep "$def_find" $file_list | - sed -n -e 's/^\(.*\):#[ ]*define[ ]*\([A-Z_][A-Z0-9_]*\).*$/ { "\1", "\2", \2 },/p' | - egrep -v "$def_stop" -) > ioctlent.tmp - -# Generate the output file. -echo '/* This file is automatically generated by ioctlent.sh */' -echo -echo '#include ' -echo -echo '/* Needed for */' -echo '#define BAYCOM_DEBUG' -echo -echo '/* Needed for */' -echo '#include ' -echo '#include ' -echo -awk '{ print "#include <" substr($2, 2, length($2) - 3) ">" }' ioctlent.tmp | sort -u -echo -echo 'struct ioctlent ioctlent [] =' -echo '{' -cat ioctlent.tmp -echo '};' - -# Clean up. -rm -f ioctlent.tmp diff --git a/linux/powerpc/ioctlent.sh b/linux/powerpc/ioctlent.sh deleted file mode 100644 index c03fa829..00000000 --- a/linux/powerpc/ioctlent.sh +++ /dev/null @@ -1,21 +0,0 @@ -#! /bin/sh - -files="/home/wichert/include/linux/* /home/wichert/include/asm/* /home/wichert/include/scsi/*" - -# Build the list of all ioctls -regexp='^[[:space:]]*#[[:space:]]*define[[:space:]]\+[A-Z][A-Z0-9_]*[[:space:]]\+_\(IO\|IOW\|IOR\|IOWR\)\>' -grep $regexp $files 2>/dev/null | \ - sed -ne 's/^\(.*\):[[:space:]]*#[[:space:]]*define[[:space:]]*\([A-Z0-9_]*\)[[:space:]]*_I.*(\([^[,]*\),\([^,)]*\).*/ { "\1", "\2", _IOC(_IOC_NONE,\3,\4,0) },/p' \ - > ioctls.h - -# Some use a special base to offset their ioctls on. Extract that as well. -: > ioctldefs.h - -bases=$(sed -ne 's/.*_IOC_NONE,\([A-Z][A-Z0-9_]\+\),.*/\1/p' ioctls.h | uniq | sort) -for base in $bases ; do - echo "Looking for $base" - regexp="^[[:space:]]*#[[:space:]]*define[[:space:]]\+$base" - grep -h $regexp 2>/dev/null $files | grep -v '\<_IO' >> ioctldefs.h -done - -