Jeremy Soller
ff0cebca87
Implement more stdio functions
2018-03-06 21:47:39 -07:00
Jeremy Soller
a1ce114cd4
Convert errors and set errno
2018-03-06 21:15:38 -07:00
Jeremy Soller
cf03233e66
Fix linux build
2018-03-06 20:44:21 -07:00
Paul Sajna
05d316b3a5
redox fixes
2018-03-06 19:28:02 -08:00
Dan Robertson
40b6a9c5cc
Finalize Aarch64 support
...
Update platform support for linux to avoid the use of syscalls not
supported by Aarch64.
- link, chown, and open should use fchownat and linkat with fd
set to AT_FDCWD.
- use dup3 with the 3rd arg set to 0 instead of dup2.
2018-03-07 02:56:08 +00:00
Jeremy Soller
543526cb85
Move crt0 and platform into src folder
...
Add cargo fmt script
2018-03-06 19:55:11 -07:00
Dan Robertson
846e495944
Get rustfmt passing on core relibc code
...
- Add a rustfmt config
- Get the current code passing the formatter
2018-03-07 01:52:50 +00:00
Dan Robertson
2096b85115
Fix platform
...
- Add cfg to extern crate sc. It is not used by redox.
- Fix bad syntax in brk implementation for redox
- nits
- style: update brk implementation for linux
- style: no space between not operator and ptr.is_null
- style: should be a space around = in module path
2018-03-07 01:52:50 +00:00
Paul Sajna
151d873aba
link
2018-03-04 22:34:47 -08:00
Paul Sajna
3a07bc27c2
getid functions
2018-03-04 22:11:59 -08:00
Paul Sajna
5cc52e4b19
tests
2018-03-04 16:34:46 -08:00
Paul Sajna
95ed0b59bd
getcwd
2018-03-04 09:35:38 -08:00
Paul Sajna
b5192437c3
ftruncate
2018-03-04 09:24:33 -08:00
Paul Sajna
3ad7c62601
fsync and some tweaks
2018-03-04 09:16:56 -08:00
Paul Sajna
9de89e037a
fchdir
2018-03-04 09:03:46 -08:00
Paul Sajna
95e74373fe
fchown
2018-03-04 08:49:40 -08:00
Paul Sajna
8b1222c3fb
brk
2018-03-04 08:41:37 -08:00
Paul Sajna
c96040187f
chown
2018-03-04 08:32:47 -08:00
Paul Sajna
aa4f7ed3a5
Merge branch 'platform' into unistd
2018-03-04 08:21:52 -08:00
Jeremy Soller
8283f130d6
Merge pull request #10 from sajattack/semaphore
...
build semaphore header
2018-03-04 09:06:30 -07:00
Paul Sajna
25b9ac206b
remove timedwait
2018-03-04 07:50:49 -08:00
Paul
4d506e6981
Merge branch 'master' into unistd
2018-03-04 07:39:51 -08:00
Paul Sajna
0a245a386e
comment out sem_open
2018-03-04 07:34:27 -08:00
Paul Sajna
caa89878d6
merge
2018-03-04 07:33:38 -08:00
Jeremy Soller
5002dd720f
Add mman to lib.rs
2018-03-04 08:31:43 -07:00
Jeremy Soller
654ca47351
Fix atexit_funcs call in exit
2018-03-04 08:15:26 -07:00
Jeremy Soller
7a7b3efe3a
Merge branch 'master' of github.com:redox-os/relibc
2018-03-04 08:12:38 -07:00
Jeremy Soller
866d952924
Support building for Redox
2018-03-04 08:10:42 -07:00
Paul Sajna
2e1d29203d
build semaphore header
2018-03-04 06:43:41 -08:00
Paul Sajna
d25b1d2fa4
implement some unistd
2018-03-04 06:37:45 -08:00
Jeremy Soller
9f5db313ce
Merge pull request #13 from sajattack/oldlib
...
add stuff from old newlib to todo
2018-03-04 07:36:00 -07:00
Jeremy Soller
50af0031c3
Merge pull request #9 from sajattack/mman
...
build mman header
2018-03-04 07:35:28 -07:00
Paul Sajna
460d7fb2c3
add stuff from old newlib to todo
2018-03-04 05:08:32 -08:00
Paul Sajna
ef9545cf71
missing parens
2018-03-04 04:43:05 -08:00
Paul Sajna
cdf5cb2d56
fix atexit
2018-03-04 04:34:22 -08:00
Paul Sajna
2acf7e6915
remove mman from todo
2018-03-03 20:58:58 -08:00
Paul Sajna
ba1a9543c8
build mman header
2018-03-03 20:57:29 -08:00
Paul Sajna
ee6ffbe73e
fix Options
2018-03-03 20:55:32 -08:00
Paul Sajna
f4d8fd3186
Merge branch 'master' of github.com:redox-os/relibc
2018-03-03 19:58:12 -08:00
Jeremy Soller
352f485649
Build grp header
2018-03-03 20:52:10 -07:00
Jeremy Soller
a9f2e9a9a7
Add template
2018-03-03 20:48:37 -07:00
Paul Sajna
2b16a3693e
wrap all function parameters in Options
2018-03-03 19:42:29 -08:00
Paul Sajna
533cb67681
fix Options
2018-03-03 19:33:34 -08:00
Jeremy Soller
c4b88cc1e6
Build ctype with header
2018-03-03 20:33:19 -07:00
Jeremy Soller
083fd72e66
Reorganize
2018-03-03 20:24:40 -07:00
Jeremy Soller
5520526bef
Implement printf (very simple version)
2018-03-03 19:47:01 -07:00
Jeremy Soller
f5ef0af883
Implement malloc/free with ralloc
2018-03-03 16:54:58 -07:00
Jeremy Soller
e30dec7124
WIP: stdio.h
2018-03-03 15:15:50 -07:00
Jeremy Soller
2aff4d41dd
Implement argument handling, add string.h
2018-03-03 14:55:54 -07:00
Jeremy Soller
78e421cb72
Implement some functions on Linux
2018-03-03 14:31:28 -07:00