#
1e541d31 |
|
16-Nov-2021 |
Augustin Cavalier <waddlesplash@gmail.com> |
stdlib.h: Remove guards around aligned_alloc. While FreeBSD and glibc feature-guard it, they also feature-guard a lot of other things that we don't, and musl does not guard it, so it seems more than safe enough to leave it unguarded. Fixes compilation errors with GCC 11. (The other possible solution was including features.h in more places, but this seems simpler.)
|
#
48eb7d98 |
|
30-Sep-2021 |
Fredrik Holmqvist <fredrik.holmqvist@gmail.com> |
Allow gcc to know result is aligned Someone on the internet found out gcc only understand posix_memalign. The alloc_align attribute may be applied to a function that returns a pointer and takes at least one argument of an integer or enumerated type. It indicates that the returned pointer is aligned on a boundary given by the function argument at position. Change-Id: I4b0af6ef3020da1fb460652117286193d5d72f1e Reviewed-on: https://review.haiku-os.org/c/haiku/+/4514 Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
6878792a |
|
31-Oct-2020 |
Jérôme Duval <jerome.duval@gmail.com> |
C11: add aligned_alloc() Change-Id: If648c0e27ed946874d393e8e33a4548b70c8ecdb Reviewed-on: https://review.haiku-os.org/c/haiku/+/3377 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
d0e1eb7a |
|
03-May-2020 |
Adrien Destugues <pulkomandy@pulkomandy.tk> |
mark abort() function as noreturn. It was not specified as such before C11, but that's only because there was no C standard way to do it until then. Fixes #15955. Change-Id: Ied7b7fd94988ed7724460917aebc859b74eaa585 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2558 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
e1a822a9 |
|
18-Jul-2019 |
CodeforEvolution <secundaja@gmail.com> |
Conform putenv to POSIX standards Discovered this while working on VLC, checked with other online sources too. Change-Id: I114c20babda0ff0e90d0eeee299d8483700166bd Reviewed-on: https://review.haiku-os.org/c/1628 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
03c14d29 |
|
14-Jun-2019 |
Augustin Cavalier <waddlesplash@gmail.com> |
stdlib.h: Add noreturn attribute to exit and _Exit. Fixes #15110.
|
#
a5f30bea |
|
13-Dec-2014 |
Puck Meerburg <puck@puckipedia.nl> |
Fix #7008: Add a64l and l64a from glibc, and add some missing definitions in wchar.h and stdlib.h Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
173f54f1 |
|
19-Jul-2012 |
Matt Madia <mattmadia@gmail.com> |
Updated copyright in headers. No functional change.
|
#
e0eb1d38 |
|
22-Nov-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Let MB_CUR_LEN lookup the actual value. * instead of yielding 1, MB_CUR_LEN now looks up the correct value in the ctype data provided by the locale backend
|
#
917c4aeb |
|
27-Nov-2010 |
François Revol <revol@free.fr> |
ISO C and POSIX mandate _Exit() in stdlib.h to be the same as _exit(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39665 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
|
#
e86eb77b |
|
18-Sep-2010 |
Scott McCreary <scottmc2@gmail.com> |
Patch from kaliber to a the glibc strtold implentation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38710 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
338ddd83 |
|
14-Sep-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Closing #6499: * add missing getsubopt() POSIX-function * added corresponding test git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38650 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
|
#
51c5e9f6 |
|
29-Jul-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
fixing #4031: * added declaration of strtof() to stdlib.h, as we now provide it alongside with strtod() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31926 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d0a06a09 |
|
25-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Add missing mkdtemp prototype. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29011 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cc6c784a |
|
01-Aug-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Sean C. Farley made me aware that some of the possible solutions to clear the environment would crash on Haiku. Added a small test application that just checks every one of those. * Fixed env locking (in userland, you better check against B_INTERRUPTED). * Made our code safe against an environ of NULL. * There is now an additional sManagedEnviron that points to the environment our code actually managed; whenever an application overrides environ, we'll get aware of it with the next *env() function invocation, and will handle it adequately. * Added non-POSIX clearenv() function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26719 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb913b19 |
|
24-Apr-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added POSIX functions posix_openpt(), grantpt(), ptsname(), and unlockpt(), which provide a portable way of opening a pty. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25134 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
392eb518 |
|
06-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Added gcvt() implementation - this fixes bug #1757. * Added gcvt(), ecvt(), and fcvt() prototypes to stdlib.h - they are all marked legacy, but are still part of the POSIX standard, so we might want to implement them if the need arises. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23896 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dfd5242e |
|
16-Aug-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Even though Korli beat me, I've updated the posix_memalign() function to be more standards compliant: * it now checks the alignment is a multiple of 4 (needs to be changed for 64 bit architectures) * it no longer sets errno. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21975 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bf7beb50 |
|
16-Aug-2007 |
Jérôme Duval <korli@users.berlios.de> |
added posix_memalign() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21974 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
558885f3 |
|
06-Apr-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17024 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a34963f3 |
|
16-Mar-2006 |
Jérôme Duval <korli@users.berlios.de> |
added posix_gnu_string added more posix definitions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7626aaf1 |
|
01-Aug-2003 |
shatty <shatty@nowhere.fake> |
fixed unsetenv prototype to match posix standard git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4194 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f8fdd89f |
|
19-Apr-2003 |
Axel Dörfler <axeld@pinc-software.de> |
Some header work to make it more posix compliant. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3080 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
88222a75 |
|
25-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
"template" is obviously a reserved word in C++... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1664 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
617c98ba |
|
25-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Made stdlib.h almost compatible to BeOS. Removed deprecated strtoq() functions (they are not even part of BeOS, so why should we include this cruft?). Added prototypes for llabs(), and lldiv() - added lldiv_t to div_t.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1661 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2917ddc3 |
|
25-Oct-2002 |
Daniel Reinhold <danielre@nowhere.fake> |
replaced stdlib.h in 'headers/private/kernel' with a better one in the more standard location 'headers/posix' git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a5f30beaadfb2f99c44ba85db889c20a4d22f89b |
|
13-Dec-2014 |
Puck Meerburg <puck@puckipedia.nl> |
Fix #7008: Add a64l and l64a from glibc, and add some missing definitions in wchar.h and stdlib.h Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
173f54f1473bd6a6511c5fc6dc899c91fb8dd667 |
|
19-Jul-2012 |
Matt Madia <mattmadia@gmail.com> |
Updated copyright in headers. No functional change.
|
#
e0eb1d38c4e11e7d728ea2de0a374a4e30c04278 |
|
22-Nov-2011 |
Oliver Tappe <zooey@hirschkaefer.de> |
Let MB_CUR_LEN lookup the actual value. * instead of yielding 1, MB_CUR_LEN now looks up the correct value in the ctype data provided by the locale backend
|
#
917c4aeb8db75492ad8aa0b2c62ca47c905a74fe |
|
27-Nov-2010 |
François Revol <revol@free.fr> |
ISO C and POSIX mandate _Exit() in stdlib.h to be the same as _exit(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39665 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
|
#
e86eb77b1b581dd11a0e14b9a6835068fee20f5d |
|
18-Sep-2010 |
Scott McCreary <scottmc2@gmail.com> |
Patch from kaliber to a the glibc strtold implentation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38710 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
338ddd836f8bc1473d6911e931d31e2253872a3b |
|
14-Sep-2010 |
Oliver Tappe <zooey@hirschkaefer.de> |
Closing #6499: * add missing getsubopt() POSIX-function * added corresponding test git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38650 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
|
#
51c5e9f68500a216ca6f56642cf5b328f391b244 |
|
29-Jul-2009 |
Oliver Tappe <zooey@hirschkaefer.de> |
fixing #4031: * added declaration of strtof() to stdlib.h, as we now provide it alongside with strtod() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31926 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
d0a06a099556da281f607362469d1e7a73d0d7f9 |
|
25-Jan-2009 |
Michael Lotz <mmlr@mlotz.ch> |
Add missing mkdtemp prototype. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29011 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
cc6c784ae75a2aac7f5f5acb649d8eb9d9863271 |
|
01-Aug-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Sean C. Farley made me aware that some of the possible solutions to clear the environment would crash on Haiku. Added a small test application that just checks every one of those. * Fixed env locking (in userland, you better check against B_INTERRUPTED). * Made our code safe against an environ of NULL. * There is now an additional sManagedEnviron that points to the environment our code actually managed; whenever an application overrides environ, we'll get aware of it with the next *env() function invocation, and will handle it adequately. * Added non-POSIX clearenv() function. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26719 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
fb913b19be6ad0e6eef4ee828ec3f3e27d33c05d |
|
24-Apr-2008 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added POSIX functions posix_openpt(), grantpt(), ptsname(), and unlockpt(), which provide a portable way of opening a pty. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25134 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
392eb518d5e6dc5e0e7bb5c24a399c453c5a7b64 |
|
06-Feb-2008 |
Axel Dörfler <axeld@pinc-software.de> |
* Added gcvt() implementation - this fixes bug #1757. * Added gcvt(), ecvt(), and fcvt() prototypes to stdlib.h - they are all marked legacy, but are still part of the POSIX standard, so we might want to implement them if the need arises. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23896 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
dfd5242e7f6ce0a7af67e5d3e7ff2927c7acdcff |
|
16-Aug-2007 |
Axel Dörfler <axeld@pinc-software.de> |
Even though Korli beat me, I've updated the posix_memalign() function to be more standards compliant: * it now checks the alignment is a multiple of 4 (needs to be changed for 64 bit architectures) * it no longer sets errno. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21975 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
bf7beb500cfb32d247df441d59749593a634818a |
|
16-Aug-2007 |
Jérôme Duval <korli@users.berlios.de> |
added posix_memalign() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21974 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
558885f3950764bb878ec8666394096a6a012009 |
|
06-Apr-2006 |
Axel Dörfler <axeld@pinc-software.de> |
Minor cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17024 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
a34963f388a39217b340f32aae95bfd807056a40 |
|
16-Mar-2006 |
Jérôme Duval <korli@users.berlios.de> |
added posix_gnu_string added more posix definitions git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16813 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
7626aaf1a51265a71f51a2e04bd3a0dbf32a1dec |
|
01-Aug-2003 |
shatty <shatty@nowhere.fake> |
fixed unsetenv prototype to match posix standard git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4194 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
f8fdd89ffbfcbc2df77bc87e170174ecea20a8ce |
|
19-Apr-2003 |
Axel Dörfler <axeld@pinc-software.de> |
Some header work to make it more posix compliant. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3080 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
88222a7539fe0de33b28370273aa9d01d33728c1 |
|
25-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
"template" is obviously a reserved word in C++... git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1664 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
617c98ba685074a148c554e0354b805b10995341 |
|
25-Oct-2002 |
Axel Dörfler <axeld@pinc-software.de> |
Made stdlib.h almost compatible to BeOS. Removed deprecated strtoq() functions (they are not even part of BeOS, so why should we include this cruft?). Added prototypes for llabs(), and lldiv() - added lldiv_t to div_t.h. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1661 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
2917ddc323484867df748335880165dc8969ad4d |
|
25-Oct-2002 |
Daniel Reinhold <danielre@nowhere.fake> |
replaced stdlib.h in 'headers/private/kernel' with a better one in the more standard location 'headers/posix' git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1649 a95241bf-73f2-0310-859d-f6bbb57e9c96
|