#
977aa0f2 |
| 17-Mar-2017 |
deraadt <deraadt@openbsd.org> |
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
|
#
3240e6a8 |
| 21-Sep-2016 |
guenther <guenther@openbsd.org> |
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
verified no change to instructions on ILP32 (i386) and LP64 (amd64)
Delete casts to off_t and size_t that are implied by assignments or prototypes. Ditto for some of the char* and void* casts too.
verified no change to instructions on ILP32 (i386) and LP64 (amd64) ok natano@ abluhm@ deraadt@ millert@
show more ...
|
#
a29ed0e9 |
| 25-Aug-2016 |
schwarze <schwarze@openbsd.org> |
After read errors, fgetln(3) sometimes succeeded (returning non-NULL) and failed (setting errno and ferror(3)) both at the same time. That's a bad idea in general, and here in particular since return
After read errors, fgetln(3) sometimes succeeded (returning non-NULL) and failed (setting errno and ferror(3)) both at the same time. That's a bad idea in general, and here in particular since returning partial lines was neither reliable (sometimes, you got NULL anyway) nor predictable (almost always, the line would be truncated long before the actual read error). Instead, on read failure, fail properly and always return NULL. Issue found in a discussion with Andrey Chernov <ache at freebsd dot org> who finally agreed to move FreeBSD into the same direction. The fix is joint work with and OK by millert@.
show more ...
|
#
9b9d2a55 |
| 31-Aug-2015 |
guenther <guenther@openbsd.org> |
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
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@
show more ...
|
#
bffce29e |
| 05-Jan-2015 |
millert <millert@openbsd.org> |
Remove #ifdef notdef bits--we are not going to change the fgetln() API to NUL-terminate the buffer.
|
#
724185f6 |
| 12-Nov-2013 |
deraadt <deraadt@openbsd.org> |
both files contain a function which should only be static. not cranking libc over this (unless an issue is found in ports)
|
#
4b48fced |
| 21-Nov-2009 |
guenther <guenther@openbsd.org> |
Several stdio functions were failing to set the stream orientation to 'narrow' as they should.
"looks correct" millert@ "makes sense" blambert@
|
#
c5acf43a |
| 09-Nov-2009 |
kurt <kurt@openbsd.org> |
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is th
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway.
committing on behalf of and okay guenther@ now that we have install media space available.
show more ...
|
#
7ff09c5c |
| 22-Oct-2009 |
guenther <guenther@openbsd.org> |
Back out previous commit, as it caused too much growth for the install media to fit
|
#
9962e7fd |
| 21-Oct-2009 |
guenther <guenther@openbsd.org> |
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is th
Fix the handle locking in stdio to use flockfile/funlockfile internally when and where required. Macros in <stdio.h> are updated to automatically call the underlying functions when the process is threaded to obtain the necessary locking. A private mutex is added to protect __sglue, the internal list of FILE handles, and another to protect the one-time initialization. Some routines in libc that use getc() change to use getc_unlocked() as they're either protected by their own lock or aren't thread-safe routines anyway.
ok kurt@, earlier version tested by sthen@ and jj@
show more ...
|
#
c2c925de |
| 08-Aug-2005 |
espie <espie@openbsd.org> |
zap remaining rcsid.
Kill old files that are no longer compiled.
okay theo
|
#
fd14b462 |
| 28-May-2005 |
millert <millert@openbsd.org> |
Use '\0' not 0 when storing as a char, part from Andrey Matveev.
|
#
4e503363 |
| 28-Sep-2004 |
otto <otto@openbsd.org> |
deregister + ansify, no change in object code. ok deraadt@ millert@
|
#
6580fee3 |
| 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.
|
#
e4d25771 |
| 14-Jun-2002 |
todd <todd@openbsd.org> |
spelling; from Brian Poole <raj@cerias.purdue.edu>
|
#
e9b2b68c |
| 19-Aug-1996 |
tholo <tholo@openbsd.org> |
Fix RCS ids Make sure everything uses {SYS,}LIBC_SCCS properly
|
#
df930be7 |
| 18-Oct-1995 |
deraadt <deraadt@openbsd.org> |
initial import of NetBSD tree
|