head	1.1;
access;
symbols
	netbsd-11-0-RC7:1.1
	netbsd-11-0-RC6:1.1
	netbsd-11-0-RC5:1.1
	netbsd-11-0-RC4:1.1
	netbsd-11-0-RC3:1.1
	netbsd-11-0-RC2:1.1
	netbsd-11-0-RC1:1.1
	perseant-exfatfs-base-20250801:1.1
	netbsd-11:1.1.0.12
	netbsd-11-base:1.1
	netbsd-10-1-RELEASE:1.1
	perseant-exfatfs-base-20240630:1.1
	perseant-exfatfs:1.1.0.10
	perseant-exfatfs-base:1.1
	netbsd-10-0-RELEASE:1.1
	netbsd-10-0-RC6:1.1
	netbsd-10-0-RC5:1.1
	netbsd-10-0-RC4:1.1
	netbsd-10-0-RC3:1.1
	netbsd-10-0-RC2:1.1
	netbsd-10-0-RC1:1.1
	netbsd-10:1.1.0.8
	netbsd-10-base:1.1
	cjep_sun2x-base1:1.1
	cjep_sun2x:1.1.0.6
	cjep_sun2x-base:1.1
	cjep_staticlib_x-base1:1.1
	cjep_staticlib_x:1.1.0.4
	cjep_staticlib_x-base:1.1
	phil-wifi-20200421:1.1
	phil-wifi-20200411:1.1
	phil-wifi:1.1.0.2
	phil-wifi-20200406:1.1;
locks; strict;
comment	@# @;


1.1
date	2020.03.08.22.11.48;	author mgorny;	state Exp;
branches
	1.1.2.1;
next	;
commitid	0ZcLI3GqrC3XcEZB;

1.1.2.1
date	2020.03.08.22.11.48;	author martin;	state dead;
branches;
next	1.1.2.2;
commitid	Qli2aW9E74UFuA3C;

1.1.2.2
date	2020.04.08.14.04.20;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;


desc
@@


1.1
log
@Update dtrace errno.d mapping and add a script for it

Add a new script to autogenerate errno.d from errno.h, and use it
to regenerate the list to match NetBSD errno codes.
@
text
@BEGIN {
	print "/*	$NetBSD$	*/"
	print ""
	print "/*"
	print " * This file is autogenerated.  Please call:"
	print " *   awk make-errno-d.awk < ../../../../../sys/sys/errno.h"
	print " * to get new data."
	print " */"
	print ""
	print "/*"
	print " * CDDL HEADER START"
	print " *"
	print " * The contents of this file are subject to the terms of the"
	print " * Common Development and Distribution License, Version 1.0 only"
	print " * (the \"License\").  You may not use this file except in compliance"
	print " * with the License."
	print " *"
	print " * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE"
	print " * or http://www.opensolaris.org/os/licensing."
	print " * See the License for the specific language governing permissions"
	print " * and limitations under the License."
	print " *"
	print " * When distributing Covered Code, include this CDDL HEADER in each"
	print " * file and include the License file at usr/src/OPENSOLARIS.LICENSE."
	print " * If applicable, add the following below this CDDL HEADER, with the"
	print " * fields enclosed by brackets \"[]\" replaced with your own identifying"
	print " * information: Portions Copyright [yyyy] [name of copyright owner]"
	print " *"
	print " * CDDL HEADER END"
	print " *"
	print " * Portions Copyright 2006-2008 John Birrell jb@@freebsd.org"
	print " *"
	print " * $FreeBSD: head/cddl/lib/libdtrace/errno.d 179189 2008-05-22 04:26:42Z jb $"
	print " */"
	print "/*"
	print " * Copyright 2004 Sun Microsystems, Inc.  All rights reserved."
	print " * Use is subject to license terms."
	print " */"
	print ""
}

/^#define\s*E/ {
	print "inline int " $2 " = " $3 ";"
	print "#pragma D binding \"1.0\" " $2
}
@


1.1.2.1
log
@file make-errno-d.awk was added on branch phil-wifi on 2020-04-08 14:04:20 +0000
@
text
@d1 45
@


1.1.2.2
log
@Merge changes from current as of 20200406
@
text
@a0 45
BEGIN {
	print "/*	$NetBSD$	*/"
	print ""
	print "/*"
	print " * This file is autogenerated.  Please call:"
	print " *   awk make-errno-d.awk < ../../../../../sys/sys/errno.h"
	print " * to get new data."
	print " */"
	print ""
	print "/*"
	print " * CDDL HEADER START"
	print " *"
	print " * The contents of this file are subject to the terms of the"
	print " * Common Development and Distribution License, Version 1.0 only"
	print " * (the \"License\").  You may not use this file except in compliance"
	print " * with the License."
	print " *"
	print " * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE"
	print " * or http://www.opensolaris.org/os/licensing."
	print " * See the License for the specific language governing permissions"
	print " * and limitations under the License."
	print " *"
	print " * When distributing Covered Code, include this CDDL HEADER in each"
	print " * file and include the License file at usr/src/OPENSOLARIS.LICENSE."
	print " * If applicable, add the following below this CDDL HEADER, with the"
	print " * fields enclosed by brackets \"[]\" replaced with your own identifying"
	print " * information: Portions Copyright [yyyy] [name of copyright owner]"
	print " *"
	print " * CDDL HEADER END"
	print " *"
	print " * Portions Copyright 2006-2008 John Birrell jb@@freebsd.org"
	print " *"
	print " * $FreeBSD: head/cddl/lib/libdtrace/errno.d 179189 2008-05-22 04:26:42Z jb $"
	print " */"
	print "/*"
	print " * Copyright 2004 Sun Microsystems, Inc.  All rights reserved."
	print " * Use is subject to license terms."
	print " */"
	print ""
}

/^#define\s*E/ {
	print "inline int " $2 " = " $3 ";"
	print "#pragma D binding \"1.0\" " $2
}
@


