#
a431bfe5 |
| 09-Feb-2023 |
Sascha Wildner <saw@online.de> |
<stdio.h>: Fix issues introduced with the fopencookie() changes.
a765cedf26cef470ba7deee42c365f0221690a1a added fopencookie() and associated types from FreeBSD but it introduced a number of issues:
<stdio.h>: Fix issues introduced with the fopencookie() changes.
a765cedf26cef470ba7deee42c365f0221690a1a added fopencookie() and associated types from FreeBSD but it introduced a number of issues:
* Wrong parentheses caused it to try to (re-)typedef the ssize_t type. Fixed by removing parentheses and using __ssize_t. This fixes graphics/png as pointed out by David Shao. ssize_t isn't available in the compilation environment that graphics/png uses.
* Use off_t which is 64 bits in DragonFly. No need for off64_t.
* Put everything under __BSD_VISIBLE because it is not standard.
* While here, bump the manpage's date properly.
Reported-by: David Shao Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/3343>
show more ...
|
#
a765cedf |
| 04-Feb-2023 |
Antonio Huete Jimenez <tuxillo@quantumachine.net> |
fopencookie(3): Add a wrapper around funopen(3)
- Minor adjustment to _flags since ours reside on the public interface. - Untested. A unit test would be a good thing to have :)
Taken from :
fopencookie(3): Add a wrapper around funopen(3)
- Minor adjustment to _flags since ours reside on the public interface. - Untested. A unit test would be a good thing to have :)
Taken from : FreeBSD 877a840c080f FreeBSD-Review: https://reviews.freebsd.org/D6282
show more ...
|
Revision tags: v6.4.0, v6.4.0rc1, v6.5.0, v6.2.2, v6.2.1, v6.3.0, v6.0.1 |
|
#
6f932f6f |
| 14-Aug-2021 |
Sascha Wildner <saw@online.de> |
<stdio.h>: Clean up the POSIX namespace better.
* Include just <machine/stdint.h> for POSIX, but leave <sys/types.h> otherwise for the traditional expectations of third party code.
* POSIX did no
<stdio.h>: Clean up the POSIX namespace better.
* Include just <machine/stdint.h> for POSIX, but leave <sys/types.h> otherwise for the traditional expectations of third party code.
* POSIX did not require <stdio.h> to define off_t until Issue 7, even though ftello() and fseeko() were using it for a long time. This seems to be a "bug" in the specification, so adjust the visibility of off_t to match that of the functions. Actually use off_t for the ftello() and fseeko() prototypes.
Tested with a full bulk build.
show more ...
|
Revision tags: v6.0.0, v6.0.0rc1, v6.1.0 |
|
#
794d5643 |
| 22-Nov-2020 |
Sascha Wildner <saw@online.de> |
libc/stdio: Add _unlocked() flavors of fflush, fputc, fputs, fread, fwrite.
These are needed by some dports and can also be used in various things in base. Bump __DragonFly_version, too.
Reported-b
libc/stdio: Add _unlocked() flavors of fflush, fputc, fputs, fread, fwrite.
These are needed by some dports and can also be used in various things in base. Bump __DragonFly_version, too.
Reported-by: zrj Taken-from: FreeBSD
show more ...
|
Revision tags: v5.8.3, v5.8.2 |
|
#
d67f4a11 |
| 24-May-2020 |
Sascha Wildner <saw@online.de> |
libutil/libc: Move fparseln(3) from libutil to libc.
|
#
44aab0b9 |
| 23-May-2020 |
Sascha Wildner <saw@online.de> |
include/xlocale: Expose xlocale prototypes also upon wrong #include order.
The correct order to expose xlocale prototypes is for example:
#include <stdio.h> #include <xlocale.h>
This commit fixes
include/xlocale: Expose xlocale prototypes also upon wrong #include order.
The correct order to expose xlocale prototypes is for example:
#include <stdio.h> #include <xlocale.h>
This commit fixes the two cases where we didn't accept the reverse order. FreeBSD's commit msg says that some ports use the wrong order.
Based-on: FreeBSD's r233600 Reported-by: zrj
show more ...
|
Revision tags: v5.8.1, v5.8.0, v5.9.0, v5.8.0rc1, v5.6.3 |
|
#
086b156c |
| 09-Sep-2019 |
Sascha Wildner <saw@online.de> |
libc: Add gets_s(3) from ISO/IEC TR 24731-1.
For more information see the Technical Report (drafts of it are on the web) or e.g. http://en.cppreference.com/w/c/io/gets.
This also adds set_constrain
libc: Add gets_s(3) from ISO/IEC TR 24731-1.
For more information see the Technical Report (drafts of it are on the web) or e.g. http://en.cppreference.com/w/c/io/gets.
This also adds set_constraint_handler_s(), abort_handler_s(), ignore_handler_s(), the RSIZE_MAX define, and the types rsize_t, errno_t and constraint_handler_t.
Visibility is restricted to our default environment by default, but can be enabled by defining __STDC_WANT_LIB_EXT1__ to 1, per the TR.
While here, put gets()'s documentation into a manual page of its own with a note that it is depracated. We'll likely remove it from libc too at a later point in time.
Requested-by: zrj Taken-from: FreeBSD (with some adjustments)
show more ...
|
Revision tags: v5.6.2, v5.6.1, v5.6.0, v5.6.0rc1, v5.7.0, v5.4.3, v5.4.2 |
|
#
ceae3ef4 |
| 07-Apr-2019 |
Sascha Wildner <saw@online.de> |
libc/libpthread: Add guard to fix redundant __isthreaded declarations.
|
Revision tags: v5.4.1, v5.4.0, v5.5.0, v5.4.0rc1 |
|
#
f85b95dd |
| 20-Sep-2018 |
Sascha Wildner <saw@online.de> |
In several standard headers, harmonize checks for legacy defines etc.
When something goes away in a certain issue of the standard, always check with < $standard, not <= $previous_standard. Also, uni
In several standard headers, harmonize checks for legacy defines etc.
When something goes away in a certain issue of the standard, always check with < $standard, not <= $previous_standard. Also, uniformly check for __XSI_VISIBLE or __POSIX_VISIBLE being > 0 in these cases.
While here, fix a small nit in <sys/wait.h>: wait3() was removed from Issue 6, but the requirement to define the rusage structure was removed from Issue 7.
show more ...
|
Revision tags: v5.2.2, v5.2.1, v5.2.0, v5.3.0, v5.2.0rc |
|
#
dd138a0c |
| 03-Mar-2018 |
Sascha Wildner <saw@online.de> |
Remove some really old portability hacks that should no longer be needed.
This no longer declares ftruncate()/lseek()/mmap() and truncate() in either <stdio.h> or <sys/types.h>. 20 years after FreeB
Remove some really old portability hacks that should no longer be needed.
This no longer declares ftruncate()/lseek()/mmap() and truncate() in either <stdio.h> or <sys/types.h>. 20 years after FreeBSD added it (in r24896) we should be over it. What's left, we'll fix better.
show more ...
|
#
c32cc5a0 |
| 19-Jan-2018 |
Sascha Wildner <saw@online.de> |
Provide __{printf,scanf,strfmon,strftime}like() for builtin functions too.
We want our formats checked in -fno-builtin builds as well.
|
Revision tags: v5.0.2, v5.0.1, v5.0.0, v5.0.0rc2, v5.1.0, v5.0.0rc1, v4.8.1 |
|
#
f3009115 |
| 24-Apr-2017 |
Sascha Wildner <saw@online.de> |
<fcntl.h>: Add some missing defines (required by POSIX).
SEEK_SET S_ISUID S_IRWXU S_IRWXG S_IRWXO SEEK_CUR S_ISGID S_IRUSR S_IRGRP S_IROTH SEEK_END S_IWUSR S_I
<fcntl.h>: Add some missing defines (required by POSIX).
SEEK_SET S_ISUID S_IRWXU S_IRWXG S_IRWXO SEEK_CUR S_ISGID S_IRUSR S_IRGRP S_IROTH SEEK_END S_IWUSR S_IWGRP S_IWOTH S_IXUSR S_IXGRP S_IXOTH
Adjust <stat.h>, <stdio.h> and <unistd.h> accordingly.
See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fcntl.h.html
show more ...
|
#
58696e28 |
| 14-Apr-2017 |
Sascha Wildner <saw@online.de> |
<stdio.h>: ftello() and fseeko() were in SUSv2, so extend visibility.
See:
http://pubs.opengroup.org/onlinepubs/007908799/xsh/fseek.html http://pubs.opengroup.org/onlinepubs/007908799/xsh/ftell.html
|
Revision tags: v4.8.0, v4.6.2, v4.9.0, v4.8.0rc, v4.6.1 |
|
#
f30cf7c7 |
| 04-Oct-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
<stdio.h>: Always inline functions.
These functions were intended to be the preprocessor macros, so do not allow compiler to assume that those might not be inlined. Happens on LTO builds were compil
<stdio.h>: Always inline functions.
These functions were intended to be the preprocessor macros, so do not allow compiler to assume that those might not be inlined. Happens on LTO builds were compiler sees more of a global picture.
While there, do the same to rune helpers in <ctype.h> too.
show more ...
|
#
dd9d57c0 |
| 20-Aug-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
<strio.h>: Drop ancient guards from getline() and dprintf().
Since FreeBSD in r303524 removed these guards and most of freebsd-ports are fixed, it is finally safe to do the same on DragonFly and dpo
<strio.h>: Drop ancient guards from getline() and dprintf().
Since FreeBSD in r303524 removed these guards and most of freebsd-ports are fixed, it is finally safe to do the same on DragonFly and dports.
While there, update manpages and add fix in vfprintf.c too.
Taken-from: FreeBSD
show more ...
|
#
96145268 |
| 20-Aug-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
<wchar.h>: Fix namespace pollution from <stdio.h>
Quite cleaner way. TODO: FILE should be only visible SUSv2 and POSIX.1-2001
|
#
d4a1c427 |
| 20-Aug-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
<stdio.h>: Fix va_list visibility.
Looks like it should be visible only at POSIX.1-2008. SUSv2 requirement to provide va_list definition makes is harder. While there, mention __gnuc_va_list in comme
<stdio.h>: Fix va_list visibility.
Looks like it should be visible only at POSIX.1-2008. SUSv2 requirement to provide va_list definition makes is harder. While there, mention __gnuc_va_list in comment and add inclusion of <stdarg.h> for non __GNUC__ case to prevent dports gcc "fixing" this header.
show more ...
|
Revision tags: v4.6.0, v4.6.0rc2, v4.6.0rc, v4.7.0 |
|
#
513b6430 |
| 30-Jun-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
<stdio.h>: Hide macros that break global :: ns in cxx.
Avoid expanding macros ::(!__isthreaded ?...) to poorly written ports that assume some specific libc/stdio.h implementation. Will help with pa
<stdio.h>: Hide macros that break global :: ns in cxx.
Avoid expanding macros ::(!__isthreaded ?...) to poorly written ports that assume some specific libc/stdio.h implementation. Will help with patching efforts to have less +<cstdio> patches in dports using c++ codes.
show more ...
|
#
46d47fba |
| 22-May-2016 |
Sascha Wildner <saw@online.de> |
Revert "<stdio.h>/<wchar.h>: Reduce namespace pollution in <wchar.h>."
This reverts commit 69e6516956c27905b4070759b0c597e6ab8b1ba5.
It looks like something in our C++ headers causes breakage in so
Revert "<stdio.h>/<wchar.h>: Reduce namespace pollution in <wchar.h>."
This reverts commit 69e6516956c27905b4070759b0c597e6ab8b1ba5.
It looks like something in our C++ headers causes breakage in some dports when <wchar.h> doesn't also include <stdio.h>, specifically, including <iostream> does not seem to bring in <stdio.h> automatically, as it is on FreeBSD and Linux.
Since it is legal (per standard) for <wchar.h> to also provide the symbols of <stdio.h>, revert this change for now.
show more ...
|
#
69e65169 |
| 04-May-2016 |
Sascha Wildner <saw@online.de> |
<stdio.h>/<wchar.h>: Reduce namespace pollution in <wchar.h>.
Instead of including the whole of <stdio.h> in <wchar.h>, just define FILE there too, which is all it needs.
Based on FreeBSD's similar
<stdio.h>/<wchar.h>: Reduce namespace pollution in <wchar.h>.
Instead of including the whole of <stdio.h> in <wchar.h>, just define FILE there too, which is all it needs.
Based on FreeBSD's similar definitions.
show more ...
|
Revision tags: v4.4.3, v4.4.2 |
|
#
bc7a8293 |
| 25-Jan-2016 |
zrj <rimvydas.jasinskas@gmail.com> |
Remove advertising header from include/
Correct BSD License clause numbering from 1-2-4 to 1-2-3.
|
Revision tags: v4.4.1, v4.4.0, v4.5.0, v4.4.0rc |
|
#
72881177 |
| 08-Sep-2015 |
Sascha Wildner <saw@online.de> |
<stdio.h>: Sort some prototypes.
|
Revision tags: v4.2.4, v4.3.1, v4.2.3, v4.2.1, v4.2.0, v4.0.6, v4.3.0, v4.2.0rc, v4.0.5 |
|
#
67ac6317 |
| 19-Mar-2015 |
Sascha Wildner <saw@online.de> |
<stdio.h>: Adjust comment about UT_NAMESIZE.
|
Revision tags: v4.0.4, v4.0.3 |
|
#
05eaf8a2 |
| 03-Jan-2015 |
Sascha Wildner <saw@online.de> |
Remove redundant __BSD_VISIBLE checks in various header files.
When __BSD_VISIBLE is set to 1, we also set (in <sys/cdefs.h>):
#define __POSIX_VISIBLE 200809 #define __XSI_VISIBLE 700 #define __I
Remove redundant __BSD_VISIBLE checks in various header files.
When __BSD_VISIBLE is set to 1, we also set (in <sys/cdefs.h>):
#define __POSIX_VISIBLE 200809 #define __XSI_VISIBLE 700 #define __ISO_C_VISIBLE 2011
show more ...
|
Revision tags: v4.0.2, v4.0.1, v4.0.0, v4.0.0rc3, v4.0.0rc2, v4.0.0rc, v4.1.0, v3.8.2, v3.8.1, v3.6.3, v3.8.0, v3.8.0rc2, v3.9.0, v3.8.0rc, v3.6.2, v3.6.1, v3.6.0, v3.7.1, v3.6.0rc, v3.4.3, v3.4.2, v3.4.1, v3.4.0, v3.4.0rc, v3.5.0, v3.2.2, v3.2.1, v3.2.0, v3.3.0, v3.0.3 |
|
#
6755c000 |
| 15-Jun-2012 |
Matthew Dillon <dillon@apollo.backplane.com> |
Merge branches 'hammer2' and 'master' of ssh://crater.dragonflybsd.org/repository/git/dragonfly into hammer2
|