summaryrefslogtreecommitdiffstats
path: root/contrib/groff
Commit message (Collapse)AuthorAgeFilesLines
* MFC r309796:bapt2016-12-122-2/+2
| | | | | | | | Perl is not available in base fix scripts depending on it to use the version from ports PR: 215159 Reported by: Anatoly Kamchatnov <akamch@gmail.com>
* Add SUSv4 reference macro to our groff mdoc. mdocml already supports it.kib2016-05-172-0/+4
| | | | Sponsored by: The FreeBSD Foundation
* Remove more disconnected libgpib items missed in r276214.bdrewery2015-10-222-3/+0
| | | | Sponsored by: EMC / Isilon Storage Division
* Significant upgrades to sa(4) and mt(1).ken2015-02-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary focus of these changes is to modernize FreeBSD's tape infrastructure so that we can take advantage of some of the features of modern tape drives and allow support for LTFS. Significant changes and new features include: o sa(4) driver status and parameter information is now exported via an XML structure. This will allow for changes and improvements later on that will not break userland applications. The old MTIOCGET status ioctl remains, so applications using the existing interface will not break. o 'mt status' now reports drive-reported tape position information as well as the previously available calculated tape position information. These numbers will be different at times, because the drive-reported block numbers are relative to BOP (Beginning of Partition), but the block numbers calculated previously via sa(4) (and still provided) are relative to the last filemark. Both numbers are now provided. 'mt status' now also shows the drive INQUIRY information, serial number and any position flags (BOP, EOT, etc.) provided with the tape position information. 'mt status -v' adds information on the maximum possible I/O size, and the underlying values used to calculate it. o The extra sa(4) /dev entries (/dev/saN.[0-3]) have been removed. The extra devices were originally added as place holders for density-specific device nodes. Some OSes (NetBSD, NetApp's OnTap and Solaris) have had device nodes that, when you write to them, will automatically select a given density for particular tape drives. This is a convenient way of switching densities, but it was never implemented in FreeBSD. Only the device nodes were there, and that sometimes confused users. For modern tape devices, the density is generally not selectable (e.g. with LTO) or defaults to the highest availble density when the tape is rewritten from BOT (e.g. TS11X0). So, for most users, density selection won't be necessary. If they do need to select the density, it is easy enough to use 'mt density' to change it. o Protection information is now supported. This is either a Reed-Solomon CRC or CRC32 that is included at the end of each block read and written. On write, the tape drive verifies the CRC, and on read, the tape drive provides a CRC for the userland application to verify. o New, extensible tape driver parameter get/set interface. o Density reporting information. For drives that support it, 'mt getdensity' will show detailed information on what formats the tape drive supports, and what formats the tape drive supports. o Some mt(1) functionality moved into a new mt(3) library so that external applications can reuse the code. o The new mt(3) library includes helper routines to aid in parsing the XML output of the sa(4) driver, and build a tree of driver metadata. o Support for the MTLOAD (load a tape in the drive) and MTWEOFI (write filemark immediate) ioctls needed by IBM's LTFS implementation. o Improve device departure behavior for the sa(4) driver. The previous implementation led to hangs when the device was open. o This has been tested on the following types of drives: IBM TS1150 IBM TS1140 IBM LTO-6 IBM LTO-5 HP LTO-2 Seagate DDS-4 Quantum DLT-4000 Exabyte 8505 Sony DDS-2 contrib/groff/tmac/doc-syms, share/mk/bsd.libnames.mk, lib/Makefile, Add libmt. lib/libmt/Makefile, lib/libmt/mt.3, lib/libmt/mtlib.c, lib/libmt/mtlib.h, New mt(3) library that contains functions moved from mt(1) and new functions needed to interact with the updated sa(4) driver. This includes XML parser helper functions that application writers can use when writing code to query tape parameters. rescue/rescue/Makefile: Add -lmt to CRUNCH_LIBS. src/share/man/man4/mtio.4 Clarify this man page a bit, and since it contains what is essentially the mtio.h header file, add new ioctls and structure definitions from mtio.h. src/share/man/man4/sa.4 Update BUGS and maintainer section. sys/cam/scsi/scsi_all.c, sys/cam/scsi/scsi_all.h: Add SCSI SECURITY PROTOCOL IN/OUT CDB definitions and CDB building functions. sys/cam/scsi/scsi_sa.c sys/cam/scsi/scsi_sa.h Many tape driver changes, largely outlined above. Increase the sa(4) driver read/write timeout from 4 to 32 minutes. This is based on the recommended values for IBM LTO 5/6 drives. This may also avoid timeouts for other tape hardware that can take a long time to do retries and error recovery. Longer term, a better way to handle this is to ask the drive for recommended timeout values using the REPORT SUPPORTED OPCODES command. Modern IBM and Oracle tape drives at least support that command, and it would allow for more accurate timeout values. Add XML status generation. This is done with a series of macros to eliminate as much duplicate code as possible. The new XML-based status values are reported through the new MTIOCEXTGET ioctl. Add XML driver parameter reporting, using the new MTIOCPARAMGET ioctl. Add a new driver parameter setting interface, using the new MTIOCPARAMSET and MTIOCSETLIST ioctls. Add a new MTIOCRBLIM ioctl to get block limits information. Add CCB/CDB building routines scsi_locate_16, scsi_locate_10, and scsi_read_position_10(). scsi_locate_10 implements the LOCATE command, as does the existing scsi_set_position() command. It just supports additional arguments and features. If/when we figure out a good way to provide backward compatibility for older applications using the old function API, we can just revamp scsi_set_position(). The same goes for scsi_read_position_10() and the existing scsi_read_position() function. Revamp sasetpos() to take the new mtlocate structure as an argument. It now will use either scsi_locate_10() or scsi_locate_16(), depending upon the arguments the user supplies. As before, once we change position we don't have a clear idea of what the current logical position of the tape drive is. For tape drives that support long form position data, we read the current position and store that for later reporting after changing the position. This should help applications like Bacula speed tape access under FreeBSD once they are modified to support the new ioctls. Add a new quirk, SA_QUIRK_NO_LONG_POS, that is set for all drives that report SCSI-2 or older, as well as drives that report an Illegal Request type error for READ POSITION with the long format. So we should automatically detect drives that don't support the long form and stop asking for it after an initial try. Add a partition number to the sa(4) softc. Improve device departure handling. The previous implementation led to hangs when the device was open. If an application had the sa(4) driver open, and attempted to close it after it went away, the cam_periph_release() call in saclose() would cause the periph to get destroyed because that was the last reference to it. Because destroy_dev() was called from the sa(4) driver's cleanup routine (sacleanup()), and would block waiting for the close to happen, a deadlock would result. So instead of calling destroy_dev() from the cleanup routine, call destroy_dev_sched_cb() from saoninvalidate() and wait for the callback. Acquire a reference for devfs in saregister(), and release it in the new sadevgonecb() routine when all devfs devices for the particular sa(4) driver instance are gone. Add a new function, sasetupdev(), to centralize setting per-instance devfs device parameters instead of repeating the code in saregister(). Add an open count to the softc, so we know how many peripheral driver references are a result of open sessions. Add the D_TRACKCLOSE flag to the cdevsw flags so that we get a 1:1 mapping of open to close calls instead of a N:1 mapping. This should be a no-op for everything except the control device, since we don't allow more than one open on non-control devices. However, since we do allow multiple opens on the control device, the combination of the open count and the D_TRACKCLOSE flag should result in an accurate peripheral driver reference count, and an accurate open count. The accurate open count allows us to release all peripheral driver references that are the result of open contexts once we get the callback from devfs. sys/sys/mtio.h: Add a number of new mt(4) ioctls and the requisite data structures. None of the existing interfaces been removed or changed. This includes definitions for the following new ioctls: MTIOCRBLIM /* get block limits */ MTIOCEXTLOCATE /* seek to position */ MTIOCEXTGET /* get tape status */ MTIOCPARAMGET /* get tape params */ MTIOCPARAMSET /* set tape params */ MTIOCSETLIST /* set N params */ usr.bin/mt/Makefile: mt(1) now depends on libmt, libsbuf and libbsdxml. usr.bin/mt/mt.1: Document new mt(1) features and subcommands. usr.bin/mt/mt.c: Implement support for mt(1) subcommands that need to use getopt(3) for their arguments. Implement a new 'mt status' command to replace the old 'mt status' command. The old status command has been renamed 'ostatus'. The new status function uses the MTIOCEXTGET ioctl, and therefore parses the XML data to determine drive status. The -x argument to 'mt status' allows the user to dump out the raw XML reported by the kernel. The new status display is mostly the same as the old status display, except that it doesn't print the redundant density mode information, and it does print the current partition number and position flags. Add a new command, 'mt locate', that will supersede the old 'mt setspos' and 'mt sethpos' commands. 'mt locate' implements all of the functionality of the MTIOCEXTLOCATE ioctl, and allows the user to change the logical position of the tape drive in a number of ways. (Partition, block number, file number, set mark number, end of data.) The immediate bit and the explicit address bits are implemented, but not documented in the man page. Add a new 'mt weofi' command to use the new MTWEOFI ioctl. This allows the user to ask the drive to write a filemark without waiting around for the operation to complete. Add a new 'mt getdensity' command that gets the XML-based tape drive density report from the sa(4) driver and displays it. This uses the SCSI REPORT DENSITY SUPPORT command to get comprehensive information from the tape drive about what formats it is able to read and write. Add a new 'mt protect' command that allows getting and setting tape drive protection information. The protection information is a CRC tacked on to the end of every read/write from and to the tape drive. Sponsored by: Spectra Logic MFC after: 1 month
* Pull up vendor changes up to 2014-01-29uqs2014-01-314-74/+180
| | | | | | | | - move local overrides into mdoc.local - syncs us with git commit 819839b66c80e8dabe6cb24ea6319c26c9a2be14 Discussed with: ru MFC after: 2 weeks
* Quiesce warnings -Wdangling-elsesbruno2013-10-283-11/+15
| | | | Thanks to jilles for some reviews and tips.
* Add libsbuf.pjd2012-09-221-0/+1
|
* Pull up vendor changes to mdoc(7).ru2012-07-262-2/+2
|
* Backed out r228904, and added libstdthreads support to mdoc(7) to whereru2012-07-262-3/+0
| | | | it belongs.
* Backed out r236255, and added FreeBSD 9.1 support to mdoc(7) to whereru2012-07-261-3/+0
| | | | it belongs.
* Add the latest FreeBSD versions.obrien2012-05-291-0/+3
|
* Pull up vendor changes to mdoc(7)uqs2012-01-052-4/+4
| | | | | | | | This switches us to using -isoC-2011 as the symbol name which is used by groff and mdocml. It follows the change to 4 digit years as done with IEEE Std 1003 post-1999. MFC after: 2 weeks (groff changes only)
* Add libstdthreads.ed2011-12-262-0/+3
| | | | | | | | | | | | | This library implements the C11 threads interface on top of the pthreads library. As discussed on the lists, the preferred way to implement this, is as a separate library. It is unlikely that these functions will be used a lot in the future. It would have been easier if the C11 working group standardized (a subset of) pthreads and clock_nanosleep(). Having it as a separate library allows the embedded people to omit it from their system. Discussed on: arch@, threads@
* Add the C11 standard to groff. This allows us to refer to C11 as -isoC-11.ed2011-12-252-0/+4
| | | | MFC after: 2 months
* Pull up vendor changes to mdoc(7).ru2011-12-084-17/+171
|
* Pull up all vendor changes to mdoc(7).ru2011-06-083-4/+32
| | | | | | | | | This also replaces the local fix in r219209 that made .Ac emit ASCII angle quotes with an official fix. In the official fix, ASCII quotes are output when using the .Aq, .Ao and .Ac calls, but only when nested into the .An macro. PR: gnu/154822
* Re-enable SGR support (ANSI color escapes) in grotty(1) by default.ru2011-06-031-8/+0
| | | | | | | Our man(1) and bsd.doc.mk still disable it for POLA reasons via the -c option to grotty(1). PR: gnu/82353
* Fix clang warnings.benl2011-05-185-7/+9
| | | | | | | Note: possible minor security issues fixed (untrusted string used as printf format string). Approved by: philip (mentor)
* Unbreak .Aq for non-ASCII output like -Tps or -Tutf8.uqs2011-03-021-2/+2
| | | | | | | | | | | | groff will try to produce fancy angle brackets like Foo ⟨foo@FreeBSD.org⟩ This is nice and well, but no email client will understand them. For ease of copy&paste keep the one-true pair of brackets 0x3c/0x3e. See: RFC 822, RFC 2822 PR: gnu/154822 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> MFC after: 2 weeks
* Update groff manpage and symbols with what has been submitted upstream.uqs2011-01-193-13/+84
| | | | | | | | | Also remove local overrides that are now in the contrib tree. This is a direct commit to contrib/ as we will no longer import any newer groff snapshots, due to licensing issues. MFC after: 3 weeks
* Pull up vendor changes.ru2010-01-153-4/+79
|
* Moved the doc-str-Lb-libulog string definition to where it belongs.ru2010-01-151-1/+0
|
* Pull up vendor changes. The following local changes made obsolete:ru2010-01-157-31/+105
| | | | | - Addition of several FreeBSD versions. - r192561 that attempted to fix UTF-8 issues.
* Add a new library: libulog.ed2009-12-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the things I really want to do, is to get rid of the limitations of our current utmp(5) mechanism: - It only allows 8 byte TTY device names. - The hostname only allows 16 bytes of storage. I'm not a big fan of <utmpx.h>, but I think we should at least try to add parts of it. Unfortunately we cannot implement <utmpx.h>, because we miss various fields, such as ut_id, ut_pid, etc. The API provided by libulog shares some similarities with <utmpx.h>, so it shouldn't be too hard to port these applications eventually. In most simple cases, it should just be a matter of removing the ulog_ prefix everywhere. As a bonus, it also implements a function called ulog_login_pseudo(), which allows unprivileged applications to write log entries, provided they have a valid file descriptor to a pseudo-terminal master device. libulog will allow a smoother transition to a new file format by adding a library interface to deal with utmp/wtmp/lastlog files. I initially thought about adding the functionality to libutil, but because I'm not planning on keeping this library around forever, we'd better keep it separated. Next items on the todo list: 1. Port applications in the base system (and ports) to libulog, instead of letting them use <utmp.h>. 2. Remove <utmp.h>, implement <utmpx.h> and reimplement this library on top. 3. Port as many applications as possible back to <utmpx.h>.
* When man pages are formatted in UTF-8, .Fl is encoded as U+2212 "MINUSdes2009-05-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SIGN" instead of U+002D "HYPHEN-MINUS". This is unfortunate for two reasons: 1) this is not the character which is actually used on the command line, and 2) it makes it impossible to search a man page for a specific command-line option. This patch fixes this, but there are other unresolved issues, such as confusion between -, \- and hy: while the latter is always (and only) used for hyphenation, both - and \- are used for negation and subtraction, and \- is used for command-line options and sometimes also for parenthesis. IMHO, the correct Unicode characters are: - hyphenation: either U+2010 or U+00AD, most likely the former (the latter is the so-called soft hyphen, used to indicate a point at which a text processor is allowed to hyphenate a word) - negation and subtraction: U+2212 - parenthesis: in English, U+2214, with spaces suppressed before and after; in some others (such as Norwegian), U+2213 with spaces retained. - command-line options: U+002D, because that is what is actually used on the command line. However, fixing this would require extensive modifications to (at least) the doc and man macro sets... MFC after: 1 week
* MFV: recent mdoc(7) changes.ru2007-10-042-4/+5
| | | | Approved by: re (kensmith)
* This commit was generated by cvs2svn to compensate for changes in r172423,ru2007-10-031-82/+88
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up current -mdoc version from vendor. This includes theru2007-10-033-86/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | following changes: : 2007-10-02 Ruslan Ermilov <ru@FreeBSD.org> : : * tmac/doc-common, tmac/groff_doc.man: Add FreeBSD 6.2, document : FreeBSD 5.5 and 7.0. : : * tmac/doc-syms: Give better names for System V releases. : 2007-05-30 Werner LEMBERG <wl@gnu.org> : : * tmac/groff_mdoc.man: Convert `-' to `\-' where appropriate. : Recommend `tbl' instead of `-column' lists for more complicated : cases.
* | MFV: Sync with vendor branch.ru2006-12-252-0/+85
| |
* | This commit was generated by cvs2svn to compensate for changes in r165538,ru2006-12-251-1/+23
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up current -mdoc version from vendor.ru2006-12-253-1/+108
| | | | | | | | | | | | - New Darwin, FreeBSD, and NetBSD versions. - DragonFly support including the new .Dx macro. - New .St strings: -isoC-amd1, -isoC-tcor1, -isoC-tcor2, and -ieee1275-94.
* | Pull up from the FSF branch.ru2006-01-121-1/+19
| |
* | This commit was generated by cvs2svn to compensate for changes in r154258,ru2006-01-121-4/+6
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Merge support for new BSD releases from upstream:ru2006-01-122-5/+25
| | | | | | | | | | | | - Darwin 8.[0-3].0 - FreeBSD 4.11, 5.4, 6.0, 6.1 - NetBSD 3.0
| * Removed files not present in v1.19.2 import.ru2005-10-2062-21518/+0
| |
* | Update upgrade instructions.ru2005-10-201-4/+4
| |
* | Merge Groff 1.19.2 changes.ru2005-10-2011-56/+183
| |
* | Use stock (FSF) version of this file.ru2005-10-205-191/+394
| |
* | This commit was generated by cvs2svn to compensate for changes in r151500,ru2005-10-2062-21518/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | This commit was generated by cvs2svn to compensate for changes in r151497,ru2005-10-20503-62920/+144037
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of FSF groff v1.19.2ru2005-10-20525-66388/+147910
| |
* | MFV: Latest mdoc(7) fixes.ru2005-01-253-10/+1
| |
* | This commit was generated by cvs2svn to compensate for changes in r140801,ru2005-01-252-25/+42
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Bring in latest mdoc(7) fixes over here.ru2005-01-255-35/+43
| |
* | This commit was generated by cvs2svn to compensate for changes in r140229,ru2005-01-141-0/+2
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up a vendor fix for a problem exposed by tr/tr.1,v 1.30.ru2005-01-141-0/+2
| |
* | Revert rev 1.66. This file needs to track its upstream source.jkoshy2004-12-171-1/+0
| | | | | | | | Requested by: ru
* | Support for ".Fx 6.0".jkoshy2004-12-171-0/+1
| | | | | | | | Reviewed by: ru
* | This commit was generated by cvs2svn to compensate for changes in r136136,ru2004-10-052-3/+1
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Pull up the latest minor fixes.ru2004-10-052-3/+1
| |
OpenPOWER on IntegriCloud