1210753Srpaulo#!/bin/sh 2210753Srpaulo# 3210753Srpaulo# CDDL HEADER START 4210753Srpaulo# 5210753Srpaulo# The contents of this file are subject to the terms of the 6210753Srpaulo# Common Development and Distribution License, Version 1.0 only 7210753Srpaulo# (the "License"). You may not use this file except in compliance 8210753Srpaulo# with the License. 9210753Srpaulo# 10210753Srpaulo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11210753Srpaulo# or http://www.opensolaris.org/os/licensing. 12210753Srpaulo# See the License for the specific language governing permissions 13210753Srpaulo# and limitations under the License. 14210753Srpaulo# 15210753Srpaulo# When distributing Covered Code, include this CDDL HEADER in each 16210753Srpaulo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17210753Srpaulo# If applicable, add the following below this CDDL HEADER, with the 18210753Srpaulo# fields enclosed by brackets "[]" replaced with your own identifying 19210753Srpaulo# information: Portions Copyright [yyyy] [name of copyright owner] 20210753Srpaulo# 21210753Srpaulo# CDDL HEADER END 22210753Srpaulo# 23210753Srpaulo# 24210753Srpaulo# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 25210753Srpaulo# Use is subject to license terms. 26210753Srpaulo# 27210753Srpaulo#ident "%Z%%M% %I% %E% SMI" 28210753Srpaulo 29210753Srpauloecho "\ 30210753Srpaulo/*\n\ 31210753Srpaulo * Copyright 2003 Sun Microsystems, Inc. All rights reserved.\n\ 32210753Srpaulo * Use is subject to license terms.\n\ 33210753Srpaulo */\n\ 34210753Srpaulo\n\ 35210753Srpaulo#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n" 36210753Srpaulo 37210753Srpaulopattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$' 38210753Srpauloreplace='inline int \1 = \2;@#pragma D binding "1.0" \1' 39210753Srpaulo 40210753Srpaulosed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n' 41