Deleted Added
full compact
libmagic.man (275698) libmagic.man (276577)
1.\" $File: libmagic.man,v 1.33 2014/11/28 02:46:39 christos Exp $
1.\" $File: libmagic.man,v 1.34 2014/12/16 23:18:40 christos Exp $
2.\"
3.\" Copyright (c) Christos Zoulas 2003.
4.\" All Rights Reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

20.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
2.\"
3.\" Copyright (c) Christos Zoulas 2003.
4.\" All Rights Reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

20.\" ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.Dd November 27, 2014
28.Dd December 16, 2014
29.Dt LIBMAGIC 3
30.Os
31.Sh NAME
32.Nm magic_open ,
33.Nm magic_close ,
34.Nm magic_error ,
35.Nm magic_errno ,
36.Nm magic_descriptor ,

--- 242 unchanged lines hidden (view full) ---

279and
280.Fn magic_setparam
281allow getting and setting various limits related to the the magic
282library.
283.Bl -column "MAGIC_PARAM_ELF_PHNUM_MAX" "size_t" "Default" -offset indent
284.It Sy "Parameter" Ta Sy "Type" Ta Sy "Default"
285.It Li MAGIC_PARAM_INDIR_MAX Ta size_t Ta 15
286.It Li MAGIC_PARAM_NAME_MAX Ta size_t Ta 30
29.Dt LIBMAGIC 3
30.Os
31.Sh NAME
32.Nm magic_open ,
33.Nm magic_close ,
34.Nm magic_error ,
35.Nm magic_errno ,
36.Nm magic_descriptor ,

--- 242 unchanged lines hidden (view full) ---

279and
280.Fn magic_setparam
281allow getting and setting various limits related to the the magic
282library.
283.Bl -column "MAGIC_PARAM_ELF_PHNUM_MAX" "size_t" "Default" -offset indent
284.It Sy "Parameter" Ta Sy "Type" Ta Sy "Default"
285.It Li MAGIC_PARAM_INDIR_MAX Ta size_t Ta 15
286.It Li MAGIC_PARAM_NAME_MAX Ta size_t Ta 30
287.It Li MAGIC_PARAM_ELF_NOTES_MAX Ta size_t Ta 256
287.It Li MAGIC_PARAM_ELF_PHNUM_MAX Ta size_t Ta 128
288.It Li MAGIC_PARAM_ELF_SHNUM_MAX Ta size_t Ta 32768
289.El
290.Pp
291The
292.Dv MAGIC_PARAM_INDIR_RECURSION
293parameter controls how many levels of recursion will be followed for
294indirect magic entries.
295.Pp
296The
297.Dv MAGIC_PARAM_NAME_RECURSION
298parameter controls how many levels of recursion will be followed for
299for name/use calls.
300.Pp
301The
302.Dv MAGIC_PARAM_NAME_MAX
303parameter controls the maximum number of calls for name/use.
304.Pp
305The
288.It Li MAGIC_PARAM_ELF_PHNUM_MAX Ta size_t Ta 128
289.It Li MAGIC_PARAM_ELF_SHNUM_MAX Ta size_t Ta 32768
290.El
291.Pp
292The
293.Dv MAGIC_PARAM_INDIR_RECURSION
294parameter controls how many levels of recursion will be followed for
295indirect magic entries.
296.Pp
297The
298.Dv MAGIC_PARAM_NAME_RECURSION
299parameter controls how many levels of recursion will be followed for
300for name/use calls.
301.Pp
302The
303.Dv MAGIC_PARAM_NAME_MAX
304parameter controls the maximum number of calls for name/use.
305.Pp
306The
307.Dv MAGIC_PARAM_NOTES_MAX
308parameter controls how many ELF notes will be processed.
309.Pp
310The
306.Dv MAGIC_PARAM_PHNUM_MAX
311.Dv MAGIC_PARAM_PHNUM_MAX
307parameter controls how many elf program sections will be processed.
312parameter controls how many ELF program sections will be processed.
308.Pp
309The
310.Dv MAGIC_PARAM_SHNUM_MAX
313.Pp
314The
315.Dv MAGIC_PARAM_SHNUM_MAX
311parameter controls how many elf sections will be processed.
316parameter controls how many ELF sections will be processed.
312.Pp
313The
314.Fn magic_version
315command returns the version number of this library which is compiled into
316the shared library using the constant
317.Dv MAGIC_VERSION
318from
319.In magic.h .

--- 59 unchanged lines hidden ---
317.Pp
318The
319.Fn magic_version
320command returns the version number of this library which is compiled into
321the shared library using the constant
322.Dv MAGIC_VERSION
323from
324.In magic.h .

--- 59 unchanged lines hidden ---