summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/vis.3
AgeCommit message (Collapse)AuthorFilesLines
2018-03-16improve markup quality in the cases found by the new "--" style messageschwarze1-5/+4
2015-07-20Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@millert1-2/+5
2015-02-07Add examples for stravis() and strnvis() to vis.3.doug1-2/+33
Show the best ways to encode a dynamic and static buffer. input + ok schwarze@, ok jmc@
2015-02-06Add support for stravis() to vis.3 and Makefile.inc.doug1-6/+41
stravis(3) is an OpenBSD extension that was added recently. input + ok schwarze@, jmc@, deraadt@
2015-01-30Rework vis.3 so it has standard sections.doug1-38/+41
Moved the return values from the description to a proper return values section. Broke up the description into function description followed by a subsection for the range and encoding. Replaced srclen with strlen(src) when srclen isn't an argument. Moved the common flag argument to its own paragraph. input schwarze@, input + ok jmc@
2014-11-30mandoc -Tlint fixes from <kaspars at bankovskis dot net>schwarze1-3/+2
2013-06-05Use the fancy .In macro for includes. From Jan Klemkow. ok jmc schwarzetedu1-4/+4
2012-01-16Document the \-C output format generated by VIS_ALLguenther1-2/+11
ok deraadt@
2011-05-02no need to escape `|'; as discussed with schwartzejmc1-7/+3
2011-03-14try to document these functions betterderaadt1-24/+23
discussed with millert and guenther ok guenther
2010-08-24backout VIS_HEX. guenther@ points out that the C89 \xff encodingdjm1-9/+2
idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
2010-08-21Two new flags: VIS_ALL - encode all characters, not just invisible onesdjm1-2/+11
and VIS_HEX - use C89 \xff style hexadecimal encoding. Teach unvis(3) how to deal with the hex encoding. feedback and ok millert@ chl@
2007-05-31convert to new .Dd format;jmc1-2/+2
2005-08-28fix vis prototypemillert1-2/+2
2005-08-10although groff understands `.Ar bob )', it does not understand `.Ar ( bob',jmc1-3/+2
so mark up the opening bracket with .Pf; remove non- -mdoc .br;
2005-08-09Add VIS_GLOB to escape special characters used by shell-style globbing.millert1-2/+10
From Solar Designer based on changes in FreeBSD. OK deraadt@
2005-02-25Be correct in our man pages when talking about NUL termination (that is,cloder1-2/+2
termination with '\0') vs. null termination. Input from krw@, jaredy@, jmc@. OK deraadt@
2003-06-02Remove the advertising clause in the UCB license which Berkeleymillert1-6/+2
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-11Document \spjanzen1-1/+2
2003-02-24need stdlib.h tooderaadt1-1/+2
2002-07-01Fix strnvis(): don't truncate unnecessarily, set the return value correctlypjanzen1-5/+12
if we had to truncate, and don't NUL-terminate if size == 0.
2001-11-09Typos, siz -> size.aaron1-3/+3
2000-12-24Various repairs, mostly to get rid of short lines.aaron1-3/+2
2000-11-21Add strnvis(3) -- a length-bounded version of strvis(3) with a returnmillert1-8/+50
value similar to snprintf(3) and strlcpy(3).
2000-09-14Remove spurious period.aaron1-2/+2
2000-08-09Remove trailing blank lines.aaron1-2/+1
2000-04-18Repairs, mostly removing hard sentence breaks.aaron1-8/+11
1999-07-09- remove all trailing whitespaceaaron1-9/+9
* except when it is escaped with a `\' at the end of the line - fix remaining .Nm usage as well - this is from a patch I received from kwesterback@home.com, who has been working on some scripts for fixing formatting errors in mdoc'd man pages Ok, so there could be a cost/benefit debate with this commit, but since I have the patch we might as well commit it...
1999-06-05change some .Em/.Va to .Li, looks niceraaron1-2/+2
1999-06-04After some constructive criticism from pjanzen@ and some e-mail tag:aaron1-8/+13
- only use the .Dv NULL form when referring explicitly to a function argument or return value - otherwise, use these forms: o non-null o null-terminated (hyphenated form for predicate adjective) o else, null terminated, or null terminate, whichever the case o null pointer, null byte, null string, etc. - may use NUL to refer to an ASCII NUL, but it doesn't need a .Tn macro In general, capitalizing the word "null" everywhere is unnecessary and makes the man pages harder to read. The above is consistent with popular programming texts (i.e., K&R, Stevens).
1999-05-29repairs; go back over some old files, because we should properly distinguishaaron1-32/+26
between NUL and NULL, i.e., don't use the .Dv (defined variable) macro when referring to an ASCII NUL
1999-05-16Cleanup xrefs under SEE ALSO. Specifically:alex1-2/+2
- Sort xrefs by section, and then alphabetically. - Add missing commas between xref items. - Remove commas from the last xref entry. - Remove duplicate entries.
1998-06-15use Bx macro for BSD versionsmickey1-2/+3
1996-08-19Fix RCS idstholo1-3/+1
Make sure everything uses {SYS,}LIBC_SCCS properly
1996-05-01vis.3 man page misuses the word comprise; netbsd pr#2345; from seebs@taniemarie.solon.comderaadt1-2/+2
1995-10-18initial import of NetBSD treederaadt1-0/+265