History log of /openbsd-src/usr.bin/rs/rs.c (Results 1 – 25 of 30)
Revision Date Author Comments
# 2450f62a 03-Dec-2015 schwarze <schwarze@openbsd.org>

UTF-8 support: In a UTF-8 locale, properly align columns in the
presence of zero-width and double-width characters and replace
non-printable codepoints and invalid bytes with ASCII question
marks. N

UTF-8 support: In a UTF-8 locale, properly align columns in the
presence of zero-width and double-width characters and replace
non-printable codepoints and invalid bytes with ASCII question
marks. No change in the C/POSIX locale.
As a side effect, get rid of all pointer to pointer variables
and simplify some of the code.

Partially based on ideas from tedu@.
Feedback and OK czarkoff@, OK tedu@.

show more ...


# fb0bf273 14-Nov-2015 schwarze <schwarze@openbsd.org>

Fix the obvious bug that with -z, every column was at least as wide
as the previous one. While here, shorten the -z code by one line.


# b2246ea6 10-Nov-2015 schwarze <schwarze@openbsd.org>

With -H, do not overrun your static buffer on files longer than 4 kB.
With -K, do not print bogus blank lines in case of premature EOF.

While here, completely rewrite get_line() in a modern style us

With -H, do not overrun your static buffer on files longer than 4 kB.
With -K, do not print bogus blank lines in case of premature EOF.

While here, completely rewrite get_line() in a modern style using
getline(3), ferror(3), strdup(3), and ssize_t for line lengths.
Completely get rid of the static buffer.
I wouldn't be very surprised if this fixes even more bugs
than the two ones mentioned above.

OK (and "amazing") deraadt@

show more ...


# 0bd1216c 09-Oct-2015 deraadt <deraadt@openbsd.org>

Change all tame callers to namechange to pledge(2).


# a81fec47 06-Oct-2015 deraadt <deraadt@openbsd.org>

data processing stdin to stdout; tame "stdout"


# cfff592f 20-Aug-2015 deraadt <deraadt@openbsd.org>

Do not cast result of malloc/calloc/realloc* if stdlib.h is in scope
ok krw millert


# 7a7f4de2 08-Oct-2014 doug <doug@openbsd.org>

userland reallocarray audit.

Replace malloc() and realloc() calls that may have integer overflow in the
multiplication of the size argument with reallocarray().

ok deraadt@


# 7a3fbb72 15-Nov-2013 millert <millert@openbsd.org>

Include unistd.h as it is the standard location for getopt().
From Eitan Adler


# 225965cd 03-Dec-2012 otto <otto@openbsd.org>

don't try to stuff ptr differences into an int; from Arto Jonsson; ok espie@


# f9bbbf45 04-Mar-2012 fgsch <fgsch@openbsd.org>

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(the 33,000 line diff is essentially mechanical)
ok with the idea millert, ok dms

show more ...


# b69f48c8 14-Oct-2009 sobrado <sobrado@openbsd.org>

sort flags.


# 1ed98fdf 02-Sep-2007 deraadt <deraadt@openbsd.org>

use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsg


# be8fb0dd 17-Apr-2006 moritz <moritz@openbsd.org>

Three undocumented options got lost in the conversion to getopt(3).
Remove their remaining code, since they were not working before.

Initial diff from Steffen Wendzel.

ok millert@


# 3e26ed8b 15-May-2005 jmc <jmc@openbsd.org>

oops. grasp of alphabet...slipping...


# 63f6490d 15-May-2005 millert <millert@openbsd.org>

Make usage/SYNOPSIS saner and sort the options. With jmc@


# bba7e94a 14-May-2005 millert <millert@openbsd.org>

Replace homegrown getnum() with strtonum() and replace atoi() with
strtonum() and strtol().


# 2886fa86 14-May-2005 millert <millert@openbsd.org>

kill commented out code


# f7cb177d 14-May-2005 millert <millert@openbsd.org>

make this use getopt()


# d40d8d82 13-Mar-2004 tedu <tedu@openbsd.org>

use NULL for pointers. from Joris Vink


# 5e2301f8 16-Oct-2003 tedu <tedu@openbsd.org>

better realloc. ok deraadt@


# 1837a5ca 10-Jun-2003 deraadt <deraadt@openbsd.org>

mostly ansi cleanup; pval ok


# f75387cb 03-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# c72b5b24 16-Feb-2002 millert <millert@openbsd.org>

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be don

Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.

show more ...


# c0932ef1 19-Nov-2001 mpech <mpech@openbsd.org>

kill more registers

millert@ ok


12