mkioctls (284289) | mkioctls (284406) |
---|---|
1#!/bin/sh 2# | 1#!/bin/sh 2# |
3# $FreeBSD: head/usr.bin/kdump/mkioctls 284289 2015-06-11 21:13:05Z sjg $ | 3# $FreeBSD: head/usr.bin/kdump/mkioctls 284406 2015-06-15 06:44:22Z rodrigc $ |
4# 5# When editing this script, keep in mind that truss also uses it. 6# 7 8set -e 9 10if [ $# -ne 2 -o \( $1 != "print" -a $1 != "return" \) ]; then 11 echo "usage: sh $0 print|return include-dir" --- 22 unchanged lines hidden (view full) --- 34 ioctl_includes="$ioctl_includes#include <sys/diskpc98.h>\\n" 35 ;; 36*) 37 ioctl_includes="$ioctl_includes#include <sys/diskmbr.h>\\n" 38 ;; 39esac 40 41awk -v x="$ioctl_includes" 'BEGIN {print x}' | | 4# 5# When editing this script, keep in mind that truss also uses it. 6# 7 8set -e 9 10if [ $# -ne 2 -o \( $1 != "print" -a $1 != "return" \) ]; then 11 echo "usage: sh $0 print|return include-dir" --- 22 unchanged lines hidden (view full) --- 34 ioctl_includes="$ioctl_includes#include <sys/diskpc98.h>\\n" 35 ;; 36*) 37 ioctl_includes="$ioctl_includes#include <sys/diskmbr.h>\\n" 38 ;; 39esac 40 41awk -v x="$ioctl_includes" 'BEGIN {print x}' | |
42 $CPP -nostdinc -I$1 -dM -DCOMPAT_43TTY - | | 42 $CPP -nostdinc -I$includedir -dM -DCOMPAT_43TTY - | |
43 awk -v ioctl_includes="$ioctl_includes" -v style="$style" ' 44BEGIN { 45 print "/* XXX obnoxious prerequisites. */" 46 print "#define COMPAT_43" 47 print "#define COMPAT_43TTY" 48 print "#include <sys/param.h>" 49 print "#include <sys/devicestat.h>" 50 print "#include <sys/disklabel.h>" --- 68 unchanged lines hidden --- | 43 awk -v ioctl_includes="$ioctl_includes" -v style="$style" ' 44BEGIN { 45 print "/* XXX obnoxious prerequisites. */" 46 print "#define COMPAT_43" 47 print "#define COMPAT_43TTY" 48 print "#include <sys/param.h>" 49 print "#include <sys/devicestat.h>" 50 print "#include <sys/disklabel.h>" --- 68 unchanged lines hidden --- |