Commit Graph

597 Commits

Author SHA1 Message Date
jD91mZM2 a9ea2ef64e Fixup time & support negative & mktime 2018-07-13 09:13:46 +02:00
jD91mZM2 758b437170 Run fmt.sh 2018-07-12 21:40:44 +02:00
jD91mZM2 b7e11afd2f Add localtime and ctime functions
I have NO IDEA if these are correct. Implementation was 'inspired by' https://github.com/rust-lang-deprecated/time/commit/4ca23fb14ddf44fd90609fec6a2fb1efcedb8ea3. Pretty darn certain that negative values won't work
2018-07-12 21:39:53 +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
Jeremy Soller b8cab5f0be Fix missing stdint.h in signal.h 2018-07-12 11:12:41 -06:00
Jeremy Soller b7eb7a43e0 Update lock file 2018-07-12 09:50:00 -06:00
Jeremy Soller 463c9f386c Fix issue with RUSAGE constants not being in C headers if negative 2018-07-12 09:49:53 -06:00
Jeremy Soller 9c27110de1 Add rusage constants 2018-07-12 09:09:30 -06:00
Jeremy Soller 6e56734224 Fix environ signature 2018-07-12 09:00:58 -06:00
Jeremy Soller 99fa77535a Add pathconf variables 2018-07-12 09:00:23 -06:00
Jeremy Soller 9fc785dcc6 Add stack_chk functionality 2018-07-12 07:40:53 -06:00
Jeremy Soller 6c11a18240 Go back to patched ralloc 2018-07-11 09:59:28 -06:00
jD91mZM2 5f4ebaaabf Fix broken ralloc submodule & fmt.sh 2018-07-11 17:13:38 +02:00
jD91mZM2 55e618d8c0 Add the last socket functions on linux; leave unimplemented on redox 2018-07-11 12:49:50 +02:00
jD91mZM2 6d923cbd0b Implement getpeername and getsockname 2018-07-11 11:43:38 +02:00
jD91mZM2 30d91b82b2 Run fmt.sh 2018-07-08 08:51:15 +02:00
jD91mZM2 d3f6985ee9 Add a few things necessary for openssl (not all) 2018-07-08 08:44:23 +02:00
jD91mZM2 587ee32a30 Merge branch 'style-tag' into 'master'
Use style = Tag everywhere possible

See merge request redox-os/relibc!151
2018-07-08 06:38:45 +00:00
jD91mZM2 985a83ee69 Use style = Tag everywhere possible 2018-07-06 17:02:23 +02:00
jD91mZM2 53f634f579 Fix inttypes 2018-07-06 17:01:52 +02:00
jD91mZM2 eaf7338946 Add aliases for compatibility 2018-07-06 13:39:07 +02:00
Jeremy Soller 919ae09d2f Fix compilation on Redox 2018-07-04 10:16:34 -06:00
Jeremy Soller 3361b05911 Merge branch 'master' of https://gitlab.redox-os.org/redox-os/relibc 2018-07-04 10:12:32 -06:00
Jeremy Soller ea5f8d59de Add dlmalloc 2018-07-04 10:10:34 -06:00
jD91mZM2 e206400d19 Move exec* back to platform
This undos a workaround. Jeremy moved the ralloc stuff to platform and suddenly this seems to work again. I don't know what is different from when I tried this before and now, but I don't really care
2018-07-04 09:29:34 +02:00
Jeremy Soller 3ef9599af5 Update ralloc 2018-07-03 21:18:23 -06: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
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