#
6a970984 |
| 05-Jan-2022 |
millert <millert@openbsd.org> |
funopen(): change seekfn argument to use off_t, not fpos_t On BSD, fpos_t is typedef'd to off_t but some systems use a struct. This means fpos_t is not a portable function argument or return value. B
funopen(): change seekfn argument to use off_t, not fpos_t On BSD, fpos_t is typedef'd to off_t but some systems use a struct. This means fpos_t is not a portable function argument or return value. Both FreeBSD and the Linux libbsd funopen() have switched to off_t for this--we should too. From Joe Nelson. OK deraadt@
show more ...
|
#
464c6a2f |
| 11-Sep-2020 |
naddy <naddy@openbsd.org> |
add format string checking annotations for dprintf(3) and vdprintf(3) ok millert@ deraadt@
|
#
6ecde746 |
| 09-Sep-2016 |
millert <millert@openbsd.org> |
Move the 10 (!) defintions of NULL to their own mini header file and update the NULL definition for C++11. OK deraadt@ guenther@ kettenis@
|
#
c6c30f45 |
| 16-Mar-2016 |
deraadt <deraadt@openbsd.org> |
remove cpp version of __sputc, since the inline version is all we have ever used. ok jsg
|
#
abd93d17 |
| 14-Mar-2016 |
millert <millert@openbsd.org> |
Expose snprintf() and vsnprintf() for XPG 5. It predates C99 but still specified snprintf() and vsnprintf() based on earlier drafts. Allows snprintf() and vsnprintf() to be used when _XOPEN_SOURCE i
Expose snprintf() and vsnprintf() for XPG 5. It predates C99 but still specified snprintf() and vsnprintf() based on earlier drafts. Allows snprintf() and vsnprintf() to be used when _XOPEN_SOURCE is defined as 500. OK guenther@
show more ...
|
#
7a4e5fc4 |
| 20-Jan-2015 |
tedu <tedu@openbsd.org> |
increase TMP_MAX to the equivalent of INT_MAX. it's actually more, but safer not to wraparound by accident. ok deraadt millert miod
|
#
d8e2f36e |
| 27-Mar-2014 |
tedu <tedu@openbsd.org> |
safe to remove gets, now that's gone from cstdio too
|
#
62c9c9a7 |
| 25-Mar-2014 |
tedu <tedu@openbsd.org> |
try to put the pin back in. removing gets means removing it from libstdc++ and guenther tells me that will require changing version numbers.
|
#
c792825a |
| 25-Mar-2014 |
tedu <tedu@openbsd.org> |
no gets
|
#
acf82b0a |
| 16-Mar-2014 |
guenther <guenther@openbsd.org> |
lint is dead (long live the lint!), so stop using it as a cpp conditional (namespace pollution!) or talking about its opinion on code.
ok krw@
|
#
6c13836a |
| 04-Dec-2013 |
deraadt <deraadt@openbsd.org> |
express final disapproval of the interfaces in libcompat, such as them ftime(), gtty(), stty(), re_comp(), cuserid() and others. Discussion and ongoing work to fix the ports tree from many, especiall
express final disapproval of the interfaces in libcompat, such as them ftime(), gtty(), stty(), re_comp(), cuserid() and others. Discussion and ongoing work to fix the ports tree from many, especially naddy. ok naddy [There is a bit more cleanup possible after that, but this is considered the current safe step]
show more ...
|
#
236998c6 |
| 28-Mar-2013 |
eric <eric@openbsd.org> |
Enable fmemopen(3) and open_{w,}memstream(3)
commiting on behalf of mpi@
|
#
f2c0f4ac |
| 30-Jan-2013 |
brad <brad@openbsd.org> |
Add support for POSIX.1-2008 functions dprintf(3) and vdprintf(3).
Feedback from millert@ guenther@ OK guenther@ man page bits OK jmc@
|
#
dc893751 |
| 21-Mar-2012 |
fgsch <fgsch@openbsd.org> |
Implement getdelim(3) and getline(3). Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further
Implement getdelim(3) and getline(3). Prompted in a mail to tech@ by Jan Klemkow (j-dot-klemkow-at-wemelug-dot-de) but this is based on NetBSD's implementation instead with some tweaks by me. Further improvements would happen in tree.
ok millert@; discussed with many others ports cleanup by naddy@, sthen@. Antti Harri, Gonzalo L. R. and myself.
show more ...
|
#
f02fac78 |
| 18-Jul-2011 |
matthew <matthew@openbsd.org> |
Expose a bunch of new functionality from POSIX 2008: openat(2), fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlink
Expose a bunch of new functionality from POSIX 2008: openat(2), fchmodat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), faccessat(2), fchownat(2), linkat(2), readlinkat(2), renameat(2), symlinkat(2), unlinkat(2), utimensat(2), futimens(2), and fdopendir(3).
"Minor" libc bump.
Tested in a bulk build by naddy@ Much help from guenther@, thib@, tedu@, oga@, and others. ok deraadt@, naddy@
show more ...
|
#
c4ff7bee |
| 03-Jul-2011 |
jsg <jsg@openbsd.org> |
As pointed out by Richard Guenther our definition of NULL was incorrect for c++ compilers that aren't gcc (or pretend to be gcc like clang).
ok miod@
|
#
0c2a5da7 |
| 06-Apr-2011 |
miod <miod@openbsd.org> |
Define NULL as a void * instead of a long integer, as required by Single Unix. Kernel and bootblocks still use the old 0L value until all the NULL abuses in the code are fixed.
|
#
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 ...
|
#
25fa1fc0 |
| 13-Jan-2006 |
miod <miod@openbsd.org> |
Remove neither documented nor found in any spec ctermid_r() function - ctermid() is reentrant in its current implementation anyway. Surfing on the recent major version bump, ok millert@ deraadt@
|
#
c916d948 |
| 06-Jan-2006 |
millert <millert@openbsd.org> |
Adapt things to use __type_t instead of _BSD_TYPE_T_ Add new sys/_types.h header Include machine/_types.h or sys/_types.h where applicable
|
#
52a0e603 |
| 13-Dec-2005 |
millert <millert@openbsd.org> |
First step in include files overhaul. Use __FOO_VISIBLE (as defined in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraad
First step in include files overhaul. Use __FOO_VISIBLE (as defined in sys/cdefs.h) instead of _FOO_SOURCE. Also fix several namespace pollution issues, including the byte order defines. OK deraadt@
show more ...
|
#
57bf79d2 |
| 11-May-2005 |
espie <espie@openbsd.org> |
let vfscanf be a real function. Use a weak_alias on systems where this is feasible.
Okay millert@
There's a major libc bump coming that is going to cover this as well...
|
#
685aea3c |
| 30-Apr-2005 |
espie <espie@openbsd.org> |
Change internals of FILE: reuse the unget buffer field to access an extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@...
This is
Change internals of FILE: reuse the unget buffer field to access an extended attribute data structure (pimpl idiom). Idea taken from citrus. Much discussion with deraadt@, otto@, millert@...
This is the least disruptive way to extend FILE, since its size can't really change without this being a flag day. So the size doesn't change.
Actual additions to the structure will come in separate steps, since this change is nasty enough on its own.
Tests by otto@ and others, careful reading of code by otto@ and millert@.
This is definitely a major bump, and has been checked to not impact a full ports build.
show more ...
|