ndrgen.sh revision a0b6e447978c306e15941d158bf6939a42ed2726
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# CDDL HEADER START
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# The contents of this file are subject to the terms of the
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# Common Development and Distribution License (the "License").
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# You may not use this file except in compliance with the License.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# See the License for the specific language governing permissions
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# and limitations under the License.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# When distributing Covered Code, include this CDDL HEADER in each
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# If applicable, add the following below this CDDL HEADER, with the
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# fields enclosed by brackets "[]" replaced with your own identifying
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# information: Portions Copyright [yyyy] [name of copyright owner]
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# CDDL HEADER END
a0b6e447978c306e15941d158bf6939a42ed2726Alan Wright# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# Use is subject to license terms.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# This is a wrapper script around the ndrgen compiler (ndrgen1).
d0e518695adc90b82233b99af7dffbb3d3f92c00amw# CC must be defined in the environment or on the command line.
9c21fe179ede0eb7881c4d5244e0ab090fdd3c9camw# Copy header text from the input ndl file to the generated ndr C file.
9c21fe179ede0eb7881c4d5244e0ab090fdd3c9camw /^\/\* NDRGEN_HEADER_BEGIN \*\// { copy=1; next; }
9c21fe179ede0eb7881c4d5244e0ab090fdd3c9camw /^\/\* NDRGEN_HEADER_END \*\// { copy=0; next; }
7451ee9355b4d9cafcf1bb6055bb01fc7bdaa1a1amw # Check for cw being invoked with -_cc or -_gcc
d0e518695adc90b82233b99af7dffbb3d3f92c00amw if [[ ! -r $i ]] ; then
d0e518695adc90b82233b99af7dffbb3d3f92c00amw print "$PROGNAME: ERROR: cannot read $i"
d0e518695adc90b82233b99af7dffbb3d3f92c00amw if $CC $CC_ARG -E -D__a64 -D__EXTENSIONS__ -D_FILE_OFFSET_BITS=64 \
9c21fe179ede0eb7881c4d5244e0ab090fdd3c9camw * Please do not edit this file.
9c21fe179ede0eb7881c4d5244e0ab090fdd3c9camw * It was generated using ndrgen.
d0e518695adc90b82233b99af7dffbb3d3f92c00amw#include <strings.h>
d0e518695adc90b82233b99af7dffbb3d3f92c00amw#include <smbsrv/ndr.h>
d0e518695adc90b82233b99af7dffbb3d3f92c00amw#include <smbsrv/ndl/$BASENAME.ndl>