4lDO2
4c11b607de
Implement pread and pwrite using the syscalls.
2024-06-14 14:10:47 +02:00
Peter Limkilde Svendsen
a7137512fa
Use standard casing and mangling for internal errno
2024-03-01 00:25:42 +00:00
Peter Limkilde Svendsen
9093f6bc47
Use Cell representation for errno
2024-02-29 14:07:40 +00:00
Jeremy Soller
d4b0e172f0
Add recvmsg (stub on redox)
2024-01-16 19:47:39 -07:00
Jeremy Soller
52612784b6
Add sendmsg stub
2024-01-12 15:36:01 -07:00
Jeremy Soller
9e0c53f222
Make long 32-bits on 32-bit systems
2022-12-01 18:33:00 -07:00
oddcoder
37a462de5d
Apply cargo fmt to the whole repo
2020-07-19 21:27:38 +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
06429ccc4c
Fix redox socket inner_get_name
2020-05-21 14:59:22 -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
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
Jeremy Soller
25e67b9f58
Add setsockopt support for SO_RCVTIMEO and SO_SNDTIMEO
2019-07-24 17:18:01 -06:00
Jeremy Soller
cfc541019c
Add socketpair on Linux with stub on Redox
2019-04-28 19:12:54 -06:00
Jeremy Soller
73dda0f32c
Add missing cast
2019-04-06 21:38:59 -06:00
Jeremy Soller
f2b86e985c
Ensure that getpeername and getsockname return a sockaddr of family AF_INET
2019-04-06 21:34:56 -06:00
Jeremy Soller
862c76b25f
Correct error for unknown protocol type in socket
2019-04-01 20:35:15 -06:00
Jeremy Soller
47235d44e7
Fix change of sockaddr member sa_data on Redox
2019-01-21 20:38:31 -07:00
Jeremy Soller
7aa789575a
Add shutdown, listen, and getpagesize
2018-12-26 19:26:38 -07:00
Jeremy Soller
bf111188e1
Reduce warnings for redox
2018-11-10 07:54:27 -07:00
Jeremy Soller
a567197b54
enable getsockopt and setsockopt
2018-09-20 14:39:58 -07:00
Jeremy Soller
9dbf49fdcd
Format and add O_CLOEXEC where appropriate
2018-09-18 19:52:47 -06:00
jD91mZM2
2aa7597a2b
Fix network problem with netdb on redox
2018-09-18 19:14:28 +02:00
Jeremy Soller
043ecf2cf9
Replace a println with a trace
2018-09-18 08:53:37 -06:00
jD91mZM2
10a7944aef
Avoid duplicate code
2018-09-18 08:08:55 +02:00
Jeremy Soller
c2f4c1dbc9
Add trace macro and feature
2018-09-17 21:29:40 -06:00
Jeremy Soller
35bdab7690
Remove protocol check from socket
2018-09-17 15:01:31 -06:00
jD91mZM2
077e922cc6
fixup! Delete duplicate types
2018-09-02 08:20:19 +02:00
jD91mZM2
26f953e11f
Run fmt.sh
2018-09-02 08:17:52 +02:00
jD91mZM2
6fe3e05ea0
Delete duplicate types
...
Now that we use cbindgen differently :D
2018-09-02 08:17:15 +02:00
Jeremy Soller
bab4e2896a
Format
2018-08-27 06:35:30 -06:00
Jeremy Soller
277b9abcd5
Fix build, mostly
2018-08-26 08:56:02 -06:00
Jeremy Soller
c20ce5ffed
Large reorganization of headers (WIP)
2018-08-26 08:11:35 -06:00