Commit Graph

201 Commits

Author SHA1 Message Date
Paul Sajna 5f243a21f7 Merge branch 'rand' of github.com:sajattack/relibc into rand 2018-03-21 20:13:27 -07:00
Paul Sajna cdc6209ff4 fix comment 2018-03-21 20:12:22 -07:00
Jeremy Soller 26b533c978 Merge branch 'master' into rand 2018-03-21 21:08:33 -06:00
Paul Sajna cc5a4e92ce fmt 2018-03-20 19:45:45 -07:00
Paul Sajna 4db812d34d implement rand and srand 2018-03-20 19:31:58 -07:00
Alex Lyon 2751d457bf unistd: use .is_null() for pointers 2018-03-19 15:05:38 -07:00
Alex Lyon 42a6693a0b unistd: fix off-by-one in getopt() 2018-03-19 14:50:41 -07:00
Alex Lyon af78348d4a unistd: add a preliminary implementation of getopt() 2018-03-19 14:50:41 -07:00
Jeremy Soller edead8e085 Merge pull request #98 from jeizsm/master
refactor nanosleep
2018-03-18 16:40:30 -06:00
Jeremy Soller 045a510ce5 Merge pull request #92 from tdbgamer/feature/strtok
Implement strtok
2018-03-18 16:37:06 -06:00
Justin Raymond a0c76f7ce5 bsearch 2018-03-18 17:11:43 -04:00
Marat Safin 31516989c0 refactor nanosleep 2018-03-18 12:29:38 +03:00
Timothy Bess 3a89f66cfd * simplify strtok implementation 2018-03-18 00:05:13 -04:00
Jeremy Soller 5cec358a45 Merge pull request #86 from dlrobertson/add_headers
Add some of the basics for netinet/in.h and sys/socket.h
2018-03-17 18:11:46 -06: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
Jeremy Soller b2b7804f5b Merge branch 'master' into wait 2018-03-15 15:51:29 -06:00
Paul Sajna cdfde8c0d4 more requested changes 2018-03-15 11:55:37 -07:00
Dan Robertson 16e82636fb Add basic structures for netinet/in.h crate
Add the basic structures for the netinet/in.h header.
2018-03-15 17:34:30 +00:00
Dan Robertson 01081729c8 Add structures and stub fns for sys/socket.h
Add some of the basic structures and stub functions for sys/socket.h
2018-03-15 17:34:30 +00:00
Jeremy Soller a1baf1c92d Merge pull request #75 from azymohliad/master
Implement strstr() and strpbrk() from string.h
2018-03-14 21:22:59 -06:00
Dan Robertson f1d802dc1e signal: sigaction struct should not be a typedef
The sigaction struct should not be a typedef, but the sigset_t struct
should be a typedef.
2018-03-15 01:07:44 +00:00
Dan Robertson 6d110ef0cb Use a sys module for OS specific information
Update cbindgen to parse modules with a path attribute and revert the
following commits:
 - 996fad7092.
 - cfe98ab3b2.
2018-03-15 00:53:35 +00:00
Paul Sajna 52acce0d34 handle the null case 2018-03-14 12:37:24 -07:00
Jeremy Soller cfe98ab3b2 Fix constants in signal.h 2018-03-13 19:58:52 -06:00
Andrii Zymohliad cd2312fd56 Merge remote-tracking branch 'upstream/master' 2018-03-14 09:55:59 +08:00
Jeremy Soller d6e210b1fd Merge branch 'signal' of https://github.com/dlrobertson/relibc into dlrobertson-signal 2018-03-13 19:54:49 -06:00
Jeremy Soller 996fad7092 Fix fcntl header constants 2018-03-13 19:52:15 -06:00
Tom Almeida d3c2e99ed7 Merge branch 'master' into master 2018-03-14 08:56:52 +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
Paul Sajna 2fd2a9c520 Merge branch 'wait' of github.com:sajattack/relibc into wait 2018-03-13 16:55:32 -07:00
Paul Sajna d177b8e974 requested change 2018-03-13 16:55:16 -07:00
Dan Robertson d3e44da527 Add the no_mangle attribute to fns
Add the no_mangle attribute to functions without it.
2018-03-13 23:27:32 +00: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
Jeremy Soller 1e661cdbef Merge branch 'master' into wait 2018-03-13 07:11:35 -06:00
Jeremy Soller 8d0308d3ce Merge branch 'master' into master 2018-03-12 21:59:06 -06:00
Dan Robertson ef8a64c101 Add missing extern crate statements
Add missing extern crate statements.
2018-03-13 02:17:32 +00: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
Paul Sajna 211f95155a fmt 2018-03-11 21:24:06 -07:00
Paul Sajna b35abd1065 test and fixes 2018-03-11 21:20:59 -07:00
Paul Sajna 224cf04cf3 Merge branch 'master' of github.com:redox-os/relibc into wait 2018-03-11 20:28:39 -07:00
Jeremy Soller 7912332137 Mark sys_time functions no_mangle 2018-03-11 21:26:21 -06:00