Commit Graph

59 Commits

Author SHA1 Message Date
jD91mZM2 3bb3a3e322 Fix strcpy 2018-08-07 11:35:23 +02:00
jD91mZM2 f6ca7d7c2d Add S_ISSOCK and fix str(c)spn 2018-08-05 21:49:45 +02:00
jD91mZM2 ba8bd8c4e8 Add the last few things for bash to compile :D 2018-08-03 11:18:52 +02:00
jD91mZM2 5b3e09ee16 fixup! strcoll as strcmp because no locale 2018-07-17 18:35:54 +02:00
jD91mZM2 878208485c strcoll as strcmp because no locale 2018-07-17 17:44:38 +02:00
jD91mZM2 a7cc95cd90 Comment out #[no_mangle] on unimplemented functions
This stops configure scripts from identifying them as valid
2018-07-12 21:39:53 +02:00
jD91mZM2 d3f6985ee9 Add a few things necessary for openssl (not all) 2018-07-08 08:44:23 +02:00
jD91mZM2 985a83ee69 Use style = Tag everywhere possible 2018-07-06 17:02:23 +02:00
Jeremy Soller 42abc98a99 Cleanup allocation functions 2018-07-03 19:40:47 -06:00
Jeremy Soller b6b34a7026 Ralloc fixes and fixes for Redox execution 2018-07-03 19:07:07 -06:00
jD91mZM2 9c169a186f Run fmt.sh 2018-07-03 09:33:41 +02:00
Stephan Vedder cc210361d6 wchar support 2018-07-01 20:59:37 +02:00
Jeremy Soller c647fdfed3 Merge pull request #116 from matijaskala/patch-1
Add optimized version of memchr
2018-05-15 18:33:31 -06:00
Matija Skala 9bbb070104 Add optimized version of memchr 2018-05-15 21:06:17 +02:00
Alex Lyon 0cabecd5b5 stdio, string, platform: fix a bug in printf() involving chars
Because we were previously converting the bytes in the format
string into Rust's char type and then printing that using the
format machinery, byte values that were not valid single-byte
UTF-8 characters failed to print correctly.  I found this while
trying to implement qsort() because the output of my test program
was mysteriously incorrect despite it working when I used glibc.
2018-05-11 23:09:12 -07:00
Hermann Döppes dc769fd977 Run ./fmt.sh 2018-04-04 22:52:06 +02:00
Jeremy Soller dabd8dc6a2 Move memory handling into string, do not use compiler_builtins for memory handling 2018-03-27 21:28:48 -06:00
Jeremy Soller afdc80629f Fix Makefile spurious rebuilds
Add mem* functions to stdio
Add constant int functions
2018-03-27 20:14:22 -06:00
Timothy Bess 3a89f66cfd * simplify strtok implementation 2018-03-18 00:05:13 -04:00
Timothy Bess 06de920be6 * remove unnecessary assignments 2018-03-17 12:58:10 -04:00
Timothy Bess e91891625f * add strtok_r 2018-03-17 03:56:40 -04:00
Timothy Bess 898cf98ccc * fix test case a bit
* remove unnecessary cast
2018-03-17 03:06:59 -04:00
Timothy Bess f60fafe8fb * create basic strtok
* add test and expected output
2018-03-17 02:58:08 -04:00
Timothy Bess bebbd35e1a Issue #89
* fix return types
* fix type casts on returns
2018-03-17 00:50:22 -04:00
Andrii Zymohliad cd2312fd56 Merge remote-tracking branch 'upstream/master' 2018-03-14 09:55:59 +08:00
Tom Almeida d058390b75 The erroneous use came back! 2018-03-14 08:56:18 +08:00
Tom Almeida 122f6cfef5 Merge branch 'master' of github.com:Tommoa/relibc 2018-03-14 08:54:10 +08:00
Tom Almeida 9d46fa4d8c Missed having both loops look at themselves. I'm not sure how long this has been here. 2018-03-14 08:48:56 +08:00
Andrii Zymohliad 40efea056b Reimplement strpbrk() using strcspn() 2018-03-14 08:06:51 +08:00
Tom Almeida ca82b6df5b remove erroneous import in string 2018-03-14 01:03:48 +08:00
Tom Almeida d6a7942ec4 Change the type of byteset from [u8] to [usize] in strcspn and strspn. Hopefully this is the last bug in these! 2018-03-14 01:01:23 +08:00
Andrii Zymohliad 1e969afd43 Implement strpbrk(), add strpbrk test 2018-03-12 18:01:12 +08:00
Andrii Zymohliad a1de0ef8a1 Implement strstr(), add strstr test 2018-03-12 14:55:02 +08:00
Tom Almeida 1f9f9f7d55 Made an error in the logic of strcspn and strspn that would cause a bit shift much too large 2018-03-11 23:53:15 +08:00
Justin Raymond 63ee4de162 Update lib.rs 2018-03-10 12:39:30 -05:00
Justin Raymond a1e62baad7 Merge branch 'master' into strrchr 2018-03-10 11:11:46 -05:00
Justin Raymond 826cf0c61c implement strrchr 2018-03-10 11:10:19 -05:00
Tom Almeida d0bf830ca7 fixed a logic error in strchr 2018-03-10 23:09:10 +08:00
Tom Almeida b0f8e31b63 ran fmt.sh 2018-03-10 23:01:49 +08:00
Tom Almeida 87ec6dfacb Fixed unused variable in memchr 2018-03-10 22:59:24 +08:00
Tom Almeida 18283feac1 Added implementations of strchr, strcspn and strspn 2018-03-10 22:58:35 +08:00
Jeremy Soller b52a1d612d Merge pull request #59 from Tommoa/master
Add implementations of memchr and memccpy
2018-03-10 07:03:40 -07:00
Tom Almeida d214817c87 readability update in lib.rs 2018-03-10 21:52:06 +08:00
Tom Almeida 774856f9b2 Update lib.rs 2018-03-10 21:37:01 +08:00
Tom Almeida 3470882df6 Fixed incorrect return of memccpy 2018-03-10 17:12:05 +08:00
Tom Almeida 4f601f4896 Added memchr and memccpy to string 2018-03-10 16:59:53 +08:00
Alex Lyon cfc1014c6e string: fix a couple minor issues in strncmp() 2018-03-09 20:54:42 -08:00
Alex Lyon 50f79e9a0e string: address performance concerns for strncmp() 2018-03-09 20:54:42 -08:00
Alex Lyon 332ae13af5 string: fix out of bounds bug in strncmp 2018-03-08 17:18:38 -08:00
Jeremy Soller b7b49d5801 Implement strerror 2018-03-07 21:00:26 -07:00