summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/string.cpp
AgeCommit message (Collapse)Author
2021-09-13LibC: Upgrade memmove() to memcpy() when possibleAndreas Kling
We were missing out on opportunities to use memcpy() instead of memmove() when the source and destination don't overlap.
2021-09-13LibC: Implement explicit_bzero with AK::secure_zeroBrian Gianforcaro
2021-06-28LibC: Implement memcpy and memset for x86_64Gunnar Beutner
2021-06-11Libc: Silence debug spam from `strerror`Jelle Raaijmakers
Particularly noticeable in ports like openssl, which like to map the entire error message set from 0 through 128 on startup.
2021-06-11LibC: Let `strerror_r` fail if `errnum` < 0Jelle Raaijmakers
2021-05-25LibC: Implement strerror_r()Gunnar Beutner
This implements the XSI-compliant version of strerror_r() - as opposed to the GNU-specific variant. The function explicitly saves errno so as to not accidentally change it with one of the calls to other functions.
2021-05-08LibC: Add definition for EDQUOTGunnar Beutner
This is used by the libphysfs port.
2021-05-01LibC: Make EWOULDBLOCK an alias for EAGAINGunnar Beutner
According to POSIX.1 all error codes have to be distinct - with the exception for EAGAIN and EWOULDBLOCK. Other libcs including eglibc and newlib define EWOULDBLOCK as an alias for EAGAIN and some software including OpenTTD expect this behavior.
2021-04-29iLibC: Fix some missed camelCase => snake_caseAndreas Kling
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-12LibC: Use dbgln() in strerror() and strsignal()Gunnar Beutner
Printing error messages to stdout can have unintended side effects depending on what the program is doing.
2021-04-08Kernel/LibC: Make memset implementations the sameHendiadyoin1
I dont know why we do a fast path in the Kernel, but not in Userspace Also simplified the byte explosion in memset to "explode_byte" it even seemed so, that we missed the highest byte when memseting something
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling