#
1.10 |
|
11-Jul-2023 |
claudio |
No need to initialize the first element of st->string since it was just calloc(3)-ed a few lines above. OK tb@
|
#
1.9 |
|
21-Jun-2023 |
claudio |
Use recallocarray() consistently. recallocarray() was introduced to simplify exactly this use case where the new memory needs to be zeroed during resize. Since recallocarray() takes care of all this there is no need to bzero() memory anymore.
OK tb@ millert@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
|
#
1.8 |
|
02-May-2019 |
yasuoka |
Fix a comparison in open_memstream not to confuse when a negative value is given for the off. found by nagasaka at IIJ.
ok deraadt
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.7 |
|
17-Mar-2017 |
deraadt |
Use recallocarray() to avoid leaving detritus in memory when resizing buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.6 |
|
31-Aug-2015 |
guenther |
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@ ok kettenis@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.5 |
|
05-Feb-2015 |
millert |
Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
|
#
1.4 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.3 |
|
03-Apr-2013 |
guenther |
Set the stream orientation in open_{,w}memstream(). Check it in the regress test
ok mpi@
|
#
1.2 |
|
27-Mar-2013 |
mpi |
Add an open_wmemstream(3) implementation and fix various issues for fmemopen(3) and open_memstream(3).
With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.1 |
|
01-Jan-2013 |
mpi |
Add an implementation based on tedu@'s design of fmemopen(3) and open_memstream(3) so they can be polished in-tree.
One of the manpages comes from NetBSD with some tweaks.
Prodded by espie@, krw@, guenther@
|
#
1.9 |
|
21-Jun-2023 |
claudio |
Use recallocarray() consistently. recallocarray() was introduced to simplify exactly this use case where the new memory needs to be zeroed during resize. Since recallocarray() takes care of all this there is no need to bzero() memory anymore.
OK tb@ millert@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE
|
#
1.8 |
|
02-May-2019 |
yasuoka |
Fix a comparison in open_memstream not to confuse when a negative value is given for the off. found by nagasaka at IIJ.
ok deraadt
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.7 |
|
17-Mar-2017 |
deraadt |
Use recallocarray() to avoid leaving detritus in memory when resizing buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.6 |
|
31-Aug-2015 |
guenther |
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@ ok kettenis@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.5 |
|
05-Feb-2015 |
millert |
Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
|
#
1.4 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.3 |
|
03-Apr-2013 |
guenther |
Set the stream orientation in open_{,w}memstream(). Check it in the regress test
ok mpi@
|
#
1.2 |
|
27-Mar-2013 |
mpi |
Add an open_wmemstream(3) implementation and fix various issues for fmemopen(3) and open_memstream(3).
With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.1 |
|
01-Jan-2013 |
mpi |
Add an implementation based on tedu@'s design of fmemopen(3) and open_memstream(3) so they can be polished in-tree.
One of the manpages comes from NetBSD with some tweaks.
Prodded by espie@, krw@, guenther@
|
#
1.8 |
|
02-May-2019 |
yasuoka |
Fix a comparison in open_memstream not to confuse when a negative value is given for the off. found by nagasaka at IIJ.
ok deraadt
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.7 |
|
17-Mar-2017 |
deraadt |
Use recallocarray() to avoid leaving detritus in memory when resizing buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.6 |
|
31-Aug-2015 |
guenther |
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@ ok kettenis@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.5 |
|
05-Feb-2015 |
millert |
Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
|
#
1.4 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.3 |
|
03-Apr-2013 |
guenther |
Set the stream orientation in open_{,w}memstream(). Check it in the regress test
ok mpi@
|
#
1.2 |
|
27-Mar-2013 |
mpi |
Add an open_wmemstream(3) implementation and fix various issues for fmemopen(3) and open_memstream(3).
With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.1 |
|
01-Jan-2013 |
mpi |
Add an implementation based on tedu@'s design of fmemopen(3) and open_memstream(3) so they can be polished in-tree.
One of the manpages comes from NetBSD with some tweaks.
Prodded by espie@, krw@, guenther@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.7 |
|
17-Mar-2017 |
deraadt |
Use recallocarray() to avoid leaving detritus in memory when resizing buffers. We don't bother doing this for objects containing pointers, but focus on controllable data. ok millert
|
Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.6 |
|
31-Aug-2015 |
guenther |
Add framework for resolving (pun intended) libc namespace issues, using wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@ ok kettenis@
|
Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE
|
#
1.5 |
|
05-Feb-2015 |
millert |
Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@
|
#
1.4 |
|
16-Jan-2015 |
deraadt |
Move to the <limits.h> universe. review by millert, binary checking process with doug, concept with guenther
|
Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
|
#
1.3 |
|
03-Apr-2013 |
guenther |
Set the stream orientation in open_{,w}memstream(). Check it in the regress test
ok mpi@
|
#
1.2 |
|
27-Mar-2013 |
mpi |
Add an open_wmemstream(3) implementation and fix various issues for fmemopen(3) and open_memstream(3).
With inputs from millert@, stsp@, guenther@, tedu@ and matthew@
|
Revision tags: OPENBSD_5_3_BASE
|
#
1.1 |
|
01-Jan-2013 |
mpi |
Add an implementation based on tedu@'s design of fmemopen(3) and open_memstream(3) so they can be polished in-tree.
One of the manpages comes from NetBSD with some tweaks.
Prodded by espie@, krw@, guenther@
|