#
d7259957 |
| 04-Dec-2022 |
cheloha <cheloha@openbsd.org> |
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument.
userspace: remove vestigial '?' cases from top-level getopt(3) loops
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines.
Prompted by dlg@. With help from dlg@ and millert@.
Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2
ok naddy@ millert@ dlg@
show more ...
|
#
a1465ea1 |
| 10-Nov-2022 |
anton <anton@openbsd.org> |
Use /tmp as opposed of /var/tmp as the default directory for temporary files.
|
#
49a6e16f |
| 13-Dec-2021 |
deraadt <deraadt@openbsd.org> |
remove a couple hundred sys/param.h includes in userland code, and also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl
|
#
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 ...
|
#
d167610c |
| 14-Feb-2020 |
schwarze <schwarze@openbsd.org> |
no need to declare "extern optarg" and "extern optind" when <unistd.h> is included; patch from Jan Stary <hans at stare dot cz>; OK millert
|
#
36cd4f11 |
| 27-Jul-2017 |
bluhm <bluhm@openbsd.org> |
Fix all clang warnings in libc regress and cleanup some make files.
|
#
da454aa2 |
| 16-Apr-2017 |
kettenis <kettenis@openbsd.org> |
Use INT_MAX instead of SIZE_MAX as the maximum file size we can handle. Fixes this test on 64-bit architectures.
ok visa@
|
#
600fb417 |
| 23-Oct-2015 |
mmcc <mmcc@openbsd.org> |
Cast ctype functions' arguments to unsigned char.
|
#
4239b822 |
| 06-Feb-2015 |
millert <millert@openbsd.org> |
SIZE_MAX is standard, we should be using it in preference to the obsolete SIZE_T_MAX. OK miod@ beck@
|
#
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 ...
|
#
db3296cf |
| 31-Jul-2003 |
deraadt <deraadt@openbsd.org> |
various cleanups; david says results are same
|
#
e33d3bd3 |
| 02-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.
|
#
e7beb4a7 |
| 19-Feb-2002 |
millert <millert@openbsd.org> |
We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.
|
#
d0cb9114 |
| 18-Feb-2002 |
millert <millert@openbsd.org> |
Rename private err() function to dberr() to avoid collision with libc's err().
|
#
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 ...
|
#
133306f0 |
| 29-Jan-2001 |
niklas <niklas@openbsd.org> |
$OpenBSD$
|
#
85271342 |
| 25-Jul-1997 |
mickey <mickey@openbsd.org> |
#if __STDC__ --> #ifdef __STDC__
|
#
180acc8f |
| 17-Jan-1997 |
millert <millert@openbsd.org> |
r?index -> strr?chr
|
#
72799b18 |
| 15-Jan-1997 |
millert <millert@openbsd.org> |
getopt(3) returns -1 when out of args, not EOF, whee!
|
#
bec2d00a |
| 07-May-1996 |
deraadt <deraadt@openbsd.org> |
db release 1.85
|
#
df930be7 |
| 18-Oct-1995 |
deraadt <deraadt@openbsd.org> |
initial import of NetBSD tree
|