Commit Graph

1144 Commits

Author SHA1 Message Date
Tom Almeida c24d1e2b36 Removed all function pointers in FILE, moved internal functions to be member functions of FILE, made relevant *mut FILEs into &mut FILE and made suitable functions safe again 2018-03-18 00:20:21 +08:00
Tom Almeida d7965f2598 Made it so that AtomicBool exports as volatile char 2018-03-18 00:19:08 +08:00
Tom Almeida 25501b3640 Changed redox lseek to have the same function signature as the linux version 2018-03-18 00:18:14 +08:00
Tom Almeida b33c3a8e4f Merge branch 'master' into master 2018-03-18 00:06:59 +08:00
Jeremy Soller 362849f0f6 Merge pull request #91 from tdbgamer/master
Issue #89: Fix return types on string functions
2018-03-17 07:04:52 -06: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
Tom Almeida 2cb0a994b8 Merge branch 'master' into master 2018-03-16 23:26:11 +08:00
Tom Almeida 659d3d1042 Changed object type of function pointers from Option<*const (Fn(...))> to Option<fn(...)> for readability 2018-03-16 23:14:43 +08:00
Jeremy Soller d75535974a Merge pull request #74 from sajattack/wait
wait and waitpid
2018-03-16 09:03:35 -06:00
Tom Almeida 81d96c214a Ran formatting for freopen() 2018-03-16 20:47:32 +08:00
Tom Almeida 8d40424020 Added freopen() and relevant tests 2018-03-16 20:24:40 +08:00
Paul Sajna 2610fdd126 Merge branch 'wait' of github.com:sajattack/relibc into wait 2018-03-15 16:22:23 -07:00
Paul Sajna c568ca2932 test cleanup 2018-03-15 16:18:35 -07: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
Tom Almeida 41b96fede3 Added a different internal function for redox 2018-03-15 15:57:19 +08:00
Tom Almeida c4c8b73903 Formatted stdio files 2018-03-15 15:34:39 +08:00
Tom Almeida 8648fd39c4 Added some constants in linux for file modes in the new branch 2018-03-15 15:32:46 +08:00
Tom Almeida b0492eba84 Added some tests for stdio 2018-03-15 15:28:14 +08:00
Tom Almeida 7f2b720962 Implemented stdio functions 2018-03-15 15:27:07 +08:00
Tom Almeida 046ce1468e Removed an unused import from printf 2018-03-15 15:23:38 +08:00
Tom Almeida e73678d8ad Added a FileReader struct 2018-03-15 15:22:18 +08:00
Tom Almeida f20878c592 Added lseek to syscalls 2018-03-15 15:21:52 +08:00
Tom Almeida aa8b14e107 Added some constants in linux for file modes 2018-03-15 15:21:02 +08: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
Jeremy Soller b419e150d1 Merge pull request #84 from dlrobertson/fixup_signal
Update cbindgen and fix issues with signal
2018-03-14 20:23:08 -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 54c0e501e3 Merge pull request #82 from Tommoa/master
Actual working tests on strspn and strcspn
2018-03-13 21:02:04 -06:00
Tom Almeida b2d01a67f2 Actual working tests on strspn and strcspn 2018-03-14 10:55:01 +08: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
Jeremy Soller 1d6115fd09 Update cbindgen and lock file 2018-03-13 19:41:31 -06:00
Jeremy Soller b09435f17d Merge pull request #78 from Tommoa/master
Yet another fix for strcspn and strspn.
2018-03-13 19:39:08 -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
Jeremy Soller 010e171071 Merge pull request #80 from dlrobertson/master
Add the no_mangle attribute to fns
2018-03-13 18:28:09 -06: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