socsvn commit: r236847 - soc2012/jhagewood/mdocml

jhagewood at FreeBSD.org jhagewood at FreeBSD.org
Fri Jun 1 05:31:12 UTC 2012


Author: jhagewood
Date: Fri Jun  1 05:29:51 2012
New Revision: 236847
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=236847

Log:

Added:
  soc2012/jhagewood/mdocml/patch-config.txt
  soc2012/jhagewood/mdocml/patch-lib.in.txt
  soc2012/jhagewood/mdocml/patch-mdoc_validate.c
  soc2012/jhagewood/mdocml/patch-msec.in.txt

Added: soc2012/jhagewood/mdocml/patch-config.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/jhagewood/mdocml/patch-config.txt	Fri Jun  1 05:29:51 2012	(r236847)
@@ -0,0 +1,15 @@
+--- config.h.post.orig	2012-03-24 03:19:14.000000000 +0100
++++ config.h.post	2012-03-24 07:38:50.000000000 +0100
+@@ -20,6 +20,12 @@
+ # define betoh32(x) OSSwapBigToHostInt32(x)
+ # define htobe64(x) OSSwapHostToBigInt64(x)
+ # define betoh64(x) OSSwapBigToHostInt64(x)
++#elif defined(__FreeBSD__)
++/* FreeBSD doesn't have these for userland code, yet. */
++# define betoh32(x) (x)
++# define betoh64(x) (x)
++# define htobe32(x) (x)
++# define htobe64(x) (x)
+ #elif defined(__linux__)
+ # define betoh32(x) be32toh(x)
+ # define betoh64(x) be64toh(x)

Added: soc2012/jhagewood/mdocml/patch-lib.in.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/jhagewood/mdocml/patch-lib.in.txt	Fri Jun  1 05:29:51 2012	(r236847)
@@ -0,0 +1,38 @@
+--- lib.in
++++ lib.in
+@@ -23,10 +23,10 @@
+  * Be sure to escape strings.
+  */
+ 
+-LINE("libarchive",	"Reading and Writing Streaming Archives Library (libarchive, \\-larchive)")
++LINE("libarchive",	"Streaming Archive Library (libarchive, \\-larchive)")
+ LINE("libarm",		"ARM Architecture Library (libarm, \\-larm)")
+ LINE("libarm32",	"ARM32 Architecture Library (libarm32, \\-larm32)")
+-LINE("libbluetooth",	"Bluetooth Library (libbluetooth, \\-lbluetooth)")
++LINE("libbluetooth",	"Bluetooth User Library (libbluetooth, \\-lbluetooth)")
+ LINE("libbsm",		"Basic Security Module User Library (libbsm, \\-lbsm)")
+ LINE("libc",		"Standard C Library (libc, \\-lc)")
+ LINE("libc_r",		"Reentrant C\\~Library (libc_r, \\-lc_r)")
+@@ -40,10 +40,11 @@ LINE("libcurses",	"Curses Library (libcurses, \\-lcurses)")
+ LINE("libdevstat",	"Device Statistics Library (libdevstat, \\-ldevstat)")
+ LINE("libdisk",		"Interface to Slice and Partition Labels Library (libdisk, \\-ldisk)")
+ LINE("libdwarf",	"DWARF Access Library (libdwarf, \\-ldwarf)")
+-LINE("libedit",		"Command Line Editor Library (libedit, \\-ledit)")
++LINE("libedit",		"Line Editor and History Library (libedit, \\-ledit)")
++LINE("libefi",		"EFI Runtime Services Library (libefi, \\-lefi)")
+ LINE("libelf",		"ELF Access Library (libelf, \\-lelf)")
+ LINE("libevent",	"Event Notification Library (libevent, \\-levent)")
+-LINE("libfetch",	"File Transfer Library for URLs (libfetch, \\-lfetch)")
++LINE("libfetch",	"File Transfer Library (libfetch, \\-lfetch)")
+ LINE("libform",		"Curses Form Library (libform, \\-lform)")
+ LINE("libgeom",		"Userland API Library for kernel GEOM subsystem (libgeom, \\-lgeom)")
+ LINE("libgpib",		"General-Purpose Instrument Bus (GPIB) library (libgpib, \\-lgpib)")
+@@ -68,7 +69,7 @@ LINE("libossaudio",	"OSS Audio Emulation Library (libossaudio, \\-lossaudio)")
+ LINE("libpam",		"Pluggable Authentication Module Library (libpam, \\-lpam)")
+ LINE("libpcap",		"Capture Library (libpcap, \\-lpcap)")
+ LINE("libpci",		"PCI Bus Access Library (libpci, \\-lpci)")
+-LINE("libpmc",		"Performance Counters Library (libpmc, \\-lpmc)")
++LINE("libpmc",		"Performance Monitoring Counters Interface Library (libpmc, \\-lpmc)")
+ LINE("libposix",	"POSIX Compatibility Library (libposix, \\-lposix)")
+ LINE("libprop",		"Property Container Object Library (libprop, \\-lprop)")
+ LINE("libpthread",	"POSIX Threads Library (libpthread, \\-lpthread)")

