summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/vis.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Wrap <vis.h> so that calls go direct and the symbols are all weakguenther2015-09-131-1/+3
|
* Add VIS_DQ to escape double quotes. OK deraadt@ semarie@ reyk@millert2015-07-201-10/+10
|
* Add stravis(), an allocating version of strvis(). OK doug@millert2014-11-171-2/+23
|
* Fix handling of VIS_ALL: in vis(), actually encode all charactersguenther2011-03-131-5/+6
| | | | | | | as requested and give a correct estimate when they don't all fit, and in unvis() decode them instead of erroring ok nicm@, deraadt@
* backout VIS_HEX. guenther@ points out that the C89 \xff encodingdjm2010-08-241-15/+6
| | | | | | | | | 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.
* Two new flags: VIS_ALL - encode all characters, not just invisible onesdjm2010-08-211-7/+16
| | | | | | | | and VIS_HEX - use C89 \xff style hexadecimal encoding. Teach unvis(3) how to deal with the hex encoding. feedback and ok millert@ chl@
* repair VIS_GLOB; deraadt@ otto@ OKmillert2005-09-011-2/+3
|
* Remove spurious call to isgraph() that sneaked in in rev 1.16.otto2005-08-291-2/+2
| | | | ok millert@ deraadt@
* Fix the VIS_GLOB checks added in rev 1.16millert2005-08-281-10/+8
| | | | | | Add missing casts to u_char so 0xff is treated the same on machines with signed and unsigned chars. OK deraadt@ espie@
* Add VIS_GLOB to escape special characters used by shell-style globbing.millert2005-08-091-10/+13
| | | | From Solar Designer based on changes in FreeBSD. OK deraadt@
* zap remaining rcsid.espie2005-08-081-4/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* deregister (and deauto!). ok millert@ marco@otto2005-03-251-3/+3
|
* ansify function definitions and zap some `register'jfb2004-05-181-19/+5
| | | | ok millert@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* sync vis() behaviour when VIS_SAFE to man page: don't do anything if isgraph()pjanzen2003-05-141-3/+4
| | | | is true, even if the character isn't 7-bit.
* need string.hderaadt2002-07-011-1/+2
|
* Fix strnvis(): don't truncate unnecessarily, set the return value correctlypjanzen2002-07-011-12/+19
| | | | if we had to truncate, and don't NUL-terminate if size == 0.
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-5/+1
|
* Explicitly NUL terminate dst in strvis() and strvisx() in casemillert2001-08-131-1/+3
| | | | | we are passes an empty string. vis() and strnvis() were already OK. Based on patch by wilfried@openbsd.org
* Add strnvis(3) -- a length-bounded version of strvis(3) with a returnmillert2000-11-211-10/+54
| | | | value similar to snprintf(3) and strlcpy(3).
* off-by-one calculation error; getcwd() would return NULL if the buffer wasderaadt2000-07-191-2/+3
| | | | the needed length + terminating byte + 1; that 1 is not needed; assar
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Clean up some -Wall complaints.millert1997-07-091-3/+3
|
* Fix RCS idstholo1996-08-191-7/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+192