Subject: lib/21496: libmagic(3) manual page bugs.
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ura@hiru.aoba.yokohama.jp>
List: netbsd-bugs
Date: 05/08/2003 13:43:12
>Number: 21496
>Category: lib
>Synopsis: libmagic(3) manual page bugs
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu May 08 04:44:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: URA Hiroshi
>Release: NetBSD 1.6R
>Organization:
>Environment:
System: NetBSD fumizuki.hiru.aoba.yokohama.jp 1.6R NetBSD 1.6R (FUMIZUKI) #194: Sat May 3 21:46:05 JST 2003 ura@fumizuki.hiru.aoba.yokohama.jp:/usr/src/sys/arch/i386/compile/FUMIZUKI i386
Architecture: i386
Machine: i386
>Description:
I have noticed that the LIBRARY Section in libmagic(3) manual page
is empty and the manual pages for functions such as magic_open(3)
aren't installed.
>How-To-Repeat:
man 3 libmagic
man 3 magic_open
>Fix:
apply this following patch:
Index: share/tmac/doc-syms
===================================================================
RCS file: /cvsroot/src/share/tmac/doc-syms,v
retrieving revision 1.74
diff -u -u -r1.74 doc-syms
--- share/tmac/doc-syms 2003/01/22 23:37:08 1.74
+++ share/tmac/doc-syms 2003/05/08 01:30:53
@@ -461,6 +461,7 @@
.if "\\$1"libpcap" \&Packet Capture Library (libpcap, -lpcap)
.if "\\$1"libpci" \&PCI Bus Access Library (libpci, -lpci)
.if "\\$1"libpmc" \&Performance Counters Library (libpmc, -lpmc)
+.if "\\$1"libmagic" \&Magic Number Recognition Library (libmagic, -lmagic)
.if "\\$1"libposix" \&POSIX Compatibility Library (libposix, -lposix)
.if "\\$1"libpthread" \&POSIX Thread Library (libpthread, -lpthread)
.if "\\$1"libresolv" \&DNS Resolver Library (libresolv, -lresolv)
Index: lib/libmagic/Makefile
===================================================================
RCS file: /cvsroot/src/lib/libmagic/Makefile,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile
--- lib/libmagic/Makefile 2003/03/26 15:18:38 1.2
+++ lib/libmagic/Makefile 2003/05/08 01:31:44
@@ -19,6 +19,15 @@
SRCS= magic.c apprentice.c softmagic.c ascmagic.c compress.c \
is_tar.c readelf.c print.c fsmagic.c apptype.c funcs.c
MAN= libmagic.3
+MLINKS+= libmagic.3 magic_open.3 \
+ libmagic.3 magic_close.3 \
+ libmagic.3 magic_error.3 \
+ libmagic.3 magic_file.3 \
+ libmagic.3 magic_buffer.3 \
+ libmagic.3 magic_setflags.3 \
+ libmagic.3 magic_check.3 \
+ libmagic.3 magic_compile.3 \
+ libmagic.3 magic_load.3
INCS= magic.h
INCSDIR= /usr/include
>Release-Note:
>Audit-Trail:
>Unformatted: