History log of /haiku/headers/posix/string.h
Revision Date Author Comments
# 15a3f4c5 28-Nov-2023 Augustin Cavalier <waddlesplash@gmail.com>

libroot: Add stpncpy.

Imported from musl.

It is in POSIX.1-2017.


# d338200e 30-May-2022 Trung Nguyen <trungnt282910@gmail.com>

libs/posix: Implemented new locale functions

Implemented the missing POSIX functions in <locale.h>:
newlocale, duplocale, uselocale, and freelocale, and also
provided missing type definitions for <locale.h>.

Implemented missing POSIX locale-based function variants.

Modified LocaleBackend so that it could support thread-local
locales.

Some glibc-like locale-related variables supporting
ctype and printf family of functions have also been updated
to reflect the thread-local variables present in the latest
glibc sources.

As there have been some modifications to global symbols
in libroot, libroot_stubs.c has been regenerated.

Bug: #17168
Change-Id: Ibf296c58c47d42d1d1dfb2ce64042442f2679431
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5351
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# b9c8e3de 29-Oct-2014 Oliver Tappe <zooey@hirschkaefer.de>

string.h: include strings.h for compatibility.

* Partly reverting hrev47655, as the moved declarations are expected
by many ports to be accessable via string.h.
Following standards is a good thing in general, but not if it causes
more problems than it helps ...


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 2f32fd1d 07-Jun-2014 Jérôme Duval <jerome.duval@gmail.com>

wchar.h & string.h: use _GNU_SOURCE instead of __USE_GNU.


# 76509315 01-Oct-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename parameters to avoid compile error

* warning: declaration of `signal' shadows global declaration


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

Updated copyright in headers. No functional change.


# 90b92dab 04-Jan-2012 Jérôme Duval <jerome.duval@gmail.com>

added memrchr to string.h, guarded by __USE_GNU. Also guards strchrnul.

Original patch by Dario Casalinuovo.
BUG: Ticket #8265


# 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


# 18f27bf1 18-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Added POSIX function strndup(), closing ticket #3309.


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


# 645fa87a 11-Sep-2008 Jérôme Duval <korli@users.berlios.de>

added lsearch and lfind
remove unknown infnanf and strtcopy functions


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


# 765ae3a7 02-Jul-2008 Jérôme Duval <korli@users.berlios.de>

Applied patch from Mika Lindqvist: This patch implements both strlwr() and strupr() functions in libroot and includes strupr() in kernel build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26226 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


# 2754fa87 22-Mar-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

bcopy() is supposed to be overlap-save.


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


# 4d9b4412 30-Oct-2005 Axel Dörfler <axeld@pinc-software.de>

Added memccpy() - not there in BeOS, but part of the POSIX specs.
Contributed by Alexander Deynichenko.


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


# 42848b09 12-Oct-2005 Jérôme Duval <korli@users.berlios.de>

added index and rindex to libroot.so
R5 ftp and telnet commands now run on Haiku


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


# 5141596a 07-Mar-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added ffs().


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


# 283c9348 03-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Cleaned up the header a bit, added macro for bcmp().


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


# f175a63e 05-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

Added prototype for strerror_r().


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


# 77c44902 15-Aug-2003 shatty <shatty@nowhere.fake>

for compatibility with beos r5 and gcc configuration, uncomment strsignal


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


# 6eb83f74 03-May-2003 Axel Dörfler <axeld@pinc-software.de>

Added prototype for the GNU strchrnul() call.


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


# 350117ec 31-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Removed the "const" in the return value of strerror() to be POSIX compliant.


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


# 8edc4bb4 22-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Added a very preliminary time.h
Removed the bzero()/bcopy() prototypes, and replaced them with macros - we
should decide what to do with them.


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


# 0c9ee870 17-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Added our string.h headers (the one in private/kernel will be removed now)


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


# b9c8e3de1b3f0c9b87b8bbb6bf9d26351e17c8c8 29-Oct-2014 Oliver Tappe <zooey@hirschkaefer.de>

string.h: include strings.h for compatibility.

* Partly reverting hrev47655, as the moved declarations are expected
by many ports to be accessable via string.h.
Following standards is a good thing in general, but not if it causes
more problems than it helps ...


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 2f32fd1ddea249d0b18e4d87fb8c93e66a33e373 07-Jun-2014 Jérôme Duval <jerome.duval@gmail.com>

wchar.h & string.h: use _GNU_SOURCE instead of __USE_GNU.


# 765093157245cecdde3aaa52b013021a33f646eb 01-Oct-2013 Adrien Destugues <pulkomandy@pulkomandy.tk>

Rename parameters to avoid compile error

* warning: declaration of `signal' shadows global declaration


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

