summaryrefslogtreecommitdiff
path: root/Libraries/LibC/string.cpp
AgeCommit message (Collapse)Author
2020-02-22LibC: Implement strchrnul()Shannon Booth
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-16LibC: Add strnlen()Andreas Kling
2019-12-27LibC: Remove some functions we had two ofAndreas Kling
2019-12-15Kernel+FileManager: Disallow watch_file() in unsupported file systemsAndreas Kling
Currently only Ext2FS and TmpFS supports InodeWatchers. We now fail with ENOTSUPP if watch_file() is called on e.g ProcFS. This fixes an issue with FileManager chewing up all the CPU when /proc was opened. Watchers don't keep the watched Inode open, and when they close, the watcher FD will EOF. Since nothing else kept /proc open in FileManager, the watchers created for it would EOF immediately, causing a refresh over and over. Fixes #879.
2019-11-10LibC: Add strtok_r() and make strtok() a wrapper around itAndreas Kling
2019-10-17LibC: Better strtok implementation (string.h)Jonah Alligood
2019-10-17LibC: strtok is now implemented (string.h)Jonah Alligood
2019-10-17LibC: sys_errlist should be const char* constAndreas Kling
Patch from Anonymous.
2019-07-29Kernel+AK: Remove AK/StdLibExtras.cpp, moving kernel stuff to Kernel/.Andreas Kling
We had some kernel-specific gizmos in AK that should really just be in the Kernel subdirectory instead. The only thing remaining after moving those was mmx_memcpy() which I moved to the ARCH(i386)-specific section of LibC/string.cpp.
2019-07-09LibC: Provide generic versions of memcpy() and memset() for non-i386 builds.Andreas Kling
We don't actually do any non-i386 builds at the moment, this is just gently steering in a nice direction for the future. :^)
2019-07-04Libraries: Create top level directory for libraries.Andreas Kling
Things were getting a little crowded in the project root, so this patch moves the Lib*/ directories into Libraries/.