#
1.9 |
|
28-Dec-2022 |
jmc |
spelling fixes; from paul tagliamonte any parts of his diff not taken are noted on tech
|
Revision tags: OPENBSD_7_1_BASE OPENBSD_7_2_BASE
|
#
1.8 |
|
24-Oct-2021 |
deraadt |
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
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.7 |
|
28-Jun-2019 |
deraadt |
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.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.6 |
|
27-Oct-2017 |
mpi |
Use <elf.h> instead of <elf_abi.h>
ok jasper@, jca@, deraadt@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.5 |
|
19-Oct-2015 |
krw |
Add parenthesis gcc wants and remove defined but unused label gcc complains about.
ok deraadt@ on parethesis
|
#
1.4 |
|
16-Oct-2015 |
tobias |
Check file sizes only for regular files. The current code breaks savecore due to its kvm handling.
ok deraadt
|
#
1.3 |
|
16-Oct-2015 |
tobias |
Merge nlist out of boundary access fix with other nlist implementations. While at it, merge style and typo fixes back into nlist(3), too.
ok deraadt, jsing, millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.2 |
|
16-Jan-2015 |
deraadt |
first batch of cleanup to programs based upon the namespace cleanups in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.1 |
|
19-Jan-2014 |
jsing |
Rework installboot and use a single directory with a single makefile. The directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin.
Discussed with deraadt@
|
#
1.8 |
|
24-Oct-2021 |
deraadt |
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
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
|
#
1.7 |
|
28-Jun-2019 |
deraadt |
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.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.6 |
|
27-Oct-2017 |
mpi |
Use <elf.h> instead of <elf_abi.h>
ok jasper@, jca@, deraadt@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.5 |
|
19-Oct-2015 |
krw |
Add parenthesis gcc wants and remove defined but unused label gcc complains about.
ok deraadt@ on parethesis
|
#
1.4 |
|
16-Oct-2015 |
tobias |
Check file sizes only for regular files. The current code breaks savecore due to its kvm handling.
ok deraadt
|
#
1.3 |
|
16-Oct-2015 |
tobias |
Merge nlist out of boundary access fix with other nlist implementations. While at it, merge style and typo fixes back into nlist(3), too.
ok deraadt, jsing, millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.2 |
|
16-Jan-2015 |
deraadt |
first batch of cleanup to programs based upon the namespace cleanups in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.1 |
|
19-Jan-2014 |
jsing |
Rework installboot and use a single directory with a single makefile. The directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin.
Discussed with deraadt@
|
#
1.7 |
|
28-Jun-2019 |
deraadt |
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.
|
Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.6 |
|
27-Oct-2017 |
mpi |
Use <elf.h> instead of <elf_abi.h>
ok jasper@, jca@, deraadt@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.5 |
|
19-Oct-2015 |
krw |
Add parenthesis gcc wants and remove defined but unused label gcc complains about.
ok deraadt@ on parethesis
|
#
1.4 |
|
16-Oct-2015 |
tobias |
Check file sizes only for regular files. The current code breaks savecore due to its kvm handling.
ok deraadt
|
#
1.3 |
|
16-Oct-2015 |
tobias |
Merge nlist out of boundary access fix with other nlist implementations. While at it, merge style and typo fixes back into nlist(3), too.
ok deraadt, jsing, millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.2 |
|
16-Jan-2015 |
deraadt |
first batch of cleanup to programs based upon the namespace cleanups in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.1 |
|
19-Jan-2014 |
jsing |
Rework installboot and use a single directory with a single makefile. The directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin.
Discussed with deraadt@
|
#
1.6 |
|
27-Oct-2017 |
mpi |
Use <elf.h> instead of <elf_abi.h>
ok jasper@, jca@, deraadt@
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.5 |
|
19-Oct-2015 |
krw |
Add parenthesis gcc wants and remove defined but unused label gcc complains about.
ok deraadt@ on parethesis
|
#
1.4 |
|
16-Oct-2015 |
tobias |
Check file sizes only for regular files. The current code breaks savecore due to its kvm handling.
ok deraadt
|
#
1.3 |
|
16-Oct-2015 |
tobias |
Merge nlist out of boundary access fix with other nlist implementations. While at it, merge style and typo fixes back into nlist(3), too.
ok deraadt, jsing, millert
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.2 |
|
16-Jan-2015 |
deraadt |
first batch of cleanup to programs based upon the namespace cleanups in net/pfvar.h sys/proc.h sys/ucred.h arpa/nameser.h change to PATH_MAX, reduce use of MIN() and MAX(), HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc etc ok millert guenther, some review by doug
|
Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.1 |
|
19-Jan-2014 |
jsing |
Rework installboot and use a single directory with a single makefile. The directory per machine model is arguably cleaner, however it does not play well with distrib/special and instbin.
Discussed with deraadt@
|