History log of /haiku/headers/posix/stdio.h
Revision Date Author Comments
# 9a7acbdb 25-Jan-2021 Jérôme Duval <jerome.duval@gmail.com>

posix: protect EOF being parsed as operator and 1

see https://github.com/haikuports/haikuports/blob/7d095c7453842db989de538921ff9e145114bc9b/dev-libs/jsoncpp/patches/jsoncpp-1.9.4.patchset

Change-Id: Iaedb67eb51e86cbc5b73a21a86b6b0b6b70209b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3679
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# b05d6f0a 05-Nov-2020 Jérôme Duval <jerome.duval@gmail.com>

POSIX: asprintf and vasprintf are BSD/GNU extensions

fix #16259

Change-Id: Ia16bb6e1944b87b25d1a940bbdaaf6e236db1abf
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3381
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# db9d2a6f 02-Oct-2020 Jérôme Duval <jerome.duval@gmail.com>

POSIX: add dprintf

Change-Id: I577d5283a9be04924a8dd05c3be3969b41da60db
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3282
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# d2f7af0e 04-Jan-2020 Augustin Cavalier <waddlesplash@gmail.com>

Revert "deprecate gets and tmpnam"

This reverts commit 92e9211d7b2d46e300ac6e3db9570daa26811a70.

It broke the build, and apparently cannot be fixed until GCC
has been patched.


# 92e9211d 31-Dec-2019 Adrien Destugues <pulkomandy@pulkomandy.tk>

deprecate gets and tmpnam

For #15515

As mentionned in the ticket, we may also want to hide the symbols
altogether from libroot for newer API/ABI versions, unless we still want
to provide C89/C99/C++98/C++11 compatibility, in which case we still
need them around.

Change-Id: I0ee267fb6c4c2f4bae9b1ba6f68e2bcefc399a7f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2061
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 54656b39 08-May-2015 François Revol <revol@free.fr>

stdio.h: declare fcloseall() GNU extension

Since libroot already exports it and I've found some code using it.


# 12533060 19-Nov-2014 François Revol <revol@free.fr>

stdio.h: add missing typedefs

I should sleep more and build more :D


# e1f303c5 19-Nov-2014 François Revol <revol@free.fr>

Add fopencookie() to stdio.h

We already export it in libroot, and libassuan seems to require it.


# 92bd26ce 09-Mar-2014 Jonathan Schleifer <js@webkeks.org>

stdio.h: Add missing *_unlocked declarations

Configure scripts would find the symbols and thus use them and assume
our headers declare them.

This fixes building gcc_bootstrap.


# 173f54f1 19-Jul-2012 Matt Madia <mattmadia@gmail.com>

Updated copyright in headers. No functional change.


# 3d01f69f 10-Aug-2011 Scott McCreary <scottmc2@gmail.com>

Fixed open_memstream(), buf was void, opengroup.org shows that it should be char. Fixes #7905.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fae8733 03-Nov-2010 Scott McCreary <scottmc2@gmail.com>

Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80c5b9b5 03-Oct-2010 Axel Dörfler <axeld@pinc-software.de>

* Added prototypes for getline(), and getdelim(). This fixes bug #6646.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38880 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d08ac92 10-Aug-2010 François Revol <revol@free.fr>

Add the fmemopen() and open_memstream() POSIX extensions to libroot. Those can be used to build FILE pointers to in-memory buffers, a possible use would be to make resources available to ported applications. Untested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ec87114 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Change the tempnam() prototype in stdio.h to match its implementation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb2500da 26-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Added missing AT_EACCESS.
* Implemented renameat(), faccessat(), fchownat(), fchmodat(), and mkfifoat().
* Added stub for mknodat().
* The kernel backend for faccessat() does not yet differentiate between
effective and real user/group IDs, though.
* Removed B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT, as we now support everything
(more or less). This also closes ticket #4928.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 31a41b60 29-Jul-2009 Oliver Tappe <zooey@hirschkaefer.de>

Fixing #3460:
* resolved a couple of redundant function declaration in our public headers
* adjusted zipomatic accordingly - everything else built fine

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64ccb6b5 26-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Synced the different definitions of BUFSIZ with the internal one. What a mess...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3a39905b 31-Oct-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented __freading(), __fpurge(), and fpurge().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9320128 10-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber:
Replaced single-line comments by multi-line comments for ANSI C
compliance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 404a0fea 16-Mar-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Second stab at reorganizing standard/gcc headers. This time it not only
builds on Linux with gcc 2 and 4, but the images do even run. :-) Not
tested on BeOS.

* Removed stddef.h and stdarg.h. They are provided by the compiler.
* Adjusted size_t.h, wchar_t.h, and wchar.h accordingly.
* Made stdio.h avoid gcc 2.95.3's fixincludes hack stdio_va_list
* Added gcc 2.95.3 headers to the repository. They are used instead of
the headers of the gcc 2.95.3's we use to compile Haiku with. Should
avoid build problems with the BeOS native compiler.

For sake of personal recreation you can rebuild the cross gcc 2.95.3,
but the only thing that changed is its header directory
(lib/gcc-lib/.../include), which isn't used anymore. Replacing it with
headers/build/gcc-2.95.3 should have the same effect as rebuilding, BTW.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e16287b3 29-Jan-2005 Jérôme Duval <korli@users.berlios.de>

added setbuf, setvbuf, setbuffer and setlinebuf prototypes
implemented by libio


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f509259 10-Nov-2004 Oliver Tappe <zooey@hirschkaefer.de>

