Home | History | Annotate | Line # | Download | only in common
      1  1.1  chs #!/bin/sh
      2  1.1  chs #
      3  1.1  chs # CDDL HEADER START
      4  1.1  chs #
      5  1.1  chs # The contents of this file are subject to the terms of the
      6  1.1  chs # Common Development and Distribution License, Version 1.0 only
      7  1.1  chs # (the "License").  You may not use this file except in compliance
      8  1.1  chs # with the License.
      9  1.1  chs #
     10  1.1  chs # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     11  1.1  chs # or http://www.opensolaris.org/os/licensing.
     12  1.1  chs # See the License for the specific language governing permissions
     13  1.1  chs # and limitations under the License.
     14  1.1  chs #
     15  1.1  chs # When distributing Covered Code, include this CDDL HEADER in each
     16  1.1  chs # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     17  1.1  chs # If applicable, add the following below this CDDL HEADER, with the
     18  1.1  chs # fields enclosed by brackets "[]" replaced with your own identifying
     19  1.1  chs # information: Portions Copyright [yyyy] [name of copyright owner]
     20  1.1  chs #
     21  1.1  chs # CDDL HEADER END
     22  1.1  chs #
     23  1.1  chs #
     24  1.1  chs # Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
     25  1.1  chs # Use is subject to license terms.
     26  1.1  chs #
     27  1.1  chs #ident	"%Z%%M%	%I%	%E% SMI"
     28  1.1  chs 
     29  1.1  chs echo "\
     30  1.1  chs /*\n\
     31  1.1  chs  * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.\n\
     32  1.1  chs  * Use is subject to license terms.\n\
     33  1.1  chs  */\n\
     34  1.1  chs \n\
     35  1.1  chs #pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n"
     36  1.1  chs 
     37  1.1  chs pattern='^#define[	 ]*_*\(SIG[A-Z0-9]*\)[	 ]\{1,\}\([A-Z0-9]*\).*$'
     38  1.1  chs replace='inline int \1 = \2;@#pragma D binding "1.0" \1'
     39  1.1  chs 
     40  1.1  chs sed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n'
     41