11670a1c2SRui Paulo#!/bin/sh 21670a1c2SRui Paulo# 31670a1c2SRui Paulo# CDDL HEADER START 41670a1c2SRui Paulo# 51670a1c2SRui Paulo# The contents of this file are subject to the terms of the 61670a1c2SRui Paulo# Common Development and Distribution License, Version 1.0 only 71670a1c2SRui Paulo# (the "License"). You may not use this file except in compliance 81670a1c2SRui Paulo# with the License. 91670a1c2SRui Paulo# 101670a1c2SRui Paulo# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 111670a1c2SRui Paulo# or http://www.opensolaris.org/os/licensing. 121670a1c2SRui Paulo# See the License for the specific language governing permissions 131670a1c2SRui Paulo# and limitations under the License. 141670a1c2SRui Paulo# 151670a1c2SRui Paulo# When distributing Covered Code, include this CDDL HEADER in each 161670a1c2SRui Paulo# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 171670a1c2SRui Paulo# If applicable, add the following below this CDDL HEADER, with the 181670a1c2SRui Paulo# fields enclosed by brackets "[]" replaced with your own identifying 191670a1c2SRui Paulo# information: Portions Copyright [yyyy] [name of copyright owner] 201670a1c2SRui Paulo# 211670a1c2SRui Paulo# CDDL HEADER END 221670a1c2SRui Paulo# 231670a1c2SRui Paulo# 241670a1c2SRui Paulo# Copyright 2003 Sun Microsystems, Inc. All rights reserved. 251670a1c2SRui Paulo# Use is subject to license terms. 261670a1c2SRui Paulo# 27f57b27e3SAlex Richardsonset -e 281670a1c2SRui Paulo 29*fded9874SAlex Richardsonprintf "%s" " 30*fded9874SAlex Richardson/* 31*fded9874SAlex Richardson * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 32*fded9874SAlex Richardson * Use is subject to license terms. 33*fded9874SAlex Richardson */ 34*fded9874SAlex Richardson 35*fded9874SAlex Richardson" 361670a1c2SRui Paulo 371670a1c2SRui Paulopattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$' 381670a1c2SRui Pauloreplace='inline int \1 = \2;@#pragma D binding "1.0" \1' 391670a1c2SRui Paulo 401670a1c2SRui Paulosed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n' 41