xref: /minix3/external/bsd/elftoolchain/dist/libdwarf/dwarf_errno.3 (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1.\"	$NetBSD: dwarf_errno.3,v 1.2 2014/03/09 16:58:03 christos Exp $
2.\"
3.\" Copyright (c) 2009,2010 Joseph Koshy.  All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
9.\"    notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above copyright
11.\"    notice, this list of conditions and the following disclaimer in the
12.\"    documentation and/or other materials provided with the distribution.
13.\"
14.\" This software is provided by Joseph Koshy ``as is'' and
15.\" any express or implied warranties, including, but not limited to, the
16.\" implied warranties of merchantability and fitness for a particular purpose
17.\" are disclaimed.  in no event shall Joseph Koshy be liable
18.\" for any direct, indirect, incidental, special, exemplary, or consequential
19.\" damages (including, but not limited to, procurement of substitute goods
20.\" or services; loss of use, data, or profits; or business interruption)
21.\" however caused and on any theory of liability, whether in contract, strict
22.\" liability, or tort (including negligence or otherwise) arising in any way
23.\" out of the use of this software, even if advised of the possibility of
24.\" such damage.
25.\"
26.\" Id: dwarf_errno.3 2073 2011-10-27 03:30:47Z jkoshy
27.\"
28.Dd March 25, 2010
29.Os
30.Dt DWARF_ERRNO 3
31.Sh NAME
32.Nm dwarf_errno
33.Nd retrieve the error number corresponding to a
34.Vt Dwarf_Error
35instance
36.Sh LIBRARY
37.Lb libdwarf
38.Sh SYNOPSIS
39.In libdwarf.h
40.Ft int
41.Fn dwarf_errno "Dwarf_Error err"
42.Sh DESCRIPTION
43Function
44.Fn dwarf_errno
45returns the error number associated with a
46.Vt Dwarf_Error
47instance.
48.Pp
49Argument
50.Ar err
51should be a valid handle to a
52.Vt Dwarf_Error
53instance.
54.Sh RETURN VALUES
55Function
56.Fn dwarf_errno
57returns an integral value.
58.Sh SEE ALSO
59.Xr dwarf 3 ,
60.Xr dwarf_errmsg 3
61