- the standard says that cuserid() should be declared instead of unistd.h,
and libstdc++-build agrees (fails otherwise).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9904 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 10d0c897 02-May-2004 Axel Dörfler <axeld@pinc-software.de>

Added a new and BeOS compatible public stdio.h header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7367 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 54656b39c6f0f8c86d565baf18d8401d3d26ebca 08-May-2015 François Revol <revol@free.fr>

stdio.h: declare fcloseall() GNU extension

Since libroot already exports it and I've found some code using it.


# 12533060d0b6419b7636374d71411f41effc1cbe 19-Nov-2014 François Revol <revol@free.fr>

stdio.h: add missing typedefs

I should sleep more and build more :D


# e1f303c5ec1eb8240a61ea0ae07016ca4c6870c8 19-Nov-2014 François Revol <revol@free.fr>

Add fopencookie() to stdio.h

We already export it in libroot, and libassuan seems to require it.


# 92bd26ce8e7fba1773345d3f6acbc12cc96c01f9 09-Mar-2014 Jonathan Schleifer <js@webkeks.org>

stdio.h: Add missing *_unlocked declarations

Configure scripts would find the symbols and thus use them and assume
our headers declare them.

This fixes building gcc_bootstrap.


# 173f54f1473bd6a6511c5fc6dc899c91fb8dd667 19-Jul-2012 Matt Madia <mattmadia@gmail.com>

Updated copyright in headers. No functional change.


# 3d01f69f9ecf048c2fc214dcaa0511081eaf51d8 10-Aug-2011 Scott McCreary <scottmc2@gmail.com>

Fixed open_memstream(), buf was void, opengroup.org shows that it should be char. Fixes #7905.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42618 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fae873352b02792db93f721c1a2ff6b240c8ecc 03-Nov-2010 Scott McCreary <scottmc2@gmail.com>

Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 80c5b9b5eeb09230a6c35f0aec9ba7ef3ace08b7 03-Oct-2010 Axel Dörfler <axeld@pinc-software.de>

* Added prototypes for getline(), and getdelim(). This fixes bug #6646.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38880 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d08ac923727fcd91dc7ee07fbadf09de4abeb2f 10-Aug-2010 François Revol <revol@free.fr>

Add the fmemopen() and open_memstream() POSIX extensions to libroot. Those can be used to build FILE pointers to in-memory buffers, a possible use would be to make resources available to ported applications. Untested.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37997 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ec871140db4f137b7b80c26e7d33bc54a5a43a4 28-Jun-2010 Wim van der Meer <wpjvandermeer@gmail.com>

Change the tempnam() prototype in stdio.h to match its implementation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37292 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fb2500da15e8c574cbb343b8fc536d7094357f54 26-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Added missing AT_EACCESS.
* Implemented renameat(), faccessat(), fchownat(), fchmodat(), and mkfifoat().
* Added stub for mknodat().
* The kernel backend for faccessat() does not yet differentiate between
effective and real user/group IDs, though.
* Removed B_ENABLE_INCOMPLETE_POSIX_AT_SUPPORT, as we now support everything
(more or less). This also closes ticket #4928.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 31a41b605df6d6edf691fe3c620ee79366b94044 29-Jul-2009 Oliver Tappe <zooey@hirschkaefer.de>

Fixing #3460:
* resolved a couple of redundant function declaration in our public headers
* adjusted zipomatic accordingly - everything else built fine

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31938 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 64ccb6b58a3cfcd17feabfc4e88bb0819fef0cc1 26-Jul-2009 Ingo Weinhold <ingo_weinhold@gmx.de>

Synced the different definitions of BUFSIZ with the internal one. What a mess...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3a39905b59f5938a73cc50e1ba335a587358828d 31-Oct-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Implemented __freading(), __fpurge(), and fpurge().


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28397 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b93201281504cee31f4186f7c6548815940c576e 10-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber:
Replaced single-line comments by multi-line comments for ANSI C
compliance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 404a0fea4653b894fabf4d5fee8e73df7bf84e75 16-Mar-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Second stab at reorganizing standard/gcc headers. This time it not only
builds on Linux with gcc 2 and 4, but the images do even run. :-) Not
tested on BeOS.

* Removed stddef.h and stdarg.h. They are provided by the compiler.
* Adjusted size_t.h, wchar_t.h, and wchar.h accordingly.
* Made stdio.h avoid gcc 2.95.3's fixincludes hack stdio_va_list
* Added gcc 2.95.3 headers to the repository. They are used instead of
the headers of the gcc 2.95.3's we use to compile Haiku with. Should
avoid build problems with the BeOS native compiler.

For sake of personal recreation you can rebuild the cross gcc 2.95.3,
but the only thing that changed is its header directory
(lib/gcc-lib/.../include), which isn't used anymore. Replacing it with
headers/build/gcc-2.95.3 should have the same effect as rebuilding, BTW.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24413 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e16287b33eee3990a208ac9ecdd08fa02d96d0bc 29-Jan-2005 Jérôme Duval <korli@users.berlios.de>

added setbuf, setvbuf, setbuffer and setlinebuf prototypes
implemented by libio


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11119 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f50925911d14d04fd1ff3b93fb48aea6aa3acd7 10-Nov-2004 Oliver Tappe <zooey@hirschkaefer.de>

- the standard says that cuserid() should be declared instead of unistd.h,
and libstdc++-build agrees (fails otherwise).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9904 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 10d0c89786d3a42de04f1d983eb3a3e5b448ad9e 02-May-2004 Axel Dörfler <axeld@pinc-software.de>

Added a new and BeOS compatible public stdio.h header.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7367 a95241bf-73f2-0310-859d-f6bbb57e9c96