Jeremy Soller
5d45042d5d
Correct more asm! usages
2020-08-02 13:38:29 -06:00
Jeremy Soller
f2c2d7c52e
Fix compilation on newer nightly, update nightly to 2020-08-01
2020-08-02 12:24:49 -06:00
jD91mZM2
4c148c1860
Make munmap use funmap2
2020-07-30 13:39:20 +02:00
4lDO2
a5e02650d7
Remove ptrace write call.
2020-07-25 22:30:38 +02:00
4lDO2
e38d185870
Use fmap2 to support passing an address.
2020-07-25 22:30:38 +02:00
Jeremy Soller
d6b03de7a4
Align stack to 128 bytes
2020-07-19 21:04:16 -06:00
oddcoder
37a462de5d
Apply cargo fmt to the whole repo
2020-07-19 21:27:38 +02:00
oddcoder
f4f68a3441
Make use of mspaces
2020-07-18 21:03:46 +02:00
oddcoder
3a8817072c
Initialize the mspaces of allocator and keep track of it
2020-07-18 21:03:20 +02:00
oddcoder
9a1efda121
Initial allocator structure
2020-07-18 20:54:30 +02:00
Wren Turkal
865b7962a1
Add implmentation for fwide posix function.
...
This function is used to set the orientation of a stream to either
byte-oriented or wchar-oriented.
More info on this function is here:
https://man7.org/linux/man-pages/man3/fwide.3p.html
This implementation only impmlemnts the manual switching and does
not yet guard against using a byte-oriented stream with wchar
functions and vice versa. Those step will come in additional
commits.
Signed-off-by: Wren Turkal <wt@penguintechs.org >
2020-07-08 14:33:06 -07:00
jD91mZM2
56e1eceb28
Replace AllocStringWriter with CVec
2020-06-29 17:44:57 +02:00
jD91mZM2
39ce623d2d
Fix bind/connect's AF_UNIX socket path... again
...
I don't really know for sure what all these silly rules are, but I think
I got it now...
2020-06-29 11:36:07 +02:00
jD91mZM2
f8b49936bc
Various unix socket fixes (+socketpair!)
2020-06-27 16:39:50 +02:00
jD91mZM2
cdc9aa06e3
Fix getpeername
...
Rust's TcpListener fails because of the address format being wrong. The format
comes from `accept`, but there we internally use this function.
2020-06-19 13:56:06 +02:00
oddcoder
92d6735e3f
Add more scanf tests
2020-06-03 23:20:53 +02:00
Jeremy Soller
a6fffd3fb5
Add getrandom and sys/random.h
2020-05-22 11:50:54 -06:00
Jeremy Soller
2cf3ccae72
Fix import of user_regs_struct
2020-05-21 20:01:47 -06:00
Jeremy Soller
06429ccc4c
Fix redox socket inner_get_name
2020-05-21 14:59:22 -06:00
oddcoder
de03566158
Enable RTLD debugging protocol system-wide
...
This patch makes use of the data structures and functions impelemented
in the last patch to enable RTLD debugging protocol as per SVR4
2020-04-13 12:39:51 +02:00
Jeremy Soller
6ed37efaeb
Merge branch 'weak-symbols' into 'master'
...
Weak symbols
See merge request redox-os/relibc!260
2020-03-19 17:56:22 +00:00
Jeremy Soller
2e27cf525e
Work on adding cargo test capability
2020-03-10 20:57:07 -06:00
oddcoder
c2488b5094
Running ./fmt.sh
...
These files needs formating by the auto formatter and It keeps popping
up every time I format my own code.
2020-03-07 23:52:27 +02:00
Tiago Lam
76f07b163b
platform/redox: Support AF_UNIX in accept.
...
As with the previous commit, accept() was calling inner_get_name() and
assuming only "tcp:" or "udp:" addresses would be received. Thus, in
order to support AF_UNIX sockets, inner_get_name() was split into two,
inner_af_inet() and inner_af_unix() - where the former keeps the
previous logic, dealing with "tcp:" and "udp:" addresses, and the latter
deals now with "chan:" addresses and filling in the sockaddr_un
appropriately.
2020-02-06 08:41:51 +00:00
Tiago Lam
d36cd72788
platform/redox: Support AF_UNIX in bind / connect.
...
Previously, domain AF_INET was assumed while processing bind() /
connect(), which end up calling bind_or_connect!. Instead, match on the
domain type and process the path for AF_UNIX domains.
2020-02-06 08:41:48 +00:00
Tiago Lam
12f6ffd152
platform/redox: Support AF_UNIX in socket.
...
To add support for UNIX sockets (AF_UNIX), of SOCK_STREAM type, the
"chan:" scheme is used, which will be supportedby the ipcd running in
userspace.
Later commits add similar AF_UNIX support for the rest of the methods in
impl PalSocket.
2020-02-06 08:21:12 +00:00
Jeremy Soller
9a449d4f6c
Stub for SO_ERROR to fix curl
2020-01-21 20:29:26 -07:00
Jeremy Soller
2e5d4a4d25
Merge remote-tracking branch 'origin/truncate-n-mkfifo'
2020-01-20 11:17:15 -07:00
Jeremy Soller
2cbc78f238
Add linker pointer
2019-12-18 21:15:00 -07:00
Jeremy Soller
36eb561128
Format
2019-12-18 20:01:48 -07:00
Jeremy Soller
4818ad61ab
Always zero mmap'd memory
2019-12-15 07:46:59 -07:00
Jeremy Soller
2ac349d2d2
Add msync function and stub for Redox
2019-12-01 10:58:47 -07:00
Jeremy Soller
ae69586f20
Implement getrlimit on Linux and stub on Redox
2019-09-18 20:29:25 -06:00
Xavier L'Heureux
5156a13b3e
Add a test for futimens
2019-09-16 12:25:29 -04:00
Xavier L'Heureux
30d3cd5c88
Fix the mkfifo call on Linux and add a test to avoid regression
2019-09-13 12:35:08 -04:00
Xavier L'Heureux
5799555566
Remove print statements
2019-08-11 21:53:32 -04:00
Xavier L'Heureux
f2357390e9
Fix redox's implementation
2019-08-11 21:06:47 -04:00
Xavier L'Heureux
0a558de76c
Fix reference getting moved
...
The sigaction handler called map on an option, creating a pointer to a
move value. This in turned caused UB for signal handlers. Avoid using
pointers directly, and instead prefer references.
2019-08-11 20:47:18 -04:00
Xavier L'Heureux
225583230f
Test
2019-08-11 18:11:19 -04:00
Jeremy Soller
37a5da34b9
Fix pte_osSemaphorePend deadlock
2019-08-09 21:18:20 -06:00
jD91mZM2
a7b354c8e0
Update to latest syscall after merging ptrace
2019-08-04 19:46:10 +02:00
jD91mZM2
a1e45941bf
Fix ptrace after latest kernel changes
2019-08-04 19:05:45 +02:00
jD91mZM2
b8c50c7c64
Format
2019-08-04 19:05:45 +02:00
jD91mZM2
c7d499d4f2
Upgrade to the 2018 edition
...
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00
jD91mZM2
72c2f59f17
Update redox_syscall to use bitflags
2019-08-04 19:05:45 +02:00
jD91mZM2
82abb3313e
Support adding WUNTRACED
2019-08-04 19:05:45 +02:00
jD91mZM2
f389010fff
Initial ptrace compatibility for Redox OS
2019-08-04 19:05:45 +02:00
jD91mZM2
43ff8801bc
Format
2019-08-04 19:05:44 +02:00
jD91mZM2
35c1d5210c
Implement the Once<T> synchronization structure
...
Not sure if I should add a RwLock for the ptrace state too...
2019-08-04 19:05:44 +02:00
jD91mZM2
e559a3e2e5
Stub for ptrace
...
It's happening...
2019-08-04 19:05:44 +02:00