History log of /src/lib/libc/gen/unvis.c |
Revision | | Date | Author | Comments |
1.45 |
| 19-Apr-2022 |
rillig | lib: remove CONSTCOND comment
Since 2021-01-31, lint doesn't need it anymore for the common pattern of 'do ... while (0)'.
|
1.44 |
| 26-Sep-2014 |
roy | Revert prior patch as it breaks `vis -l` as pointed out by apb.
|
1.43 |
| 26-Sep-2014 |
roy | Remove \$ as a hidden marker as vis(3) wasn't setting it and it clobbered VIS_SHELL | VIS_CSTYLE.
|
1.42 |
| 26-Sep-2014 |
roy | Decode any printable characters encoded with VIS_CSTYLE so unvis(3) works with vis.c r1.25
|
1.41 |
| 15-Dec-2012 |
matt | Since the struct is const, no reason for the name member to be const.
|
1.40 |
| 14-Dec-2012 |
christos | Reduce the number of relative relocation by allocating space in the structure directly (Jilles Tjoelker @ FreeBSD)
|
1.39 |
| 13-Mar-2012 |
christos | branches: 1.39.2; PR/45989: Martin Husemann: lint invocation does include -w only on i386
- turn lint -w for all the platforms after fixing the lint warnings. - add _DIAGASSERTS() for casts that would assign values to types that would not fit. - change types, add casts - change into ansii prototypes - turn on _DIAGNOSTIC for libc (during current, to be eliminated for release builds)
approved by core@
|
1.38 |
| 18-Nov-2011 |
christos | initialize t to protect against empty string (Kamil Dudka)
|
1.37 |
| 06-Nov-2011 |
christos | handle \x sequences like c does
|
1.36 |
| 18-Mar-2011 |
martin | branches: 1.36.4; Test the proper array index. Discovered by sparc64 automatic test runs.
|
1.35 |
| 13-Mar-2011 |
mrg | cast "~0" to (size_t) when passing to a size_t taking function. fixes lint build errors.
|
1.34 |
| 12-Mar-2011 |
christos | Fix various vis/unvis issues: - no need for all the weak symbols - define a new _VIS_END flag for UNVIS_END so that there are no collisions between and vis and unvis flags. - add bound versions of the vis and unvis functions that take the length of the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if the buffer is not large enough, instead of silently truncating.
|
1.33 |
| 27-Feb-2011 |
christos | Add <stdint.h> for uint8_t from Jess Thrysoee
|
1.32 |
| 27-Nov-2010 |
christos | branches: 1.32.2; fix lint warning.
|
1.31 |
| 27-Nov-2010 |
christos | Implement VIS_NOESCAPE and VIS_HTTP1866.
|
1.30 |
| 11-Feb-2009 |
christos | remove debugging. pointed by enami
|
1.29 |
| 10-Feb-2009 |
christos | Add RFC 2045 MIME Quoted-Printable support.
|
1.28 |
| 13-Sep-2005 |
christos | branches: 1.28.30; compat core reorg.
|
1.27 |
| 16-May-2005 |
lukem | More whitespace consistency tweaks
|
1.26 |
| 16-May-2005 |
lukem | Whitespace consistency fixes.
|
1.25 |
| 19-Apr-2005 |
rillig | Converted all arguments for the <ctype.h> functions to (unsigned char). Fixes PR 21165. Approved by christos.
|
1.24 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
|
1.23 |
| 03-Jul-2002 |
pooka | adapt for vis()/svis() check separation
|
1.22 |
| 23-Mar-2002 |
christos | - Add VIS_HTTPSTYLE from FreeBSD. - svis, strsvis, strsvisx were not reversible, because they did not encode \\ unless it was passed in the extras array. - Fix documentation to match the proper signature of the functions.
|
1.21 |
| 31-Jan-2002 |
tv | Roll in fixes to permit cross-compiling from non-NetBSD hosts. This round has been tested on Solaris/x86 and Linux hosts.
* Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
|
1.20 |
| 29-Jan-2002 |
tv | Add hooks to allow compiling for non-NetBSD hosts.
|
1.19 |
| 22-Jan-2000 |
mycroft | branches: 1.19.6; Delint. Remove trailing ; from uses of __weak_alias(). The macro inserts this if needed.
|
1.18 |
| 07-Dec-1999 |
wennmach | Back out last change; now vis takes care not to produce ambigous encodings.
|
1.17 |
| 01-Dec-1999 |
wennmach | Make unvis and strunvis grok strings produced by svis et al.
|
1.16 |
| 20-Sep-1999 |
lukem | branches: 1.16.4; back out the #ifdef _DIAGNOSTIC argument checks; too many people complained. _DIAGASSERT() is still retained.
|
1.15 |
| 16-Sep-1999 |
lukem | * use _DIAGASSERT() to check pointer arguments against NULL and file descriptors against -1 (as appropriate). * add actual checks which to detect stuff that would trigger_DIAGASSERT(), and attempt to return a sane error condition. * knf some code * remove some `register' decls.
the first two items result in the addition of code similar to the following in various functions:
_DIAGASSERT(path != NULL) #ifdef _DIAGNOSTIC if (path == NULL) { errno = EFAULT; return (-1); } #endif
|
1.14 |
| 02-Dec-1998 |
thorpej | Warn about references to the compatibility unvis(), and direct the user to include <vis.h> to generate the correct reference.
|
1.13 |
| 13-Nov-1998 |
christos | delint
|
1.12 |
| 03-Feb-1998 |
perry | remove obsolete register declarations
|
1.11 |
| 22-Oct-1997 |
thorpej | Allow the old-name functions to be compiled from the same source file as the renamed functions, and add some #error directives to force the issue with weak symbols for renamed functions when we support weak symbols in the C library.
|
1.10 |
| 22-Oct-1997 |
fvdl | New hacks to make libc work painlessly without bumping the major number: use type func(arg1s) asm("emitted_name") gcc mechanism. Suggested by Bill Sommerfeld.
|
1.9 |
| 20-Oct-1997 |
thorpej | branches: 1.9.2; Fix the shared library versioning snafu caused by the recent changes to the stat(2) family and msync(2). This uses a primitive function versioning scheme.
This reverts the libc shared library major version from 13 to 12, and adds a few new interfaces to bring us to libc version 12.20.
From Frank van der Linden <fvdl@NetBSD.ORG>.
|
1.8 |
| 16-Oct-1997 |
christos | change second argument of unvis from char to int
|
1.7 |
| 21-Jul-1997 |
jtc | If port provides __weak_alias(), provide an Standard C and POSIX pure identifier namespace by renaming non standard functions and variables such that they have a leading underscore. The library will use those names internally. Weak aliases are used to provide the original names to the API.
This is only the first part of this change. It is most of the functions which are implemented in C for all NetBSD ports. Subsequent changes are to add the same support to the remaining C files, to assembly files, and to the automagically generated assembly source used for system calls. When all of the above is done, ports with weak alias support should add a definition for __weak_alias to <sys/cdefs.h>.
|
1.6 |
| 13-Jul-1997 |
christos | Fix gcc warning Fix RCSID's
|
1.5 |
| 25-Feb-1995 |
cgd | branches: 1.5.4; fix prototype that i botched.
|
1.4 |
| 25-Feb-1995 |
cgd | merge with Lite, keep local changes. clean up id usage
|
1.3 |
| 26-Aug-1993 |
jtc | Declare rcsid strings so they are stored in text segment.
|
1.2 |
| 30-Jul-1993 |
mycroft | Add even more RCS frobs.
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.2 |
| 25-Feb-1995 |
cgd | from lite, with minor name rearrangement to fit.
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.5.4.1 |
| 19-Sep-1996 |
jtc | snapshot namespace cleanup: gen
|
1.9.2.1 |
| 22-Oct-1997 |
thorpej | Pull up from trunk:
New hacks to make libc work painlessly without bumping the major number: use type func(arg1s) asm("emitted_name") gcc mechanism. Suggested by Bill Sommerfeld.
Allow the old-name functions to be compiled from the same source file as the renamed functions, and add some #error directives to force the issue with weak symbols for renamed functions when we support weak symbols in the C library.
|
1.16.4.1 |
| 27-Dec-1999 |
wrstuden | Pull up to last week's -current.
|
1.19.6.4 |
| 01-Aug-2002 |
nathanw | Catch up to -current.
|
1.19.6.3 |
| 25-Apr-2002 |
nathanw | Catch up to -current.
|
1.19.6.2 |
| 22-Mar-2002 |
nathanw | Catch up to -current.
|
1.19.6.1 |
| 08-Mar-2002 |
nathanw | Catch up to -current.
|
1.28.30.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
|
1.32.2.1 |
| 05-Mar-2011 |
bouyer | Sync with HEAD
|
1.36.4.3 |
| 23-Jan-2013 |
yamt | sync with head
|
1.36.4.2 |
| 17-Apr-2012 |
yamt | sync with head
|
1.36.4.1 |
| 10-Nov-2011 |
yamt | sync with head
|
1.39.2.1 |
| 25-Feb-2013 |
tls | resync with head
|