#
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 ...
|
#
3aaa63eb |
| 28-Jun-2019 |
deraadt <deraadt@openbsd.org> |
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitrary value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
show more ...
|
#
97445c82 |
| 15-Mar-2018 |
anton <anton@openbsd.org> |
Favor usage of __func__ in warning/error messages. Some of them referred to the wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied.
Favor usage of __func__ in warning/error messages. Some of them referred to the wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied.
ok benno@ tb@
show more ...
|
#
4a010e0c |
| 14-Dec-2015 |
tb <tb@openbsd.org> |
Move system headers from sh.h to those files that actually need them.
ok mmcc@ a while ago
|
#
0ddc292a |
| 02-Dec-2015 |
mmcc <mmcc@openbsd.org> |
comment typo
|
#
56018212 |
| 19-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Move string.h include from sh.h to the files that use it.
ok nicm@
|
#
3ac72776 |
| 15-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Remove an unused included header (sys/stat.h).
|
#
891a519f |
| 25-Sep-2015 |
nicm <nicm@openbsd.org> |
Remove EXTERN from tty.[ch], from Michael McConville. No binary change.
|
#
259612a2 |
| 13-Sep-2015 |
tedu <tedu@openbsd.org> |
move tty_close up a bit so we can use it. combine two equiv if blocks. from Michael McConville
|
#
bf50f917 |
| 10-Aug-2014 |
guenther <guenther@openbsd.org> |
Replace F_DUPFD followed by setting FD_CLOEXEC with just F_DUPFD_CLOEXEC
ok matthew@ millert@
|
#
c3a8e039 |
| 14-Mar-2006 |
deraadt <deraadt@openbsd.org> |
only santa checks things twice; from adobriyan@gmail; ok tedu
|
#
7a8124d8 |
| 30-Mar-2005 |
deraadt <deraadt@openbsd.org> |
lots of indentation cleanup, now ksh is readable like our other code. double checked to make sure no binaries change, and eyed by niallo
|
#
0e7d3a01 |
| 22-Dec-2004 |
millert <millert@openbsd.org> |
Use stdbool.h instead of rolling our own bools.
|
#
c5d5393c |
| 20-Dec-2004 |
otto <otto@openbsd.org> |
Ansification plus some minor knf. No binary change on i386 and sparc64, binary change in lex.o on macppc due to introduction of dopprompt() prototype. ok millert@
|
#
731f0f61 |
| 18-Dec-2004 |
millert <millert@openbsd.org> |
Replace fd_clexec() with calls to fcntl(fd, F_SETFD, FD_CLOEXEC)
|
#
69dc5d70 |
| 18-Dec-2004 |
millert <millert@openbsd.org> |
Use struct termios instead of TTY_state typedef Use tc[gs]etattr() instead of [gs]et_tty() abstraction
|
#
69b9f96b |
| 18-Dec-2004 |
millert <millert@openbsd.org> |
Remove unused OS dependent #ifdef blocks, #defines and macro abstraction. First step in making the ksh code easier to read. From Matthias Kilian
|
#
7055cce3 |
| 01-Oct-1996 |
downsj <downsj@openbsd.org> |
Integrate pdksh 5.2.9.
|
#
7cb960a2 |
| 14-Aug-1996 |
downsj <downsj@openbsd.org> |
Import pdksh 5.2.7.
|