Commit Graph

452 Commits

Author SHA1 Message Date
Jeremy Soller 7912332137 Mark sys_time functions no_mangle 2018-03-11 21:26:21 -06:00
Jeremy Soller 3e354aed04 Merge branch 'fix_includes' of https://github.com/dlrobertson/relibc into dlrobertson-fix_includes 2018-03-11 21:22:07 -06:00
Dan Robertson cc5669939e Fix include in resource.h and add SIZE_MAX
The rusage struct makes use of the timeval structure. Make sure to
include sys/time.h so that the type is known.

Add SIZE_MAX to stdint.h

sys/resource expects the defined structures to not be defined with a
typedef.
2018-03-12 02:38:07 +00:00
Jeremy Soller 7c305c5c0d Merge branch 'master' into stat 2018-03-11 19:31:59 -06:00
Paul Sajna ccb29cfa2c wait and waitpid 2018-03-11 16:50:46 -07:00
Dan Robertson 50eab4369d Add signal.h
Create stubs for signal.h
2018-03-11 21:36:02 +00:00
Jeremy Soller 1b1ff5c750 Merge pull request #66 from w0xel/master
Add implementation for a64l
2018-03-11 13:11:06 -06:00
Paul Sajna a000f1a2c0 fmt 2018-03-11 11:26:35 -07:00
Paul Sajna 76c4520cea stat is now autogenerated correctly 2018-03-11 11:19:56 -07: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
Sebastian Würl 55bd1adae0 stdlib: cleaner raw pointer handling in a64l 2018-03-11 13:23:36 +01:00
Sebastian Würl d4d808fcc8 Add implementation for a64l 2018-03-11 11:55:22 +01:00
Jeremy Soller 8028c35172 Merge pull request #65 from dlrobertson/add_more_crates
Add more crates for missing headers
2018-03-10 21:52:30 -07:00
Jeremy Soller 089b41da23 Merge pull request #62 from jrraymond/strrchr
implement strrchr
2018-03-10 21:51:21 -07:00
Dan Robertson 3699b53ba2 float: Add crate for float.h
Add a crate with stubbed functions for the float.h header.
2018-03-10 21:16:55 +00:00
Dan Robertson f29e6b00d7 fenv: Add crate for fenv.h
Add a crate for building out stub functions and structures for the fenv
header.
2018-03-10 21:16:54 +00:00
Dan Robertson ca7f3a00e6 wait: Add crate for sys/wait.h
Add the basics of sys/wait.h so that we get a bit closer to being able
to compile libc-test.
2018-03-10 21:16:54 +00:00
Dan Robertson c6f16547ff resource: Add crate for sys/resource.h
Add the basics of sys/resource.h so that work can begin on sys/wait.h
2018-03-10 19:14:20 +00:00
Dan Robertson 2f718d40d6 mman: mman.h should be located at sys/mman.h
- Update target location of mman.h to sys/mman.h
 - Add more types to sys/type.h
2018-03-10 19:14:16 +00:00
Justin Raymond 63ee4de162 Update lib.rs 2018-03-10 12:39:30 -05:00
Tom Almeida 49be92f87f ran fmt.sh cause I'm an idiot 2018-03-11 00:39:43 +08:00
Tom Almeida 8374fcb4be implemented fputc, fputs, and puts 2018-03-11 00:33:00 +08: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
Paul Sajna 7e40d8c87b fmt 2018-03-09 07:51:15 -08:00
Paul Sajna 23bb883797 update nanosleep 2018-03-09 07:49:37 -08:00
Paul 5632d96016 Merge branch 'master' into time 2018-03-09 05:52:29 -08:00
Paul 4d12c408fd Merge branch 'master' into time 2018-03-09 05:49:37 -08:00
Paul cdf298ba3a Merge branch 'master' into unistd 2018-03-09 05:48:22 -08:00
Jeremy Soller b7ac90fd9f Merge branch 'master' into master 2018-03-09 06:45:17 -07:00
Paul Sajna 3c198a3a40 fmt 2018-03-09 05:19:25 -08:00
Paul Sajna 4d4ab1a75f fix and test 2018-03-09 05:18:21 -08:00
Paul Sajna 161d93466c fixes and tests 2018-03-09 04:48:34 -08:00
Paul Sajna e99857d125 sleep and usleep 2018-03-09 03:42:42 -08:00
Paul Sajna 7e19ce23bd nanosleep 2018-03-09 03:26:45 -08:00
Alex Lyon 9325a29a74 stdlib: make rustfmt happy with strtol() 2018-03-09 03:21:18 -08:00
Alex Lyon f5b1f872a0 stdlib: implement preliminary version of strtol() 2018-03-09 03:07:16 -08:00
Alex Lyon a7e71717cb stdio: add support for %o to printf() 2018-03-09 02:51:50 -08:00
Paul Sajna 083aa0ed55 fmt 2018-03-09 02:47:22 -08:00