Commit Graph

569 Commits

Author SHA1 Message Date
Jeremy Soller 7e6e1b164c Align stack on x86_64 2018-07-03 11:31:05 -06:00
jD91mZM2 6a0928edfd Use relibc to build openlibm 2018-07-03 19:01:24 +02:00
jD91mZM2 9c169a186f Run fmt.sh 2018-07-03 09:33:41 +02:00
jD91mZM2 aff5380723 Merge branch 'master' into 'master'
Fixing some things in stdio

See merge request redox-os/relibc!136
2018-07-03 07:21:02 +00:00
Tom Almeida 53a03cb0ba Made sure errors were properly handled by printf 2018-07-03 14:50:38 +08:00
Tom Almeida 8bc07abd05 Fix freopen.stdout. There was a trailing space 2018-07-03 14:42:31 +08:00
Tom Almeida ebe1ed15f8 Fix fgets 2018-07-03 14:34:40 +08:00
Tom Almeida bf2973e857 Ensure we correctly insert null character in gets 2018-07-03 12:50:04 +08:00
Tom Almeida d7a0f3d526 Ensure gets stops on newline or bufchar 2018-07-03 12:36:41 +08:00
Tom Almeida bf6db91993 Actually remove stdlib from stdio. This should have been done with wchar being put in, but I messed something up 2018-07-03 12:24:51 +08:00
Tom Almeida 72177be0fa Add a working implementation of gets 2018-07-03 12:14:30 +08:00
Tom Almeida 7277286efd Implement Drop for FILE, so we flush when the process exits 2018-07-03 10:05:12 +08:00
Tom Almeida 81107f8cd1 Don't reset read/write every time we check if we can read or write 2018-07-03 10:01:48 +08:00
Tom Almeida e9cecfead3 Return -1 for error in printf 2018-07-03 09:48:21 +08:00
Tom Almeida 0d61f9f4fd Make sure we can actually write before writing anything when using printf 2018-07-03 09:13:48 +08:00
Tom Almeida da664d4919 Merged relibc with branch 2018-07-03 08:39:04 +08:00
jD91mZM2 30ec8aa2c9 Add redox to CI 2018-07-02 10:35:40 +02:00
jD91mZM2 07dbc6bd76 Fix no_std on redox
Apparently a root-level cfg does not go well with a root-level no_std
2018-07-02 08:53:13 +02:00
jD91mZM2 17778ba1b4 Remove missing rustfmt.toml options 2018-07-02 07:42:33 +02:00
jD91mZM2 9c01673422 Use no_std in inttypes (whoops) 2018-07-01 21:00:03 +02:00
Stephan Vedder cc210361d6 wchar support 2018-07-01 20:59:37 +02:00
jD91mZM2 fb09b03acf Fix compilation on redox 2018-07-01 17:55:24 +02:00
Jeremy Soller 396a6dbb90 Merge branch 'mggmuggins/ci' into 'master'
Stage and Cache build

See merge request redox-os/relibc!150
2018-06-30 21:59:01 +00:00
SamwiseFilmore b911a76de4 Stage and Cache build 2018-06-30 21:01:12 +00:00
jD91mZM2 0567f699a2 Merge branch 'master' into 'master'
Workaround compilation errors

See merge request redox-os/relibc!149
2018-06-30 14:14:04 +00:00
jD91mZM2 541fbcf57c Use ptr::null over 0 2018-06-30 12:19:39 +02:00
jD91mZM2 1fd9a5f249 Moooore fixes :| 2018-06-30 12:15:51 +02:00
Tom Almeida 05b4b76426 Fix some issues 2018-06-30 17:49:34 +08:00
Tom Almeida 10a9081b66 Made sure that something that's unsafe is actually marked as unsafe 2018-06-30 17:47:30 +08:00
Tom Almeida 18418254b9 Made sure lazy_static works with no_std 2018-06-30 17:37:26 +08:00
Tom Almeida 8075447fad Changed FILE to use a vector as a buffer instead of raw pointers. This allows us to remove the large majority of unsafe blocks from the code 2018-06-30 17:37:26 +08:00
Tom Almeida 57f7de1e6d Changed FILE to use a vector as a buffer instead of raw pointers. This allows us to remove the large majority of unsafe blocks from the code 2018-06-30 17:33:02 +08:00
Tom Almeida 4c65f14f9a Fixed some issues with temporary files and moved some raw pointers to Option<&T>s 2018-06-30 17:26:39 +08:00
Tom Almeida 71fa4026f5 Changed FILE to use a vector as a buffer instead of raw pointers. This allows us to remove the large majority of unsafe blocks from the code 2018-06-30 17:26:35 +08:00
Tom Almeida a2dc22123f Merge branch 'master' into 'master'
# Conflicts:
#   src/stdio/src/default.rs
2018-06-30 09:19:54 +00:00
jD91mZM2 2f6467bce6 Fix test warning 2018-06-30 09:26:46 +02:00
jD91mZM2 674d4e3695 Preallocate because why not 2018-06-30 09:25:05 +02:00
jD91mZM2 234632d319 Workaround compilation errors 2018-06-30 09:19:06 +02:00
Jeremy Soller 29a626cd7c Merge branch 'unistd' into 'master'
Exec Functions (again) (again)

See merge request redox-os/relibc!144
2018-06-28 19:24:04 +00:00
Paul Sajna 5c5e237042 Exec Functions (again) (again) 2018-06-28 19:24:04 +00:00
Jeremy Soller da992bff56 Merge branch 'master' into 'master'
Fix off-by-one error and remove utf8 check in mktemp

See merge request redox-os/relibc!148
2018-06-28 11:36:02 +00:00
jD91mZM2 8e7cd11bc0 Fix CI 2018-06-28 08:31:34 +02:00
jD91mZM2 2c0f9ce747 Fix off-by-one error and remove utf8 check in mktemp 2018-06-28 08:03:17 +02:00
Jeremy Soller e4be43f617 Adjust list of expected binaries 2018-06-27 15:12:14 -06:00
Jeremy Soller 2e3eda4612 Add more expected files 2018-06-27 15:08:29 -06:00
Jeremy Soller cf6c8093ab Update expected output 2018-06-27 15:06:19 -06:00
Jeremy Soller 1f1665fd58 Merge branch 'master' into 'master'
Add the few last things to get gcc_complete working

See merge request redox-os/relibc!146
2018-06-27 21:02:30 +00:00
Jeremy Soller abbf0c9609 Add mktemp test binary to gitingore 2018-06-27 14:33:47 -06:00
Jeremy Soller 2dbe7ebee0 Update ralloc 2018-06-27 14:33:03 -06:00
Jeremy Soller b5da8aa35c Merge branch 'mggmuggins/ci' into 'master'
Add Gitlab CI

See merge request redox-os/relibc!140
2018-06-27 20:31:11 +00:00