Added: soc2012/jhagewood/mdocml/patch-mdoc_validate.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/jhagewood/mdocml/patch-mdoc_validate.c	Fri Jun  1 05:29:51 2012	(r236847)
@@ -0,0 +1,11 @@
+--- mdoc_validate.c
++++ mdoc_validate.c
+@@ -2143,6 +2143,8 @@ post_os(POST_ARGS)
+ 			mdoc_nmsg(m, n, MANDOCERR_MEM);
+ 			return(0);
+ 		}
++		if (strncmp(utsname.sysname, "FreeBSD", sizeof("FreeBSD")) == 0)
++			strtok(utsname.release, "-");
+ 		if (strlcat(buf, utsname.release, BUFSIZ) >= BUFSIZ) {
+ 			mdoc_nmsg(m, n, MANDOCERR_MEM);
+ 			return(0);

Added: soc2012/jhagewood/mdocml/patch-msec.in.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ soc2012/jhagewood/mdocml/patch-msec.in.txt	Fri Jun  1 05:29:51 2012	(r236847)
@@ -0,0 +1,28 @@
+--- msec.in.orig	2009-07-20 22:05:54.000000000 +0200
++++ msec.in	2009-07-20 22:07:03.000000000 +0200
+@@ -22,16 +22,16 @@
+  * Be sure to escape strings.
+  */
+ 
+-LINE("1",		"General Commands Manual")
+-LINE("2",		"System Calls Manual")
+-LINE("3",		"Library Functions Manual")
++LINE("1",		"FreeBSD General Commands Manual")
++LINE("2",		"FreeBSD System Calls Manual")
++LINE("3",		"FreeBSD Library Functions Manual")
+ LINE("3p",		"Perl Library Functions Manual")
+-LINE("4",		"Kernel Interfaces Manual")
+-LINE("5",		"File Formats Manual")
+-LINE("6",		"Games Manual")
+-LINE("7",		"Miscellaneous Information Manual")
+-LINE("8",		"System Manager\'s Manual")
+-LINE("9",		"Kernel Developer\'s Manual")
++LINE("4",		"FreeBSD Kernel Interfaces Manual")
++LINE("5",		"FreeBSD File Formats Manual")
++LINE("6",		"FreeBSD Games Manual")
++LINE("7",		"FreeBSD Miscellaneous Information Manual")
++LINE("8",		"FreeBSD System Manager\'s Manual")
++LINE("9",		"FreeBSD Kernel Developer\'s Manual")
+ LINE("X11",		"X11 Developer\'s Manual")
+ LINE("X11R6",		"X11 Developer\'s Manual")
+ LINE("unass",		"Unassociated")


More information about the svn-soc-all mailing list