1*d783b295SmgornyBEGIN { 2*d783b295Smgorny print "/* $NetBSD: make-errno-d.awk,v 1.1 2020/03/08 22:11:48 mgorny Exp $ */" 3*d783b295Smgorny print "" 4*d783b295Smgorny print "/*" 5*d783b295Smgorny print " * This file is autogenerated. Please call:" 6*d783b295Smgorny print " * awk make-errno-d.awk < ../../../../../sys/sys/errno.h" 7*d783b295Smgorny print " * to get new data." 8*d783b295Smgorny print " */" 9*d783b295Smgorny print "" 10*d783b295Smgorny print "/*" 11*d783b295Smgorny print " * CDDL HEADER START" 12*d783b295Smgorny print " *" 13*d783b295Smgorny print " * The contents of this file are subject to the terms of the" 14*d783b295Smgorny print " * Common Development and Distribution License, Version 1.0 only" 15*d783b295Smgorny print " * (the \"License\"). You may not use this file except in compliance" 16*d783b295Smgorny print " * with the License." 17*d783b295Smgorny print " *" 18*d783b295Smgorny print " * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE" 19*d783b295Smgorny print " * or http://www.opensolaris.org/os/licensing." 20*d783b295Smgorny print " * See the License for the specific language governing permissions" 21*d783b295Smgorny print " * and limitations under the License." 22*d783b295Smgorny print " *" 23*d783b295Smgorny print " * When distributing Covered Code, include this CDDL HEADER in each" 24*d783b295Smgorny print " * file and include the License file at usr/src/OPENSOLARIS.LICENSE." 25*d783b295Smgorny print " * If applicable, add the following below this CDDL HEADER, with the" 26*d783b295Smgorny print " * fields enclosed by brackets \"[]\" replaced with your own identifying" 27*d783b295Smgorny print " * information: Portions Copyright [yyyy] [name of copyright owner]" 28*d783b295Smgorny print " *" 29*d783b295Smgorny print " * CDDL HEADER END" 30*d783b295Smgorny print " *" 31*d783b295Smgorny print " * Portions Copyright 2006-2008 John Birrell jb@freebsd.org" 32*d783b295Smgorny print " *" 33*d783b295Smgorny print " * $FreeBSD: head/cddl/lib/libdtrace/errno.d 179189 2008-05-22 04:26:42Z jb $" 34*d783b295Smgorny print " */" 35*d783b295Smgorny print "/*" 36*d783b295Smgorny print " * Copyright 2004 Sun Microsystems, Inc. All rights reserved." 37*d783b295Smgorny print " * Use is subject to license terms." 38*d783b295Smgorny print " */" 39*d783b295Smgorny print "" 40*d783b295Smgorny} 41*d783b295Smgorny 42*d783b295Smgorny/^#define\s*E/ { 43*d783b295Smgorny print "inline int " $2 " = " $3 ";" 44*d783b295Smgorny print "#pragma D binding \"1.0\" " $2 45*d783b295Smgorny} 46