1.\" $OpenBSD: mandoc.1,v 1.192 2023/10/24 20:30:49 schwarze Exp $ 2.\" 3.\" Copyright (c) 2012, 2014-2023 Ingo Schwarze <schwarze@openbsd.org> 4.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> 5.\" 6.\" Permission to use, copy, modify, and distribute this software for any 7.\" purpose with or without fee is hereby granted, provided that the above 8.\" copyright notice and this permission notice appear in all copies. 9.\" 10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" 18.Dd $Mdocdate: October 24 2023 $ 19.Dt MANDOC 1 20.Os 21.Sh NAME 22.Nm mandoc 23.Nd format manual pages 24.Sh SYNOPSIS 25.Nm mandoc 26.Op Fl ac 27.Op Fl I Cm os Ns = Ns Ar name 28.Op Fl K Ar encoding 29.Op Fl mdoc | man 30.Op Fl O Ar options 31.Op Fl T Ar output 32.Op Fl W Ar level 33.Op Ar 34.Sh DESCRIPTION 35The 36.Nm 37utility formats manual pages for display. 38.Pp 39By default, 40.Nm 41reads 42.Xr mdoc 7 43or 44.Xr man 7 45text from stdin and produces 46.Fl T Cm locale 47output. 48.Pp 49The options are as follows: 50.Bl -tag -width Ds 51.It Fl a 52If the standard output is a terminal device and 53.Fl c 54is not specified, use 55.Xr less 1 56to paginate the output, just like 57.Xr man 1 58would. 59.It Fl c 60Copy the formatted manual pages to the standard output without using 61.Xr less 1 62to paginate them. 63This is the default. 64It can be specified to override 65.Fl a . 66.It Fl I Cm os Ns = Ns Ar name 67Override the default operating system 68.Ar name 69for the 70.Xr mdoc 7 71.Ic \&Os 72and for the 73.Xr man 7 74.Ic \&TH 75macro. 76.It Fl K Ar encoding 77Specify the input encoding. 78The supported 79.Ar encoding 80arguments are 81.Cm us-ascii , 82.Cm iso-8859-1 , 83and 84.Cm utf-8 . 85If not specified, autodetection uses the first match in the following 86list: 87.Bl -enum 88.It 89If the first three bytes of the input file are the UTF-8 byte order 90mark (BOM, 0xefbbbf), input is interpreted as 91.Cm utf-8 . 92.It 93If the first or second line of the input file matches the 94.Sy emacs 95mode line format 96.Pp 97.D1 .\e" -*- Oo ...; Oc coding: Ar encoding ; No -*- 98.Pp 99then input is interpreted according to 100.Ar encoding . 101.It 102If the first non-ASCII byte in the file introduces a valid UTF-8 103sequence, input is interpreted as 104.Cm utf-8 . 105.It 106Otherwise, input is interpreted as 107.Cm iso-8859-1 . 108.El 109.It Fl mdoc | man 110With 111.Fl mdoc , 112all input files are interpreted as 113.Xr mdoc 7 . 114With 115.Fl man , 116all input files are interpreted as 117.Xr man 7 . 118By default, the input language is automatically detected for each file: 119if the first macro is 120.Ic \&Dd 121or 122.Ic \&Dt , 123the 124.Xr mdoc 7 125parser is used; otherwise, the 126.Xr man 7 127parser is used. 128With other arguments, 129.Fl m 130is silently ignored. 131.It Fl O Ar options 132Comma-separated output options. 133See the descriptions of the individual output formats for supported 134.Ar options . 135.It Fl T Ar output 136Select the output format. 137Supported values for the 138.Ar output 139argument are 140.Cm ascii , 141.Cm html , 142the default of 143.Cm locale , 144.Cm man , 145.Cm markdown , 146.Cm pdf , 147.Cm ps , 148.Cm tree , 149and 150.Cm utf8 . 151.Pp 152The special 153.Fl T Cm lint 154mode only parses the input and produces no output. 155It implies 156.Fl W Cm all 157and redirects parser messages, which usually appear on standard 158error output, to standard output. 159.It Fl W Ar level 160Specify the minimum message 161.Ar level 162to be reported on the standard error output and to affect the exit status. 163The 164.Ar level 165can be 166.Cm base , 167.Cm style , 168.Cm warning , 169.Cm error , 170or 171.Cm unsupp . 172The 173.Cm base 174level automatically derives the operating system from the contents of the 175.Ic \&Os 176macro, from the 177.Fl Ios 178command line option, or from the 179.Xr uname 3 180return value. 181The levels 182.Cm openbsd 183and 184.Cm netbsd 185are variants of 186.Cm base 187that bypass autodetection and request validation of base system 188conventions for a particular operating system. 189The level 190.Cm all 191is an alias for 192.Cm base . 193By default, 194.Nm 195is silent. 196See 197.Sx EXIT STATUS 198and 199.Sx DIAGNOSTICS 200for details. 201.Pp 202The special option 203.Fl W Cm stop 204tells 205.Nm 206to exit after parsing a file that causes warnings or errors of at least 207the requested level. 208No formatted output will be produced from that file. 209If both a 210.Ar level 211and 212.Cm stop 213are requested, they can be joined with a comma, for example 214.Fl W Cm error , Ns Cm stop . 215.It Ar file 216Read from the given input file. 217If multiple files are specified, they are processed in the given order. 218If unspecified, 219.Nm 220reads from standard input. 221.El 222.Pp 223The options 224.Fl fhklw 225are also supported and are documented in 226.Xr man 1 . 227In 228.Fl f 229and 230.Fl k 231mode, 232.Nm 233also supports the options 234.Fl CMmOSs 235described in the 236.Xr apropos 1 237manual. 238The options 239.Fl fkl 240are mutually exclusive and override each other. 241.Ss ASCII Output 242Use 243.Fl T Cm ascii 244to force text output in 7-bit ASCII character encoding documented in the 245.Xr ascii 7 246manual page, ignoring the 247.Xr locale 1 248set in the environment. 249.Pp 250Font styles are applied by using back-spaced encoding such that an 251underlined character 252.Sq c 253is rendered as 254.Sq _ Ns \e[bs] Ns c , 255where 256.Sq \e[bs] 257is the back-space character number 8. 258Emboldened characters are rendered as 259.Sq c Ns \e[bs] Ns c . 260This markup is typically converted to appropriate terminal sequences by 261the pager or 262.Xr ul 1 . 263To remove the markup, pipe the output to 264.Xr col 1 265.Fl b 266instead. 267.Pp 268The special characters documented in 269.Xr mandoc_char 7 270are rendered best-effort in an ASCII equivalent. 271In particular, opening and closing 272.Sq single quotes 273are represented as characters number 0x60 and 0x27, respectively, 274which agrees with all ASCII standards from 1965 to the latest 275revision (2012) and which matches the traditional way in which 276.Xr roff 7 277formatters represent single quotes in ASCII output. 278This correct ASCII rendering may look strange with modern 279Unicode-compatible fonts because contrary to ASCII, Unicode uses 280the code point U+0060 for the grave accent only, never for an opening 281quote. 282.Pp 283The following 284.Fl O 285arguments are accepted: 286.Bl -tag -width Ds 287.It Cm indent Ns = Ns Ar indent 288The left margin for normal text is set to 289.Ar indent 290blank characters instead of the default of five for 291.Xr mdoc 7 292and seven for 293.Xr man 7 . 294Increasing this is not recommended; it may result in degraded formatting, 295for example overfull lines or ugly line breaks. 296When output is to a pager on a terminal that is less than 66 columns 297wide, the default is reduced to three columns. 298.It Cm mdoc 299Format 300.Xr man 7 301input files in 302.Xr mdoc 7 303output style. 304This prints the operating system name rather than the page title 305on the right side of the footer line, and it implies 306.Fl O Cm indent Ns =5 . 307One useful application is for checking that 308.Fl T Cm man 309output formats in the same way as the 310.Xr mdoc 7 311source it was generated from. 312.It Cm tag Ns Op = Ns Ar term 313If the formatted manual page is opened in a pager, 314go to the definition of the 315.Ar term 316rather than showing the manual page from the beginning. 317If no 318.Ar term 319is specified, reuse the first command line argument that is not a 320.Ar section 321number. 322If that argument is in 323.Xr apropos 1 324.Ar key Ns = Ns Ar val 325format, only the 326.Ar val 327is used rather than the argument as a whole. 328This is useful for commands like 329.Ql man -akO tag Ic=ulimit 330to search for a keyword and jump right to its definition 331in the matching manual pages. 332.It Cm width Ns = Ns Ar width 333The output width is set to 334.Ar width 335instead of the default of 78. 336When output is to a pager on a terminal that is less than 79 columns 337wide, the default is reduced to one less than the terminal width. 338In any case, lines that are output in literal mode are never wrapped 339and may exceed the output width. 340.El 341.Ss HTML Output 342Output produced by 343.Fl T Cm html 344conforms to HTML5 using optional self-closing tags. 345Equations rendered from 346.Xr eqn 7 347blocks use MathML. 348Non-ASCII characters are rendered 349as hexadecimal Unicode character references. 350.Pp 351The following 352.Fl O 353arguments are accepted: 354.Bl -tag -width Ds 355.It Cm fragment 356Omit the <!DOCTYPE> declaration and the <html>, <head>, and <body> 357elements and only emit the subtree below the <body> element. 358The 359.Cm style 360argument will be ignored. 361This is useful when embedding manual content within existing documents. 362.It Cm includes Ns = Ns Ar fmt 363The string 364.Ar fmt , 365for example, 366.Ar ../src/%I.html , 367is used as a template for linked header files (usually via the 368.Ic \&In 369macro). 370Instances of 371.Sq \&%I 372are replaced with the include filename. 373The default is not to present a 374hyperlink. 375.It Cm man Ns = Ns Ar fmt Ns Op ; Ns Ar fmt 376The string 377.Ar fmt , 378for example, 379.Ar ../html%S/%N.%S.html , 380is used as a template for linked manuals (usually via the 381.Ic \&Xr 382macro). 383Instances of 384.Sq \&%N 385and 386.Sq %S 387are replaced with the linked manual's name and section, respectively. 388If no section is included, section 1 is assumed. 389The default is not to 390present a hyperlink. 391If two formats are given and a file 392.Ar %N.%S 393exists in the current directory, the first format is used; 394otherwise, the second format is used. 395.It Cm style Ns = Ns Ar style.css 396The file 397.Ar style.css 398is used as an external stylesheet. 399This must be a valid absolute or 400relative URI. 401.Pp 402Using the file 403.Pa mandoc.css 404that is distributed with 405.Nm 406is recommended. 407It provides an appearance similar to terminal output with some additional 408features specific to 409.Nm 410HTML output, in particular making anchor locations that support 411deep linking stand out visually by putting a dotted line under them, 412providing tooltips showing the semantic function of elements (macro 413names), providing some simple aspects of responsive web design, and 414providing simple support for users who prefer a dark color scheme. 415.Pp 416Using a custom CSS file is possible, but writing it requires 417proficiency in all of the languages HTML 5, CSS 4, and 418.Xr mdoc 7 419and familiarity with the 420.Nm Ns -specific 421classes used in 422.Pa mandoc.css . 423Besides, while the file 424.Pa mandoc.css 425is always adapted to the HTML output generated by the 426.Nm 427version it is distributed with, maintaining a custom CSS file usually 428requires adaptations each time 429.Nm 430is upgraded to a new version. 431.Pp 432If a stylesheet is not specified with 433.Fl O Cm style , 434.Fl T Cm html 435embeds a minimal stylesheet into the HTML output, mostly to select 436adequate font-style and font-weight attributes for various macros. 437The result is readable in any graphical or text-based web browser, 438but does not aim for looking similar to terminal output. 439Instead, formatting is mostly left to browser defaults 440and to user settings in the browser configuration. 441.It Cm tag Ns Op = Ns Ar term 442Same syntax and semantics as for 443.Sx ASCII Output . 444This is implemented by passing a 445.Ic file:// 446URI ending in a fragment identifier to the pager 447rather than passing merely a file name. 448When using this argument, use a pager supporting such URIs, for example 449.Bd -literal -offset 3n 450MANPAGER='lynx -force_html' man -T html -O tag=MANPAGER man 451MANPAGER='w3m -T text/html' man -T html -O tag=toc mandoc 452.Ed 453.Pp 454Consequently, for HTML output, this argument does not work with 455.Xr more 1 456or 457.Xr less 1 . 458For example, 459.Ql MANPAGER=less man -T html -O tag=toc mandoc 460does not work because 461.Xr less 1 462does not support 463.Ic file:// 464URIs. 465.It Cm toc 466If an input file contains at least two non-standard sections, 467print a table of contents near the beginning of the output. 468.El 469.Ss Locale Output 470By default, 471.Nm 472automatically selects UTF-8 or ASCII output according to the current 473.Xr locale 1 . 474If any of the environment variables 475.Ev LC_ALL , 476.Ev LC_CTYPE , 477or 478.Ev LANG 479are set and the first one that is set 480selects the UTF-8 character encoding, it produces 481.Sx UTF-8 Output ; 482otherwise, it falls back to 483.Sx ASCII Output . 484This output mode can also be selected explicitly with 485.Fl T Cm locale . 486.Ss Man Output 487Use 488.Fl T Cm man 489to translate 490.Xr mdoc 7 491input into 492.Xr man 7 493output format. 494This is useful for distributing manual sources to legacy systems 495lacking 496.Xr mdoc 7 497formatters. 498Embedded 499.Xr eqn 7 500and 501.Xr tbl 7 502code is not supported. 503.Pp 504If the input format of a file is 505.Xr man 7 , 506the input is copied to the output. 507The parser is also run, and as usual, the 508.Fl W 509level controls which 510.Sx DIAGNOSTICS 511are displayed before copying the input to the output. 512.Ss Markdown Output 513Use 514.Fl T Cm markdown 515to translate 516.Xr mdoc 7 517input to the markdown format conforming to 518.Lk https://daringfireball.net/projects/markdown/syntax.text\ 519 "John Gruber's 2004 specification" . 520The output also almost conforms to the 521.Lk https://commonmark.org/ CommonMark 522specification. 523.Pp 524The character set used for the markdown output is ASCII. 525Non-ASCII characters are encoded as HTML entities. 526Since that is not possible in literal font contexts, because these 527are rendered as code spans and code blocks in the markdown output, 528non-ASCII characters are transliterated to ASCII approximations in 529these contexts. 530.Pp 531Markdown is a very weak markup language, so all semantic markup is 532lost, and even part of the presentational markup may be lost. 533Do not use this as an intermediate step in converting to HTML; 534instead, use 535.Fl T Cm html 536directly. 537.Pp 538The 539.Xr man 7 , 540.Xr tbl 7 , 541and 542.Xr eqn 7 543input languages are not supported by 544.Fl T Cm markdown 545output mode. 546.Ss PDF Output 547PDF-1.1 output may be generated by 548.Fl T Cm pdf . 549See 550.Sx PostScript Output 551for 552.Fl O 553arguments and defaults. 554.Ss PostScript Output 555PostScript 556.Qq Adobe-3.0 557Level-2 pages may be generated by 558.Fl T Cm ps . 559Output pages default to letter sized and are rendered in the Times font 560family, 11-point. 561Margins are calculated as 1/9 the page length and width. 562Line-height is 1.4m. 563.Pp 564Special characters are rendered as in 565.Sx ASCII Output . 566.Pp 567The following 568.Fl O 569arguments are accepted: 570.Bl -tag -width Ds 571.It Cm paper Ns = Ns Ar name 572The paper size 573.Ar name 574may be one of 575.Ar a3 , 576.Ar a4 , 577.Ar a5 , 578.Ar legal , 579or 580.Ar letter . 581You may also manually specify dimensions as 582.Ar NNxNN , 583width by height in millimetres. 584If an unknown value is encountered, 585.Ar letter 586is used. 587.El 588.Ss UTF-8 Output 589Use 590.Fl T Cm utf8 591to force text output in UTF-8 multi-byte character encoding, 592ignoring the 593.Xr locale 1 594settings in the environment. 595See 596.Sx ASCII Output 597regarding font styles and 598.Fl O 599arguments. 600.Pp 601On operating systems lacking locale or wide character support, and 602on those where the internal character representation is not UCS-4, 603.Nm 604always falls back to 605.Sx ASCII Output . 606.Ss Syntax tree output 607Use 608.Fl T Cm tree 609to show a human readable representation of the syntax tree. 610It is useful for debugging the source code of manual pages. 611The exact format is subject to change, so don't write parsers for it. 612.Pp 613The first paragraph shows meta data found in the 614.Xr mdoc 7 615prologue, on the 616.Xr man 7 617.Ic \&TH 618line, or the fallbacks used. 619.Pp 620In the tree dump, each output line shows one syntax tree node. 621Child nodes are indented with respect to their parent node. 622The columns are: 623.Pp 624.Bl -enum -compact 625.It 626For macro nodes, the macro name; for text and 627.Xr tbl 7 628nodes, the content. 629There is a special format for 630.Xr eqn 7 631nodes. 632.It 633Node type (text, elem, block, head, body, body-end, tail, tbl, eqn). 634.It 635Flags: 636.Bl -dash -compact 637.It 638An opening parenthesis if the node is an opening delimiter. 639.It 640An asterisk if the node starts a new input line. 641.It 642The input line number (starting at one). 643.It 644A colon. 645.It 646The input column number (starting at one). 647.It 648A closing parenthesis if the node is a closing delimiter. 649.It 650A full stop if the node ends a sentence. 651.It 652BROKEN if the node is a block broken by another block. 653.It 654NOSRC if the node is not in the input file, 655but automatically generated from macros. 656.It 657NOPRT if the node is not supposed to generate output 658for any output format. 659.El 660.El 661.Pp 662The following 663.Fl O 664argument is accepted: 665.Bl -tag -width Ds 666.It Cm noval 667Skip validation and show the unvalidated syntax tree. 668This can help to find out whether a given behaviour is caused by 669the parser or by the validator. 670Meta data is not available in this case. 671.El 672.Sh ENVIRONMENT 673.Bl -tag -width MANPAGER 674.It Ev LC_CTYPE 675The character encoding 676.Xr locale 1 . 677When 678.Sx Locale Output 679is selected, it decides whether to use ASCII or UTF-8 output format. 680It never affects the interpretation of input files. 681.It Ev MANPAGER 682Any non-empty value of the environment variable 683.Ev MANPAGER 684is used instead of the standard pagination program, 685.Xr less 1 ; 686see 687.Xr man 1 688for details. 689Only used if 690.Fl a 691or 692.Fl l 693is specified. 694.It Ev PAGER 695Specifies the pagination program to use when 696.Ev MANPAGER 697is not defined. 698If neither PAGER nor MANPAGER is defined, 699.Xr less 1 700is used. 701Only used if 702.Fl a 703or 704.Fl l 705is specified. 706.El 707.Sh EXIT STATUS 708The 709.Nm 710utility exits with one of the following values, controlled by the message 711.Ar level 712associated with the 713.Fl W 714option: 715.Pp 716.Bl -tag -width Ds -compact 717.It 0 718No base system convention violations, style suggestions, warnings, 719or errors occurred, or those that did were ignored because they 720were lower than the requested 721.Ar level . 722.It 1 723At least one base system convention violation or style suggestion 724occurred, but no warning or error, and 725.Fl W Cm base 726or 727.Fl W Cm style 728was specified. 729.It 2 730At least one warning occurred, but no error, and 731.Fl W Cm warning 732or a lower 733.Ar level 734was requested. 735.It 3 736At least one parsing error occurred, 737but no unsupported feature was encountered, and 738.Fl W Cm error 739or a lower 740.Ar level 741was requested. 742.It 4 743At least one unsupported feature was encountered, and 744.Fl W Cm unsupp 745or a lower 746.Ar level 747was requested. 748.It 5 749Invalid command line arguments were specified. 750No input files have been read. 751.It 6 752An operating system error occurred, for example exhaustion 753of memory, file descriptors, or process table entries. 754Such errors may cause 755.Nm 756to exit at once, possibly in the middle of parsing or formatting a file. 757.El 758.Pp 759Note that selecting 760.Fl T Cm lint 761output mode implies 762.Fl W Cm all . 763.Sh EXAMPLES 764To page manuals to the terminal: 765.Pp 766.Dl $ mandoc -a mandoc.1 man.1 apropos.1 makewhatis.8 767.Pp 768To produce HTML manuals with 769.Pa /usr/share/misc/mandoc.css 770as the stylesheet: 771.Pp 772.Dl $ mandoc \-T html -O style=/usr/share/misc/mandoc.css mdoc.7 > mdoc.7.html 773.Pp 774To check over a large set of manuals: 775.Pp 776.Dl $ mandoc \-T lint \(gafind /usr/src -name \e*\e.[1-9]\(ga 777.Pp 778To produce a series of PostScript manuals for A4 paper: 779.Pp 780.Dl $ mandoc \-T ps \-O paper=a4 mdoc.7 man.7 > manuals.ps 781.Pp 782Convert a modern 783.Xr mdoc 7 784manual to the older 785.Xr man 7 786format, for use on systems lacking an 787.Xr mdoc 7 788parser: 789.Pp 790.Dl $ mandoc \-T man foo.mdoc > foo.man 791.Sh DIAGNOSTICS 792Messages displayed by 793.Nm 794follow this format: 795.Bd -ragged -offset indent 796.Nm : 797.Ar file : Ns Ar line : Ns Ar column : level : message : macro argument ... 798.Pq Ar os 799.Ed 800.Pp 801The first three fields identify the 802.Ar file 803name, 804.Ar line 805number, and 806.Ar column 807number of the input file where the message was triggered. 808The line and column numbers start at 1. 809Both are omitted for messages referring to an input file as a whole. 810All 811.Ar level 812and 813.Ar message 814strings are explained below. 815The name of the 816.Ar macro 817triggering the message and its arguments are omitted where meaningless. 818The 819.Ar os 820operating system specifier is omitted for messages that are relevant 821for all operating systems. 822Fatal messages about invalid command line arguments 823or operating system errors, for example when memory is exhausted, 824may also omit the 825.Ar file 826and 827.Ar level 828fields. 829.Pp 830Message levels have the following meanings: 831.Bl -tag -width "warning" 832.It Cm syserr 833An operating system error occurred. 834There isn't necessarily anything wrong with the input files. 835Output may all the same be missing or incomplete. 836.It Cm badarg 837Invalid command line arguments were specified. 838No input files have been read and no output is produced. 839.It Cm unsupp 840An input file uses unsupported low-level 841.Xr roff 7 842features. 843The output may be incomplete and/or misformatted, 844so using GNU troff instead of 845.Nm 846to process the file may be preferable. 847.It Cm error 848Indicates a risk of information loss or severe misformatting, 849in most cases caused by serious syntax errors. 850.It Cm warning 851Indicates a risk that the information shown or its formatting 852may mismatch the author's intent in minor ways. 853Additionally, syntax errors are classified at least as warnings, 854even if they do not usually cause misformatting. 855.It Cm style 856An input file uses dubious or discouraged style. 857This is not a complaint about the syntax, and probably neither 858formatting nor portability are in danger. 859While great care is taken to avoid false positives on the higher 860message levels, the 861.Cm style 862level tries to reduce the probability that issues go unnoticed, 863so it may occasionally issue bogus suggestions. 864Use your judgement to decide whether any particular 865.Cm style 866suggestion really justifies a change to the input file. 867.It Cm base 868A convention used in the base system of a specific operating system 869is not adhered to. 870These are not markup mistakes, and neither the quality of formatting 871nor portability are in danger. 872Messages of the 873.Cm base 874level are printed with the more intuitive 875.Cm style 876.Ar level 877tag. 878.El 879.Pp 880Messages of the 881.Cm base , 882.Cm style , 883.Cm warning , 884.Cm error , 885and 886.Cm unsupp 887levels are hidden unless their level, or a lower level, is requested using a 888.Fl W 889option or 890.Fl T Cm lint 891output mode. 892.Pp 893As indicated below, all 894.Cm base 895and some 896.Cm style 897checks are only performed if a specific operating system name occurs 898in the arguments of the 899.Fl W 900command line option, of the 901.Ic \&Os 902macro, of the 903.Fl Ios 904command line option, or, if neither are present, in the return value 905of the 906.Xr uname 3 907function. 908.Ss Conventions for base system manuals 909.Bl -ohang 910.It Sy "Mdocdate found" 911.Pq mdoc , Nx 912The 913.Ic \&Dd 914macro uses CVS 915.Ic Mdocdate 916keyword substitution, which is not supported by the 917.Nx 918base system. 919Consider using the conventional 920.Dq "Month dd, yyyy" 921format instead. 922.It Sy "Mdocdate missing" 923.Pq mdoc , Ox 924The 925.Ic \&Dd 926macro does not use CVS 927.Ic Mdocdate 928keyword substitution, but using it is conventionally expected in the 929.Ox 930base system. 931.It Sy "unknown architecture" 932.Pq mdoc , Ox , Nx 933The third argument of the 934.Ic \&Dt 935macro does not match any of the architectures this operating system 936is running on. 937.It Sy "operating system explicitly specified" 938.Pq mdoc , Ox , Nx 939The 940.Ic \&Os 941macro has an argument. 942In the base system, it is conventionally left blank. 943.It Sy "RCS id missing" 944.Pq Ox , Nx 945The manual page lacks the comment line with the RCS identifier 946generated by CVS 947.Ic OpenBSD 948or 949.Ic NetBSD 950keyword substitution as conventionally used in these operating systems. 951.El 952.Ss Style suggestions 953.Bl -ohang 954.It Sy "legacy man(7) date format" 955.Pq mdoc 956The 957.Ic \&Dd 958macro uses the legacy 959.Xr man 7 960date format 961.Dq yyyy-dd-mm . 962Consider using the conventional 963.Xr mdoc 7 964date format 965.Dq "Month dd, yyyy" 966instead. 967.It Sy "normalizing date format to" : No ... 968.Pq mdoc , man 969The 970.Ic \&Dd 971or 972.Ic \&TH 973macro provides an abbreviated month name or a day number with a 974leading zero. 975In the formatted output, the month name is written out in full 976and the leading zero is omitted. 977.It Sy "lower case character in document title" 978.Pq mdoc , man 979The title is still used as given in the 980.Ic \&Dt 981or 982.Ic \&TH 983macro. 984.It Sy "duplicate RCS id" 985A single manual page contains two copies of the RCS identifier for 986the same operating system. 987Consider deleting the later instance and moving the first one up 988to the top of the page. 989.It Sy "possible typo in section name" 990.Pq mdoc 991Fuzzy string matching revealed that the argument of an 992.Ic \&Sh 993macro is similar, but not identical to a standard section name. 994.It Sy "unterminated quoted argument" 995.Pq roff 996Macro arguments can be enclosed in double quote characters 997such that space characters and macro names contained in the quoted 998argument need not be escaped. 999The closing quote of the last argument of a macro can be omitted. 1000However, omitting it is not recommended because it makes the code 1001harder to read. 1002.It Sy "useless macro" 1003.Pq mdoc 1004A 1005.Ic \&Bt , 1006.Ic \&Tn , 1007or 1008.Ic \&Ud 1009macro was found. 1010Simply delete it: it serves no useful purpose. 1011.It Sy "consider using OS macro" 1012.Pq mdoc 1013A string was found in plain text or in a 1014.Ic \&Bx 1015macro that could be represented using 1016.Ic \&Ox , 1017.Ic \&Nx , 1018.Ic \&Fx , 1019or 1020.Ic \&Dx . 1021.It Sy "errnos out of order" 1022.Pq mdoc, Nx 1023The 1024.Ic \&Er 1025items in a 1026.Ic \&Bl 1027list are not in alphabetical order. 1028.It Sy "duplicate errno" 1029.Pq mdoc, Nx 1030A 1031.Ic \&Bl 1032list contains two consecutive 1033.Ic \&It 1034entries describing the same 1035.Ic \&Er 1036number. 1037.It Sy "referenced manual not found" 1038.Pq mdoc 1039An 1040.Ic \&Xr 1041macro references a manual page that was not found. 1042When running with 1043.Fl W Cm base , 1044the search is restricted to the base system, by default to 1045.Pa /usr/share/man : Ns Pa /usr/X11R6/man . 1046This path can be configured at compile time using the 1047.Dv MANPATH_BASE 1048preprocessor macro. 1049When running with 1050.Fl W Cm style , 1051the search is done along the full search path as described in the 1052.Xr man 1 1053manual page, respecting the 1054.Fl m 1055and 1056.Fl M 1057command line options, the 1058.Ev MANPATH 1059environment variable, the 1060.Xr man.conf 5 1061file and falling back to the default of 1062.Pa /usr/share/man : Ns Pa /usr/X11R6/man : Ns Pa /usr/local/man , 1063also configurable at compile time using the 1064.Dv MANPATH_DEFAULT 1065preprocessor macro. 1066.It Sy "trailing delimiter" 1067.Pq mdoc 1068The last argument of an 1069.Ic \&Ex , \&Fo , \&Nd , \&Nm , \&Os , \&Sh , \&Ss , \&St , 1070or 1071.Ic \&Sx 1072macro ends with a trailing delimiter. 1073This is usually bad style and often indicates typos. 1074Most likely, the delimiter can be removed. 1075.It Sy "no blank before trailing delimiter" 1076.Pq mdoc 1077The last argument of a macro that supports trailing delimiter 1078arguments is longer than one byte and ends with a trailing delimiter. 1079Consider inserting a blank such that the delimiter becomes a separate 1080argument, thus moving it out of the scope of the macro. 1081.It Sy "fill mode already enabled, skipping" 1082.Pq man 1083A 1084.Ic \&fi 1085request occurs even though the document is still in fill mode, 1086or already switched back to fill mode. 1087It has no effect. 1088.It Sy "fill mode already disabled, skipping" 1089.Pq man 1090An 1091.Ic \&nf 1092request occurs even though the document already switched to no-fill mode 1093and did not switch back to fill mode yet. 1094It has no effect. 1095.It Sy "input text line longer than 80 bytes" 1096Consider breaking the input text line 1097at one of the blank characters before column 80. 1098.It Sy "verbatim \(dq--\(dq, maybe consider using \e(em" 1099.Pq mdoc 1100Even though the ASCII output device renders an em-dash as 1101.Qq \-\- , 1102that is not a good way to write it in an input file 1103because it renders poorly on all other output devices. 1104.It Sy "function name without markup" 1105.Pq mdoc 1106A word followed by an empty pair of parentheses occurs on a text line. 1107Consider using an 1108.Ic \&Fn 1109or 1110.Ic \&Xr 1111macro. 1112.It Sy "whitespace at end of input line" 1113.Pq mdoc , man , roff 1114Whitespace at the end of input lines is almost never semantically 1115significant \(em but in the odd case where it might be, it is 1116extremely confusing when reviewing and maintaining documents. 1117.It Sy "bad comment style" 1118.Pq roff 1119Comment lines start with a dot, a backslash, and a double-quote character. 1120The 1121.Nm 1122utility treats the line as a comment line even without the backslash, 1123but leaving out the backslash might not be portable. 1124.El 1125.Ss Warnings related to the document prologue 1126.Bl -ohang 1127.It Sy "missing manual title, using UNTITLED" 1128.Pq mdoc 1129A 1130.Ic \&Dt 1131macro has no arguments, or there is no 1132.Ic \&Dt 1133macro before the first non-prologue macro. 1134.It Sy "missing manual title, using \(dq\(dq" 1135.Pq man 1136There is no 1137.Ic \&TH 1138macro, or it has no arguments. 1139.It Sy "missing manual section, using \(dq\(dq" 1140.Pq mdoc , man 1141A 1142.Ic \&Dt 1143or 1144.Ic \&TH 1145macro lacks the mandatory section argument. 1146.It Sy "unknown manual section" 1147.Pq mdoc 1148The section number in a 1149.Ic \&Dt 1150line is invalid, but still used. 1151.It Sy "filename/section mismatch" 1152.Pq mdoc , man 1153The name of the input file being processed is known and its file 1154name extension starts with a non-zero digit, but the 1155.Ic \&Dt 1156or 1157.Ic \&TH 1158macro contains a 1159.Ar section 1160argument that starts with a different non-zero digit. 1161The 1162.Ar section 1163argument is used as provided anyway. 1164Consider checking whether the file name or the argument need a correction. 1165.It Sy "missing date, using \(dq\(dq" 1166.Pq mdoc, man 1167The document was parsed as 1168.Xr mdoc 7 1169and it has no 1170.Ic \&Dd 1171macro, or the 1172.Ic \&Dd 1173macro has no arguments or only empty arguments; 1174or the document was parsed as 1175.Xr man 7 1176and it has no 1177.Ic \&TH 1178macro, or the 1179.Ic \&TH 1180macro has less than three arguments or its third argument is empty. 1181.It Sy "cannot parse date, using it verbatim" 1182.Pq mdoc , man 1183The date given in a 1184.Ic \&Dd 1185or 1186.Ic \&TH 1187macro does not follow the conventional format. 1188.It Sy "date in the future, using it anyway" 1189.Pq mdoc , man 1190The date given in a 1191.Ic \&Dd 1192or 1193.Ic \&TH 1194macro is more than a day ahead of the current system 1195.Xr time 3 . 1196.It Sy "missing Os macro, using \(dq\(dq" 1197.Pq mdoc 1198The default or current system is not shown in this case. 1199.It Sy "late prologue macro" 1200.Pq mdoc 1201A 1202.Ic \&Dd 1203or 1204.Ic \&Os 1205macro occurs after some non-prologue macro, but still takes effect. 1206.It Sy "prologue macros out of order" 1207.Pq mdoc 1208The prologue macros are not given in the conventional order 1209.Ic \&Dd , 1210.Ic \&Dt , 1211.Ic \&Os . 1212All three macros are used even when given in another order. 1213.El 1214.Ss Warnings regarding document structure 1215.Bl -ohang 1216.It Sy ".so is fragile, better use ln(1)" 1217.Pq roff 1218Including files only works when the parser program runs with the correct 1219current working directory. 1220.It Sy "no document body" 1221.Pq mdoc , man 1222The document body contains neither text nor macros. 1223An empty document is shown, consisting only of a header and a footer line. 1224.It Sy "content before first section header" 1225.Pq mdoc , man 1226Some macros or text precede the first 1227.Ic \&Sh 1228or 1229.Ic \&SH 1230section header. 1231The offending macros and text are parsed and added to the top level 1232of the syntax tree, outside any section block. 1233.It Sy "first section is not NAME" 1234.Pq mdoc 1235The argument of the first 1236.Ic \&Sh 1237macro is not 1238.Sq NAME . 1239This may confuse 1240.Xr makewhatis 8 1241and 1242.Xr apropos 1 . 1243.It Sy "NAME section without Nm before Nd" 1244.Pq mdoc 1245The NAME section does not contain any 1246.Ic \&Nm 1247child macro before the first 1248.Ic \&Nd 1249macro. 1250.It Sy "NAME section without description" 1251.Pq mdoc 1252The NAME section lacks the mandatory 1253.Ic \&Nd 1254child macro. 1255.It Sy "description not at the end of NAME" 1256.Pq mdoc 1257The NAME section does contain an 1258.Ic \&Nd 1259child macro, but other content follows it. 1260.It Sy "bad NAME section content" 1261.Pq mdoc 1262The NAME section contains plain text or macros other than 1263.Ic \&Nm 1264and 1265.Ic \&Nd . 1266.It Sy "missing comma before name" 1267.Pq mdoc 1268The NAME section contains an 1269.Ic \&Nm 1270macro that is neither the first one nor preceded by a comma. 1271.It Sy "missing description line, using \(dq\(dq" 1272.Pq mdoc 1273The 1274.Ic \&Nd 1275macro lacks the required argument. 1276The title line of the manual will end after the dash. 1277.It Sy "description line outside NAME section" 1278.Pq mdoc 1279An 1280.Ic \&Nd 1281macro appears outside the NAME section. 1282The arguments are printed anyway and the following text is used for 1283.Xr apropos 1 , 1284but none of that behaviour is portable. 1285.It Sy "sections out of conventional order" 1286.Pq mdoc 1287A standard section occurs after another section it usually precedes. 1288All section titles are used as given, 1289and the order of sections is not changed. 1290.It Sy "duplicate section title" 1291.Pq mdoc 1292The same standard section title occurs more than once. 1293.It Sy "unexpected section" 1294.Pq mdoc 1295A standard section header occurs in a section of the manual 1296where it normally isn't useful. 1297.It Sy "cross reference to self" 1298.Pq mdoc , man 1299An 1300.Ic \&Xr 1301or 1302.Ic \&MR 1303macro refers to a name and section matching the section of the present 1304manual page and a name mentioned in an 1305.Ic \&Nm 1306macro in the NAME or SYNOPSIS section, or in an 1307.Ic \&Fn 1308or 1309.Ic \&Fo 1310macro in the SYNOPSIS. 1311Consider using 1312.Ic \&Nm 1313or 1314.Ic \&Fn 1315instead of 1316.Ic \&Xr . 1317.It Sy "unusual Xr order" 1318.Pq mdoc 1319In the SEE ALSO section, an 1320.Ic \&Xr 1321macro with a lower section number follows one with a higher number, 1322or two 1323.Ic \&Xr 1324macros referring to the same section are out of alphabetical order. 1325.It Sy "unusual Xr punctuation" 1326.Pq mdoc 1327In the SEE ALSO section, punctuation between two 1328.Ic \&Xr 1329macros differs from a single comma, or there is trailing punctuation 1330after the last 1331.Ic \&Xr 1332macro. 1333.It Sy "AUTHORS section without An macro" 1334.Pq mdoc 1335An AUTHORS sections contains no 1336.Ic \&An 1337macros, or only empty ones. 1338Probably, there are author names lacking markup. 1339.El 1340.Ss "Warnings related to macros and nesting" 1341.Bl -ohang 1342.It Sy "obsolete macro" 1343.Pq mdoc 1344See the 1345.Xr mdoc 7 1346manual for replacements. 1347.It Sy "macro neither callable nor escaped" 1348.Pq mdoc 1349The name of a macro that is not callable appears on a macro line. 1350It is printed verbatim. 1351If the intention is to call it, move it to its own input line; 1352otherwise, escape it by prepending 1353.Sq \e& . 1354.It Sy "skipping paragraph macro" 1355In 1356.Xr mdoc 7 1357documents, this happens 1358.Bl -dash -compact 1359.It 1360at the beginning and end of sections and subsections 1361.It 1362right before non-compact lists and displays 1363.It 1364at the end of items in non-column, non-compact lists 1365.It 1366and for multiple consecutive paragraph macros. 1367.El 1368In 1369.Xr man 7 1370documents, it happens 1371.Bl -dash -compact 1372.It 1373for empty 1374.Ic \&P , 1375.Ic \&PP , 1376and 1377.Ic \&LP 1378macros 1379.It 1380for 1381.Ic \&IP 1382macros having neither head nor body arguments 1383.It 1384for 1385.Ic \&br 1386or 1387.Ic \&sp 1388right after 1389.Ic \&SH 1390or 1391.Ic \&SS 1392.El 1393.It Sy "moving paragraph macro out of list" 1394.Pq mdoc 1395A list item in a 1396.Ic \&Bl 1397list contains a trailing paragraph macro. 1398The paragraph macro is moved after the end of the list. 1399.It Sy "skipping no-space macro" 1400.Pq mdoc 1401An input line begins with an 1402.Ic \&Ns 1403macro, or the next argument after an 1404.Ic \&Ns 1405macro is an isolated closing delimiter. 1406The macro is ignored. 1407.It Sy "blocks badly nested" 1408.Pq mdoc 1409If two blocks intersect, one should completely contain the other. 1410Otherwise, rendered output is likely to look strange in any output 1411format, and rendering in SGML-based output formats is likely to be 1412outright wrong because such languages do not support badly nested 1413blocks at all. 1414Typical examples of badly nested blocks are 1415.Qq Ic \&Ao \&Bo \&Ac \&Bc 1416and 1417.Qq Ic \&Ao \&Bq \&Ac . 1418In these examples, 1419.Ic \&Ac 1420breaks 1421.Ic \&Bo 1422and 1423.Ic \&Bq , 1424respectively. 1425.It Sy "nested displays are not portable" 1426.Pq mdoc 1427A 1428.Ic \&Bd , 1429.Ic \&D1 , 1430or 1431.Ic \&Dl 1432display occurs nested inside another 1433.Ic \&Bd 1434display. 1435This works with 1436.Nm , 1437but fails with most other implementations. 1438.It Sy "moving content out of list" 1439.Pq mdoc 1440A 1441.Ic \&Bl 1442list block contains text or macros before the first 1443.Ic \&It 1444macro. 1445The offending children are moved before the beginning of the list. 1446.It Sy "first macro on line" 1447Inside a 1448.Ic \&Bl Fl column 1449list, a 1450.Ic \&Ta 1451macro occurs as the first macro on a line, which is not portable. 1452.It Sy "line scope broken" 1453.Pq man 1454While parsing the next-line scope of the previous macro, 1455another macro is found that prematurely terminates the previous one. 1456The previous, interrupted macro is deleted from the parse tree. 1457.El 1458.Ss "Warnings related to missing arguments" 1459.Bl -ohang 1460.It Sy "skipping empty request" 1461.Pq roff , eqn 1462The macro name is missing from a macro definition request, 1463or an 1464.Xr eqn 7 1465control statement or operation keyword lacks its required argument. 1466.It Sy "conditional request controls empty scope" 1467.Pq roff 1468A conditional request is only useful if any of the following 1469follows it on the same logical input line: 1470.Bl -dash -compact 1471.It 1472The 1473.Sq \e{ 1474keyword to open a multi-line scope. 1475.It 1476A request or macro or some text, resulting in a single-line scope. 1477.It 1478The immediate end of the logical line without any intervening whitespace, 1479resulting in next-line scope. 1480.El 1481Here, a conditional request is followed by trailing whitespace only, 1482and there is no other content on its logical input line. 1483Note that it doesn't matter whether the logical input line is split 1484across multiple physical input lines using 1485.Sq \e 1486line continuation characters. 1487This is one of the rare cases 1488where trailing whitespace is syntactically significant. 1489The conditional request controls a scope containing whitespace only, 1490so it is unlikely to have a significant effect, 1491except that it may control a following 1492.Ic \&el 1493clause. 1494.It Sy "skipping empty macro" 1495.Pq mdoc 1496The indicated macro has no arguments and hence no effect. 1497.It Sy "empty block" 1498.Pq mdoc , man 1499A 1500.Ic \&Bd , 1501.Ic \&Bk , 1502.Ic \&Bl , 1503.Ic \&D1 , 1504.Ic \&Dl , 1505or 1506.Ic \&RS 1507block contains nothing in its body and will produce no output. 1508.It Sy "empty argument, using 0n" 1509.Pq mdoc 1510The required width is missing after 1511.Ic \&Bd 1512or 1513.Ic \&Bl 1514.Fl offset 1515or 1516.Fl width . 1517.It Sy "missing display type, using -ragged" 1518.Pq mdoc 1519The 1520.Ic \&Bd 1521macro is invoked without the required display type. 1522.It Sy "list type is not the first argument" 1523.Pq mdoc 1524In a 1525.Ic \&Bl 1526macro, at least one other argument precedes the type argument. 1527The 1528.Nm 1529utility copes with any argument order, but some other 1530.Xr mdoc 7 1531implementations do not. 1532.It Sy "missing -width in -tag list, using 8n" 1533.Pq mdoc 1534Every 1535.Ic \&Bl 1536macro having the 1537.Fl tag 1538argument requires 1539.Fl width , 1540too. 1541.It Sy "missing utility name, using \(dq\(dq" 1542.Pq mdoc 1543The 1544.Ic \&Ex Fl std 1545macro is called without an argument before 1546.Ic \&Nm 1547has first been called with an argument. 1548.It Sy "missing function name, using \(dq\(dq" 1549.Pq mdoc 1550The 1551.Ic \&Fo 1552macro is called without an argument. 1553No function name is printed. 1554.It Sy "empty head in list item" 1555.Pq mdoc 1556In a 1557.Ic \&Bl 1558.Fl diag , 1559.Fl hang , 1560.Fl inset , 1561.Fl ohang , 1562or 1563.Fl tag 1564list, an 1565.Ic \&It 1566macro lacks the required argument. 1567The item head is left empty. 1568.It Sy "empty list item" 1569.Pq mdoc 1570In a 1571.Ic \&Bl 1572.Fl bullet , 1573.Fl dash , 1574.Fl enum , 1575or 1576.Fl hyphen 1577list, an 1578.Ic \&It 1579block is empty. 1580An empty list item is shown. 1581.It Sy "missing argument, using next line" 1582.Pq mdoc 1583An 1584.Ic \&It 1585macro in a 1586.Ic \&Bd Fl column 1587list has no arguments. 1588While 1589.Nm 1590uses the text or macros of the following line, if any, for the cell, 1591other formatters may misformat the list. 1592.It Sy "missing font type, using \efR" 1593.Pq mdoc 1594A 1595.Ic \&Bf 1596macro has no argument. 1597It switches to the default font. 1598.It Sy "unknown font type, using \efR" 1599.Pq mdoc 1600The 1601.Ic \&Bf 1602argument is invalid. 1603The default font is used instead. 1604.It Sy "nothing follows prefix" 1605.Pq mdoc 1606A 1607.Ic \&Pf 1608macro has no argument, or only one argument and no macro follows 1609on the same input line. 1610This defeats its purpose; in particular, spacing is not suppressed 1611before the text or macros following on the next input line. 1612.It Sy "empty reference block" 1613.Pq mdoc 1614An 1615.Ic \&Rs 1616macro is immediately followed by an 1617.Ic \&Re 1618macro on the next input line. 1619Such an empty block does not produce any output. 1620.It Sy "missing section argument" 1621.Pq mdoc , man 1622An 1623.Ic \&Xr 1624or 1625.Ic \&MR 1626macro lacks its second, section number argument. 1627The first argument, i.e. the name, is printed, but without a section number. 1628In the case of 1629.Ic \&Xr , 1630the parentheses are also omitted. 1631.It Sy "missing -std argument, adding it" 1632.Pq mdoc 1633An 1634.Ic \&Ex 1635or 1636.Ic \&Rv 1637macro lacks the required 1638.Fl std 1639argument. 1640The 1641.Nm 1642utility assumes 1643.Fl std 1644even when it is not specified, but other implementations may not. 1645.It Sy "missing option string, using \(dq\(dq" 1646.Pq man 1647The 1648.Ic \&OP 1649macro is invoked without any argument. 1650An empty pair of square brackets is shown. 1651.It Sy "missing resource identifier, using \(dq\(dq" 1652.Pq man 1653The 1654.Ic \&MT 1655or 1656.Ic \&UR 1657macro is invoked without any argument. 1658An empty pair of angle brackets is shown. 1659.It Sy "missing eqn box, using \(dq\(dq" 1660.Pq eqn 1661A diacritic mark or a binary operator is found, 1662but there is nothing to the left of it. 1663An empty box is inserted. 1664.El 1665.Ss "Warnings related to bad macro arguments" 1666.Bl -ohang 1667.It Sy "duplicate argument" 1668.Pq mdoc 1669A 1670.Ic \&Bd 1671or 1672.Ic \&Bl 1673macro has more than one 1674.Fl compact , 1675more than one 1676.Fl offset , 1677or more than one 1678.Fl width 1679argument. 1680All but the last instances of these arguments are ignored. 1681.It Sy "skipping duplicate argument" 1682.Pq mdoc 1683An 1684.Ic \&An 1685macro has more than one 1686.Fl split 1687or 1688.Fl nosplit 1689argument. 1690All but the first of these arguments are ignored. 1691.It Sy "skipping duplicate display type" 1692.Pq mdoc 1693A 1694.Ic \&Bd 1695macro has more than one type argument; the first one is used. 1696.It Sy "skipping duplicate list type" 1697.Pq mdoc 1698A 1699.Ic \&Bl 1700macro has more than one type argument; the first one is used. 1701.It Sy "skipping -width argument" 1702.Pq mdoc 1703A 1704.Ic \&Bl 1705.Fl column , 1706.Fl diag , 1707.Fl ohang , 1708.Fl inset , 1709or 1710.Fl item 1711list has a 1712.Fl width 1713argument. 1714That has no effect. 1715.It Sy "wrong number of cells" 1716In a line of a 1717.Ic \&Bl Fl column 1718list, the number of tabs or 1719.Ic \&Ta 1720macros is less than the number expected from the list header line 1721or exceeds the expected number by more than one. 1722Missing cells remain empty, and all cells exceeding the number of 1723columns are joined into one single cell. 1724.It Sy "unknown AT&T UNIX version" 1725.Pq mdoc 1726An 1727.Ic \&At 1728macro has an invalid argument. 1729It is used verbatim, with 1730.Qq "AT&T UNIX " 1731prefixed to it. 1732.It Sy "comma in function argument" 1733.Pq mdoc 1734An argument of an 1735.Ic \&Fa 1736or 1737.Ic \&Fn 1738macro contains a comma; it should probably be split into two arguments. 1739.It Sy "parenthesis in function name" 1740.Pq mdoc 1741The first argument of an 1742.Ic \&Fc 1743or 1744.Ic \&Fn 1745macro contains an opening or closing parenthesis; that's probably wrong, 1746parentheses are added automatically. 1747.It Sy "unknown library name" 1748.Pq mdoc, not on Ox 1749An 1750.Ic \&Lb 1751macro has an unknown name argument and will be rendered as 1752.Qq library Dq Ar name . 1753.It Sy "invalid content in Rs block" 1754.Pq mdoc 1755An 1756.Ic \&Rs 1757block contains plain text or non-% macros. 1758The bogus content is left in the syntax tree. 1759Formatting may be poor. 1760.It Sy "invalid Boolean argument" 1761.Pq mdoc 1762An 1763.Ic \&Sm 1764macro has an argument other than 1765.Cm on 1766or 1767.Cm off . 1768The invalid argument is moved out of the macro, which leaves the macro 1769empty, causing it to toggle the spacing mode. 1770.It Sy "argument contains two font escapes" 1771.Pq roff 1772The second argument of a 1773.Ic char 1774request contains more than one font escape sequence. 1775A wrong font may remain active after using the character. 1776.It Sy "unknown font, skipping request" 1777.Pq man , tbl 1778A 1779.Xr roff 7 1780.Ic \&ft 1781request or a 1782.Xr tbl 7 1783.Ic \&f 1784layout modifier has an unknown 1785.Ar font 1786argument. 1787.It Sy "ignoring distance argument" 1788.Pq roff 1789In addition to the margin character, an 1790.Ic \&mc 1791request has a second argument supposed to represent a distance, but the 1792.Nm 1793implementation of 1794.Ic \&mc 1795always ignores the second argument. 1796.It Sy "odd number of characters in request" 1797.Pq roff 1798A 1799.Ic \&tr 1800request contains an odd number of characters. 1801The last character is mapped to the blank character. 1802.El 1803.Ss "Warnings related to plain text" 1804.Bl -ohang 1805.It Sy "blank line in fill mode, using .sp" 1806.Pq mdoc 1807The meaning of blank input lines is only well-defined in non-fill mode: 1808In fill mode, line breaks of text input lines are not supposed to be 1809significant. 1810However, for compatibility with groff, blank lines in fill mode 1811are formatted like 1812.Ic \&sp 1813requests. 1814To request a paragraph break, use 1815.Ic \&Pp 1816instead of a blank line. 1817.It Sy "tab in filled text" 1818.Pq mdoc , man 1819The meaning of tab characters is only well-defined in non-fill mode: 1820In fill mode, whitespace is not supposed to be significant 1821on text input lines. 1822As an implementation dependent choice, tab characters on text lines 1823are passed through to the formatters in any case. 1824Given that the text before the tab character will be filled, 1825it is hard to predict which tab stop position the tab will advance to. 1826.It Sy "new sentence, new line" 1827.Pq mdoc 1828A new sentence starts in the middle of a text line. 1829Start it on a new input line to help formatters produce correct spacing. 1830.It Sy "invalid escape sequence argument" 1831.Pq roff 1832The argument of an escape sequence is of an invalid form. 1833Invalid escape sequences are ignored. 1834.It Sy "undefined escape, printing literally" 1835.Pq roff 1836In an escape sequence, the first character 1837right after the leading backslash is invalid. 1838That character is printed literally, 1839which is equivalent to ignoring the backslash. 1840.It Sy "undefined string, using \(dq\(dq" 1841.Pq roff 1842If a string is used without being defined before, 1843its value is implicitly set to the empty string. 1844However, defining strings explicitly before use 1845keeps the code more readable. 1846.El 1847.Ss "Warnings related to tables" 1848.Bl -ohang 1849.It Sy "tbl line starts with span" 1850.Pq tbl 1851The first cell in a table layout line is a horizontal span 1852.Pq Sq Cm s . 1853Data provided for this cell is ignored, and nothing is printed in the cell. 1854.It Sy "tbl column starts with span" 1855.Pq tbl 1856The first line of a table layout specification 1857requests a vertical span 1858.Pq Sq Cm ^ . 1859Data provided for this cell is ignored, and nothing is printed in the cell. 1860.It Sy "skipping vertical bar in tbl layout" 1861.Pq tbl 1862A table layout specification contains more than two consecutive vertical bars. 1863A double bar is printed, all additional bars are discarded. 1864.El 1865.Ss "Errors related to tables" 1866.Bl -ohang 1867.It Sy "non-alphabetic character in tbl options" 1868.Pq tbl 1869The table options line contains a character other than a letter, 1870blank, or comma where the beginning of an option name is expected. 1871The character is ignored. 1872.It Sy "skipping unknown tbl option" 1873.Pq tbl 1874The table options line contains a string of letters that does not 1875match any known option name. 1876The word is ignored. 1877.It Sy "missing tbl option argument" 1878.Pq tbl 1879A table option that requires an argument is not followed by an 1880opening parenthesis, or the opening parenthesis is immediately 1881followed by a closing parenthesis. 1882The option is ignored. 1883.It Sy "wrong tbl option argument size" 1884.Pq tbl 1885A table option argument contains an invalid number of characters. 1886Both the option and the argument are ignored. 1887.It Sy "empty tbl layout" 1888.Pq tbl 1889A table layout specification is completely empty, 1890specifying zero lines and zero columns. 1891As a fallback, a single left-justified column is used. 1892.It Sy "invalid character in tbl layout" 1893.Pq tbl 1894A table layout specification contains a character that can neither 1895be interpreted as a layout key character nor as a layout modifier, 1896or a modifier precedes the first key. 1897The invalid character is discarded. 1898.It Sy "unmatched parenthesis in tbl layout" 1899.Pq tbl 1900A table layout specification contains an opening parenthesis, 1901but no matching closing parenthesis. 1902The rest of the input line, starting from the parenthesis, has no effect. 1903.It Sy "ignoring excessive spacing in tbl layout" 1904.Pq tbl 1905A spacing modifier in a table layout is unreasonably large. 1906The default spacing of 3n is used instead. 1907.It Sy "tbl without any data cells" 1908.Pq tbl 1909A table does not contain any data cells. 1910It will probably produce no output. 1911.It Sy "ignoring data in spanned tbl cell" 1912.Pq tbl 1913A table cell is marked as a horizontal span 1914.Pq Sq Cm s 1915or vertical span 1916.Pq Sq Cm ^ 1917in the table layout, but it contains data. 1918The data is ignored. 1919.It Sy "ignoring extra tbl data cells" 1920.Pq tbl 1921A data line contains more cells than the corresponding layout line. 1922The data in the extra cells is ignored. 1923.It Sy "data block open at end of tbl" 1924.Pq tbl 1925A data block is opened with 1926.Cm T{ , 1927but never closed with a matching 1928.Cm T} . 1929The remaining data lines of the table are all put into one cell, 1930and any remaining cells stay empty. 1931.El 1932.Ss "Errors related to roff, mdoc, and man code" 1933.Bl -ohang 1934.It Sy "duplicate prologue macro" 1935.Pq mdoc 1936One of the prologue macros occurs more than once. 1937The last instance overrides all previous ones. 1938.It Sy "skipping late title macro" 1939.Pq mdoc 1940The 1941.Ic \&Dt 1942macro appears after the first non-prologue macro. 1943Traditional formatters cannot handle this because 1944they write the page header before parsing the document body. 1945Even though this technical restriction does not apply to 1946.Nm , 1947traditional semantics is preserved. 1948The late macro is discarded including its arguments. 1949.It Sy "input stack limit exceeded, infinite loop?" 1950.Pq roff 1951Explicit recursion limits are implemented for the following features, 1952in order to prevent infinite loops: 1953.Bl -dash -compact 1954.It 1955expansion of nested escape sequences 1956including expansion of strings and number registers, 1957.It 1958expansion of nested user-defined macros, 1959.It 1960and 1961.Ic \&so 1962file inclusion. 1963.El 1964When a limit is hit, the output is incorrect, typically losing 1965some content, but the parser can continue. 1966.It Sy "skipping bad character" 1967.Pq mdoc , man , roff 1968The input file contains a byte that is not a printable 1969.Xr ascii 7 1970character. 1971The message mentions the character number. 1972The offending byte is replaced with a question mark 1973.Pq Sq \&? . 1974Consider editing the input file to replace the byte with an ASCII 1975transliteration of the intended character. 1976.It Sy "skipping unknown macro" 1977.Pq mdoc , man , roff 1978The first identifier on a request or macro line is neither recognized as a 1979.Xr roff 7 1980request, nor as a user-defined macro, nor, respectively, as an 1981.Xr mdoc 7 1982or 1983.Xr man 7 1984macro. 1985It may be mistyped or unsupported. 1986The request or macro is discarded including its arguments. 1987.It Sy "skipping request outside macro" 1988.Pq roff 1989A 1990.Ic shift 1991or 1992.Ic return 1993request occurs outside any macro definition and has no effect. 1994.It Sy "skipping insecure request" 1995.Pq roff 1996An input file attempted to run a shell command 1997or to read or write an external file. 1998Such attempts are denied for security reasons. 1999.It Sy "skipping item outside list" 2000.Pq mdoc , eqn 2001An 2002.Ic \&It 2003macro occurs outside any 2004.Ic \&Bl 2005list, or an 2006.Xr eqn 7 2007.Ic above 2008delimiter occurs outside any pile. 2009It is discarded including its arguments. 2010.It Sy "skipping column outside column list" 2011.Pq mdoc 2012A 2013.Ic \&Ta 2014macro occurs outside any 2015.Ic \&Bl Fl column 2016block. 2017It is discarded including its arguments. 2018.It Sy "skipping end of block that is not open" 2019.Pq mdoc , man , eqn , tbl , roff 2020Various syntax elements can only be used to explicitly close blocks 2021that have previously been opened. 2022An 2023.Xr mdoc 7 2024block closing macro, a 2025.Xr man 7 2026.Ic \&ME , \&RE 2027or 2028.Ic \&UE 2029macro, an 2030.Xr eqn 7 2031right delimiter or closing brace, or the end of an equation, table, or 2032.Xr roff 7 2033conditional request is encountered but no matching block is open. 2034The offending request or macro is discarded. 2035.It Sy "fewer RS blocks open, skipping" 2036.Pq man 2037The 2038.Ic \&RE 2039macro is invoked with an argument, but less than the specified number of 2040.Ic \&RS 2041blocks is open. 2042The 2043.Ic \&RE 2044macro is discarded. 2045.It Sy "inserting missing end of block" 2046.Pq mdoc , tbl 2047Various 2048.Xr mdoc 7 2049macros as well as tables require explicit closing by dedicated macros. 2050A block that doesn't support bad nesting 2051ends before all of its children are properly closed. 2052The open child nodes are closed implicitly. 2053.It Sy "appending missing end of block" 2054.Pq mdoc , man , eqn , tbl , roff 2055At the end of the document, an explicit 2056.Xr mdoc 7 2057block, a 2058.Xr man 7 2059next-line scope or 2060.Ic \&MT , \&RS 2061or 2062.Ic \&UR 2063block, an equation, table, or 2064.Xr roff 7 2065conditional or ignore block is still open. 2066The open block is closed implicitly. 2067.It Sy "escaped character not allowed in a name" 2068.Pq roff 2069Macro, string and register identifiers consist of printable, 2070non-whitespace ASCII characters. 2071Escape sequences and characters and strings expressed in terms of them 2072cannot form part of a name. 2073The first argument of an 2074.Ic \&am , 2075.Ic \&as , 2076.Ic \&de , 2077.Ic \&ds , 2078.Ic \&nr , 2079or 2080.Ic \&rr 2081request, or any argument of an 2082.Ic \&rm 2083request, or the name of a request or user defined macro being called, 2084is terminated by an escape sequence. 2085In the cases of 2086.Ic \&as , 2087.Ic \&ds , 2088and 2089.Ic \&nr , 2090the request has no effect at all. 2091In the cases of 2092.Ic \&am , 2093.Ic \&de , 2094.Ic \&rr , 2095and 2096.Ic \&rm , 2097what was parsed up to this point is used as the arguments to the request, 2098and the rest of the input line is discarded including the escape sequence. 2099When parsing for a request or a user-defined macro name to be called, 2100only the escape sequence is discarded. 2101The characters preceding it are used as the request or macro name, 2102the characters following it are used as the arguments to the request or macro. 2103.It Sy "using macro argument outside macro" 2104.Pq roff 2105The escape sequence \e$ occurs outside any macro definition 2106and expands to the empty string. 2107.It Sy "argument number is not numeric" 2108.Pq roff 2109The argument of the escape sequence \e$ is not a digit; 2110the escape sequence expands to the empty string. 2111.It Sy "negative argument, using 0" 2112.Pq roff 2113A 2114.Ic \&shift 2115request has a negative argument 2116or an argument that is negative due to integer overflow. 2117Macro argument numbering remains unchanged. 2118.It Sy "NOT IMPLEMENTED: Bd -file" 2119.Pq mdoc 2120For security reasons, the 2121.Ic \&Bd 2122macro does not support the 2123.Fl file 2124argument. 2125By requesting the inclusion of a sensitive file, a malicious document 2126might otherwise trick a privileged user into inadvertently displaying 2127the file on the screen, revealing the file content to bystanders. 2128The argument is ignored including the file name following it. 2129.It Sy "skipping display without arguments" 2130.Pq mdoc 2131A 2132.Ic \&Bd 2133block macro does not have any arguments. 2134The block is discarded, and the block content is displayed in 2135whatever mode was active before the block. 2136.It Sy "missing list type, using -item" 2137.Pq mdoc 2138A 2139.Ic \&Bl 2140macro fails to specify the list type. 2141.It Sy "argument is not numeric, using 1" 2142.Pq roff 2143The argument of a 2144.Ic \&ce 2145request is not a number. 2146.It Sy "argument is not a character" 2147.Pq roff 2148The first argument of a 2149.Ic char 2150request is neither a single ASCII character 2151nor a single character escape sequence. 2152The request is ignored including all its arguments. 2153.It Sy "skipping unusable escape sequence" 2154.Pq roff 2155The first argument of an 2156.Ic mc 2157request is neither a single ASCII character 2158nor a single character escape sequence. 2159All arguments are ignored and printing of a margin character is disabled. 2160.It Sy "missing manual name, using \(dq\(dq" 2161.Pq mdoc , man 2162The first call to 2163.Ic \&Nm , 2164or any call in the NAME section, lacks the required argument, or 2165.Ic \&MR 2166is called without any argument. 2167.It Sy "uname(3) system call failed, using UNKNOWN" 2168.Pq mdoc 2169The 2170.Ic \&Os 2171macro is called without arguments, and the 2172.Xr uname 3 2173system call failed. 2174As a workaround, 2175.Nm 2176can be compiled with 2177.Sm off 2178.Fl D Cm OSNAME=\(dq\e\(dq Ar string Cm \e\(dq\(dq . 2179.Sm on 2180.It Sy "unknown standard specifier" 2181.Pq mdoc 2182An 2183.Ic \&St 2184macro has an unknown argument and is discarded. 2185.It Sy "skipping request without numeric argument" 2186.Pq roff , eqn 2187An 2188.Ic \&it 2189request or an 2190.Xr eqn 7 2191.Ic \&size 2192or 2193.Ic \&gsize 2194statement has a non-numeric or negative argument or no argument at all. 2195The invalid request or statement is ignored. 2196.It Sy "excessive shift" 2197.Pq roff 2198The argument of a 2199.Ic shift 2200request is larger than the number of arguments of the macro that is 2201currently being executed. 2202All macro arguments are deleted and \en(.$ is set to zero. 2203.It Sy "NOT IMPLEMENTED: .so with absolute path or \(dq..\(dq" 2204.Pq roff 2205For security reasons, 2206.Nm 2207allows 2208.Ic \&so 2209file inclusion requests only with relative paths 2210and only without ascending to any parent directory. 2211By requesting the inclusion of a sensitive file, a malicious document 2212might otherwise trick a privileged user into inadvertently displaying 2213the file on the screen, revealing the file content to bystanders. 2214.Nm 2215only shows the path as it appears behind 2216.Ic \&so . 2217.It Sy ".so request failed" 2218.Pq roff 2219Servicing a 2220.Ic \&so 2221request requires reading an external file, but the file could not be 2222opened. 2223.Nm 2224only shows the path as it appears behind 2225.Ic \&so . 2226.It Sy "skipping all arguments" 2227.Pq mdoc , man , eqn , roff 2228An 2229.Xr mdoc 7 2230.Ic \&Bt , 2231.Ic \&Ed , 2232.Ic \&Ef , 2233.Ic \&Ek , 2234.Ic \&El , 2235.Ic \&Lp , 2236.Ic \&Pp , 2237.Ic \&Re , 2238.Ic \&Rs , 2239or 2240.Ic \&Ud 2241macro, an 2242.Ic \&It 2243macro in a list that don't support item heads, a 2244.Xr man 7 2245.Ic \&LP , 2246.Ic \&P , 2247or 2248.Ic \&PP 2249macro, an 2250.Xr eqn 7 2251.Ic \&EQ 2252or 2253.Ic \&EN 2254macro, or a 2255.Xr roff 7 2256.Ic \&br , 2257.Ic \&fi , 2258or 2259.Ic \&nf 2260request or 2261.Sq \&.. 2262block closing request is invoked with at least one argument. 2263All arguments are ignored. 2264.It Sy "skipping excess arguments" 2265.Pq mdoc , man , roff 2266A macro or request is invoked with too many arguments: 2267.Bl -dash -offset 2n -width 2n -compact 2268.It 2269.Ic \&Fo , 2270.Ic \&MT , 2271.Ic \&PD , 2272.Ic \&RS , 2273.Ic \&UR , 2274.Ic \&ft , 2275or 2276.Ic \&sp 2277with more than one argument 2278.It 2279.Ic \&An 2280with another argument after 2281.Fl split 2282or 2283.Fl nosplit 2284.It 2285.Ic \&RE 2286with more than one argument or with a non-integer argument 2287.It 2288.Ic \&OP 2289or a request of the 2290.Ic \&de 2291family with more than two arguments 2292.It 2293.Ic \&Dt 2294or 2295.Ic \&MR 2296with more than three arguments 2297.It 2298.Ic \&TH 2299with more than five arguments 2300.It 2301.Ic \&Bd , 2302.Ic \&Bk , 2303or 2304.Ic \&Bl 2305with invalid arguments 2306.El 2307The excess arguments are ignored. 2308.El 2309.Ss "Errors related to escape sequences" 2310.Bl -ohang 2311.It Sy "incomplete escape sequence" 2312.Pq roff 2313The end of the input line is encountered 2314while parsing the argument of an escape sequence. 2315In this case, 2316.Ic \e* 2317and 2318.Ic \en 2319expand to an empty string, 2320.Ic \eB 2321to the digit 2322.Sq 0 , 2323and 2324.Ic \ew 2325to the length of the incomplete argument. 2326All other incomplete escape sequences are ignored. 2327.It Sy "invalid special character" 2328.Pq roff 2329A special character escape sequence is invalid, 2330for example a Unicode sequence pointing to a surrogate 2331or beyond the Unicode range, a \e[char...] escape sequence 2332representing a control character or pointing beyond the 2333.Vt unsigned char 2334range, or an invalid variable-length form 2335of a single-byte character escape sequence, for example writing 2336.Qq \e[e] 2337or 2338.Qq \e[~] 2339instead of 2340.Qq \ee 2341or 2342.Qq \e~ , 2343respectively. 2344The escape sequence is ignored. 2345.It Sy "unknown special character" 2346.Pq roff 2347The name given in a special character escape sequence is not known to 2348.Nm . 2349The escape sequence is ignored. 2350.It Sy "invalid escape argument delimiter" 2351.Pq roff 2352An escape sequence that expects a numerical argument 2353attempts to employ one of the characters 2354.Qq " %&()*+-./0123456789:<=>" 2355as an argument delimiter. 2356The escape sequence is ignored including the invalid opening delimiter 2357and the rest of the argument may appear as output text. 2358While various characters can be used as argument delimiters, 2359using the apostrophe-quote character 2360.Pq Sq \(aq 2361is recommended for readability and robustness. 2362.El 2363.Ss Unsupported features 2364.Bl -ohang 2365.It Sy "input too large" 2366.Pq mdoc , man 2367Currently, 2368.Nm 2369cannot handle input files larger than its arbitrary size limit 2370of 2^31 bytes (2 Gigabytes). 2371Since useful manuals are always small, this is not a problem in practice. 2372Parsing is aborted as soon as the condition is detected. 2373.It Sy "unsupported control character" 2374.Pq roff 2375An ASCII control character supported by other 2376.Xr roff 7 2377implementations but not by 2378.Nm 2379was found in an input file. 2380It is replaced by a question mark. 2381.It Sy "unsupported escape sequence" 2382.Pq roff 2383An input file contains an escape sequence supported by GNU troff 2384or Heirloom troff but not by 2385.Nm , 2386and it is likely that this will cause information loss 2387or considerable misformatting. 2388.It Sy "unsupported roff request" 2389.Pq roff 2390An input file contains a 2391.Xr roff 7 2392request supported by GNU troff or Heirloom troff but not by 2393.Nm , 2394and it is likely that this will cause information loss 2395or considerable misformatting. 2396.It Sy "eqn delim option in tbl" 2397.Pq eqn , tbl 2398The options line of a table defines equation delimiters. 2399Any equation source code contained in the table will be printed unformatted. 2400.It Sy "unsupported table layout modifier" 2401.Pq tbl 2402A table layout specification contains an 2403.Sq Cm m 2404modifier. 2405The modifier is discarded. 2406.It Sy "ignoring macro in table" 2407.Pq tbl , mdoc , man 2408A table contains an invocation of an 2409.Xr mdoc 7 2410or 2411.Xr man 7 2412macro or of an undefined macro. 2413The macro is ignored, and its arguments are handled 2414as if they were a text line. 2415.It Sy "skipping tbl in -Tman mode" 2416.Pq mdoc , tbl 2417An input file contains the 2418.Ic \&TS 2419macro. 2420This message is only generated in 2421.Fl T Cm man 2422output mode, where 2423.Xr tbl 7 2424input is not supported. 2425.It Sy "skipping eqn in -Tman mode" 2426.Pq mdoc , eqn 2427An input file contains the 2428.Ic \&EQ 2429macro. 2430This message is only generated in 2431.Fl T Cm man 2432output mode, where 2433.Xr eqn 7 2434input is not supported. 2435.El 2436.Ss Bad command line arguments 2437.Bl -ohang 2438.It Sy "bad command line argument" 2439The argument following one of the 2440.Fl IKMmOTW 2441command line options is invalid, or a 2442.Ar file 2443given as a command line argument cannot be opened. 2444.It Sy "duplicate command line argument" 2445The 2446.Fl I 2447command line option was specified twice. 2448.It Sy "option has a superfluous value" 2449An argument to the 2450.Fl O 2451option has a value but does not accept one. 2452.It Sy "missing option value" 2453An argument to the 2454.Fl O 2455option has no argument but requires one. 2456.It Sy "bad option value" 2457An argument to the 2458.Fl O 2459.Cm indent 2460or 2461.Cm width 2462option has an invalid value. 2463.It Sy "duplicate option value" 2464The same 2465.Fl O 2466option is specified more than once. 2467.It Sy "no such tag" 2468The 2469.Fl O Cm tag 2470option was specified but the tag was not found in any of the displayed 2471manual pages. 2472.It Sy "\-Tmarkdown unsupported for man(7) input" 2473.Pq man 2474The 2475.Fl T Cm markdown 2476option was specified but an input file uses the 2477.Xr man 7 2478language. 2479No output is produced for that input file. 2480.El 2481.Sh SEE ALSO 2482.Xr apropos 1 , 2483.Xr man 1 , 2484.Xr eqn 7 , 2485.Xr man 7 , 2486.Xr mandoc_char 7 , 2487.Xr mdoc 7 , 2488.Xr roff 7 , 2489.Xr tbl 7 2490.Sh HISTORY 2491The 2492.Nm 2493utility first appeared in 2494.Ox 4.8 . 2495The option 2496.Fl I 2497appeared in 2498.Ox 5.2 , 2499and 2500.Fl aCcfhKklMSsw 2501in 2502.Ox 5.7 . 2503.Sh AUTHORS 2504.An -nosplit 2505The 2506.Nm 2507utility was written by 2508.An Kristaps Dzonsons Aq Mt kristaps@bsd.lv 2509and is maintained by 2510.An Ingo Schwarze Aq Mt schwarze@openbsd.org . 2511