Updated copyright in headers. No functional change.


# 90b92dab5c83442b688ec80b7c63497ffce9da02 04-Jan-2012 Jérôme Duval <jerome.duval@gmail.com>

added memrchr to string.h, guarded by __USE_GNU. Also guards strchrnul.

Original patch by Dario Casalinuovo.
BUG: Ticket #8265


# 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


# 18f27bf19f272f703b8be28c4ceeff837fb6c0ae 18-Jan-2009 Axel Dörfler <axeld@pinc-software.de>

* Added POSIX function strndup(), closing ticket #3309.


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


# 645fa87a214857d8cd19912161929abf8c0faad4 11-Sep-2008 Jérôme Duval <korli@users.berlios.de>

added lsearch and lfind
remove unknown infnanf and strtcopy functions


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


# 765ae3a785157ae7d8aa018280139122a7ec5443 02-Jul-2008 Jérôme Duval <korli@users.berlios.de>

Applied patch from Mika Lindqvist: This patch implements both strlwr() and strupr() functions in libroot and includes strupr() in kernel build.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26226 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


# 2754fa8772d477d2da135040411e04c5e614145e 22-Mar-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

bcopy() is supposed to be overlap-save.


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


# 4d9b4412bd77400f0a00736d9aaf12adbf6d447d 30-Oct-2005 Axel Dörfler <axeld@pinc-software.de>

Added memccpy() - not there in BeOS, but part of the POSIX specs.
Contributed by Alexander Deynichenko.


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


# 42848b0907cbb24ad64277a0a498b98e29b64334 12-Oct-2005 Jérôme Duval <korli@users.berlios.de>

added index and rindex to libroot.so
R5 ftp and telnet commands now run on Haiku


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


# 5141596a694fa5189522351d0684483910b88670 07-Mar-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Added ffs().


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


# 283c934877d28dd4c9763a92e2bb5a1701e3fb04 03-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Cleaned up the header a bit, added macro for bcmp().


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


# f175a63eaa689585e6e56082b345a97657d08dec 05-Nov-2003 Axel Dörfler <axeld@pinc-software.de>

Added prototype for strerror_r().


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


# 77c4490299da07032b23c355331be38677227a0b 15-Aug-2003 shatty <shatty@nowhere.fake>

for compatibility with beos r5 and gcc configuration, uncomment strsignal


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


# 6eb83f74edff074eb83a438bba33f90a1e96a33c 03-May-2003 Axel Dörfler <axeld@pinc-software.de>

Added prototype for the GNU strchrnul() call.


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


# 350117ec51234526af6d24ef1602c0ff91e89d06 31-Oct-2002 Axel Dörfler <axeld@pinc-software.de>

Removed the "const" in the return value of strerror() to be POSIX compliant.


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


# 8edc4bb4c8f3b39fff9627b2433bffe131b75687 22-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Added a very preliminary time.h
Removed the bzero()/bcopy() prototypes, and replaced them with macros - we
should decide what to do with them.


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


# 0c9ee87018a7fd80fb7a972a3cb38b8ee28e7a04 17-Sep-2002 Axel Dörfler <axeld@pinc-software.de>

Added our string.h headers (the one in private/kernel will be removed now)


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