History log of /openbsd/usr.bin/vi/common/main.c (Results 1 – 25 of 43)
Revision Date Author Comments
# b7041c07 24-Oct-2021 deraadt <deraadt@openbsd.org>

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which mig

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant. Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk. They could all be 0xdeafbeef.
ok millert

show more ...


# 8fad99e1 26-Jan-2021 deraadt <deraadt@openbsd.org>

satisfy -fno-common by repairing one enum decl
ok mortimer


# ac99a8fe 10-Nov-2017 martijn <martijn@openbsd.org>

When tracing is compiled in make sure it flushes its content to disk as
soon as the TRACE function is called. This helps while debugging crashes.

Noticed and annoyed by while debugging the SIGTERM c

When tracing is compiled in make sure it flushes its content to disk as
soon as the TRACE function is called. This helps while debugging crashes.

Noticed and annoyed by while debugging the SIGTERM crash I just submitted.

OK millert@ and tb@

show more ...


# 71de761c 03-Jul-2017 bentley <bentley@openbsd.org>

Remove settings that were unimplemented for 20 years; update STANDARDS.

ok jmc@ natano@


# a0242ada 18-Apr-2017 deraadt <deraadt@openbsd.org>

free(NULL) is ok so use it; from Michael W. Bombardieri


# 721c3ea3 27-May-2016 martijn <martijn@openbsd.org>

Revert CHAR_T removal. Some signedness flaws were introduced.
Found the hard way by jca@


# 0eb8a8cd 02-May-2016 martijn <martijn@openbsd.org>

Remove CHAR_T in favor of native types.

schwarze@ agrees with the direction.
Few tweaks and OK tb@


# aec0926e 03-Feb-2016 mmcc <mmcc@openbsd.org>

Remove needless alias macros for malloc and calloc. No binary change. I
got this upstreamed a few weeks ago.

ok tb (less a few style tweaks), martijn (who suggested style tweaks)


# 6043720d 30-Jan-2016 martijn <martijn@openbsd.org>

replace progname variable in gs structure with getprogname

OK zhuk@ and tb@


# 93aca1ab 27-Jan-2016 martijn <martijn@openbsd.org>

remove v_estr in favor of warn and warnx

OK schwarze@, zhuk@
fine with me tb@


# 7849ae1c 09-Jan-2016 deraadt <deraadt@openbsd.org>

decls before code; from Martijn van Duren


# 41156da8 06-Jan-2016 millert <millert@openbsd.org>

Remove the message catalog DB. This removes the msg_open() and
msg_close() functions along with the msgcat command.
From Martijn van Duren


# 54d5890c 07-Dec-2015 mmcc <mmcc@openbsd.org>

Remove needless type casts and corresponding type parameters from
allocation macros. No binary change.

ok tb@


# 1daaadf3 20-Nov-2015 bentley <bentley@openbsd.org>

vi -S doesn't need proc or exec.

ok tb@


# d144dcad 19-Nov-2015 bentley <bentley@openbsd.org>

"tty proc exec", not "proc exec tty"


# 4b41321d 15-Nov-2015 bentley <bentley@openbsd.org>

Vi needs flock, for those who haven't set nolock in .exrc for years...

Pointed out by Theo Buehler.


# 42a62ce5 15-Nov-2015 bentley <bentley@openbsd.org>

Basic pledge for vi.

ok deraadt@


# 90fbe5d9 20-Nov-2014 bentley <bentley@openbsd.org>

Remove the vi perl api.

There have been various build errors for coming on two years now.
It doesn't work and nobody has expressed any interest in saving it.

From natano; ok millert@


# b81c38f1 19-Nov-2014 bentley <bentley@openbsd.org>

Remove ifdef checks for LIBRARY.
It is undocumented and triggers the same conditional inclusions as
PURIFY does.

From Martin Natano.


# 10ad12c7 14-Nov-2014 tedu <tedu@openbsd.org>

from natano:
_PATH_BSHELL, _PATH_SENDMAIL, _PATH_TMP and _PATH_TTY are defined in
<paths.h> and _PATH_SYSV_TTY is unused. All of them can be removed from
pathnames.h. The other defines can be made un

from natano:
_PATH_BSHELL, _PATH_SENDMAIL, _PATH_TMP and _PATH_TTY are defined in
<paths.h> and _PATH_SYSV_TTY is unused. All of them can be removed from
pathnames.h. The other defines can be made unconditionally.

show more ...


# 486aa1f0 12-Nov-2014 bentley <bentley@openbsd.org>

Ansify vi.

ok bcallah@ millert@


# b713aa06 01-Dec-2013 krw <krw@openbsd.org>

Change the file reference queue from CIRCLEQ to TAILQ.

vi is now CIRCLEQ free!

ok zhuk@


# 9dcc8e16 28-Nov-2013 krw <krw@openbsd.org>

Convert the display screens and hidden screens CIRCLEQ's to TAILQ's.

ok pelikan@ zhuk@


# 6afab947 25-Nov-2013 krw <krw@openbsd.org>

Replace _texth CIRCLEQ with TAILQ. One down, five to go.

Read, tested, fixed and ok'd zhuk@ pelikan@ millert@


# 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 ...


12