Stefan Lankes
d6e955f3bf
fix typos in new method
2020-10-11 11:55:51 +02:00
Stefan Lankes
986c1fc053
revise comments and descriptions of the helper functions
2020-10-11 11:54:54 +02:00
Stefan Lankes
d560b50d87
revise code to pass the format check
2020-10-11 11:54:16 +02:00
Stefan Lankes
16d65d0432
revise Hermit's mutex interface to support the behaviour of StaticMutex
...
rust-lang/rust#77147 simplifies things by splitting this Mutex type
into two types matching the two use cases: StaticMutex and MovableMutex.
To support the behavior of StaticMutex, we move part of the mutex
implementation into libstd.
2020-10-11 11:53:30 +02:00
Yuki Okushi
83685880b6
Rollup merge of #77748 - mati865:dead-code-cleanup, r=petrochenkov
...
Dead code cleanup in windows-gnu std
Closes https://github.com/rust-lang/rust/issues/77622
This is the only leftover I could find.
2020-10-11 03:19:12 +09:00
LinkTed
64facfef51
Fix unresolved link to SocketAncillary
2020-10-10 15:19:13 +02:00
LinkTed
7b596f2e13
Fix libc is ambiguous for Windows
2020-10-10 15:19:13 +02:00
LinkTed
fc65f6a0ce
Fix import errors for #[cfg(doc)] target
2020-10-10 15:19:13 +02:00
LinkTed
a81764731c
Add fake definitions for Windows
2020-10-10 15:19:13 +02:00
LinkTed
d0069a0cc5
Fix imports for MacOs
2020-10-10 15:19:13 +02:00
LinkTed
1ae54e560a
Change imports for cfg(doc)
2020-10-10 15:19:13 +02:00
LinkTed
e9bf69954c
Remove passcred for emscripten
2020-10-10 15:19:13 +02:00
LinkTed
6b0c3dfe00
Remove unnecessary trailing semicolon
2020-10-10 15:19:13 +02:00
LinkTed
ce167f8be7
Fix type mismatching for different OSes.
2020-10-10 15:19:13 +02:00
LinkTed
889c9272cb
Remove SocketCred for emscripten
2020-10-10 15:19:13 +02:00
LinkTed
0fcb834832
Fix unused import for IoSliceMut for macos
2020-10-10 15:19:13 +02:00
LinkTed
31e6e3896d
Fix SO_PASSCRED for macos
2020-10-10 15:19:13 +02:00
LinkTed
b01ce2cfd0
Fix MSG_CMSG_CLOEXEC for macos
2020-10-10 15:19:13 +02:00
LinkTed
c2a1b50140
Add conditional compilation for import
2020-10-10 15:19:13 +02:00
LinkTed
e0cedba63e
Fix cfg condition for test
2020-10-10 15:19:13 +02:00
LinkTed
d30508f95c
Remove target_os, which does not have SO_PASSCRED constant in libc
2020-10-10 15:19:13 +02:00
LinkTed
1f6d7dcc0a
Remove target_os, which does not have cmsghdr struct in libc
2020-10-10 15:19:13 +02:00
LinkTed
7b476d87fb
Remove target_os, which does not have MSG_CMSG_CLOEXEC constant in libc
2020-10-10 15:19:12 +02:00
LinkTed
db902bca3a
Add the code of the tracking issue
2020-10-10 15:19:12 +02:00
LinkTed
cc085e9170
Replace assert with unreachable
2020-10-10 15:19:12 +02:00
LinkTed
e61148f98a
Cast boolean into int directly in function set_passcred
2020-10-10 15:19:12 +02:00
LinkTed
d0b133cdc6
Remove unsupported target_os for SocketCred
2020-10-10 15:19:12 +02:00
LinkTed
5964d599ac
Change standard types to libc types
2020-10-10 15:19:12 +02:00
LinkTed
1902711f38
Change name of struct to SocketCred
2020-10-10 15:19:12 +02:00
LinkTed
eeea5c23b4
Change API to unsafe and add doc comments
2020-10-10 15:19:12 +02:00
LinkTed
686964f0f5
Add set_passcred and passcred methods to UnixStream and UnixDatagram
2020-10-10 15:19:12 +02:00
LinkTed
19c5fdda7c
Rename test.rs to tests.rs
2020-10-10 15:19:12 +02:00
LinkTed
a91fd7328c
Add doc comments
2020-10-10 15:19:12 +02:00
LinkTed
46764d48bb
Add doc(cfg(...))
2020-10-10 15:19:12 +02:00
LinkTed
1869141e54
Reduce impl trait by using macro in raw_fd.rs
2020-10-10 15:19:12 +02:00
LinkTed
53791b3ff4
Move conditional compilation to the upper module and sort the target OS list alphabetically
2020-10-10 15:19:12 +02:00
LinkTed
07ed6afc6d
Remove unnecessary path
2020-10-10 15:19:12 +02:00
LinkTed
6ed9bface6
Use fill instead of memset
2020-10-10 15:19:12 +02:00
LinkTed
1f3195a5df
Remove inner function in bind, connect and send_to
2020-10-10 15:19:12 +02:00
LinkTed
4c929a00ee
Remove lifetime annotation in messages function
2020-10-10 15:19:12 +02:00
LinkTed
b82f29d780
Remove Clone trait bound in add_to_ancillary_data
2020-10-10 15:19:11 +02:00
LinkTed
3dfab6fb64
Add integer overflow check
2020-10-10 15:19:11 +02:00
LinkTed
e1084052a7
Replace TryFrom of AncillaryData with a private method.
2020-10-10 15:19:11 +02:00
LinkTed
8784ffbb4e
Using read_unaligned instead of memcpy.
2020-10-10 15:19:11 +02:00
LinkTed
8783b06bd2
Move add_to_ancillary_data and AncillaryDataIter to ancillary.rs
2020-10-10 15:19:11 +02:00
LinkTed
e6984eee6f
Add UCred struct
2020-10-10 15:19:11 +02:00
LinkTed
6f82ddf18e
Add AncillaryError
2020-10-10 15:19:11 +02:00
LinkTed
6fa7c3f79e
Split net.rs into multiple files
2020-10-10 15:19:11 +02:00
LinkTed
0b3c9d8465
unix: Extend UnixStream and UnixDatagram to send and receive file descriptors
...
Add the functions `recv_vectored_fds` and `send_vectored_fds` to send and receive file descriptors, by using `recvmsg` and `sendmsg` system call.
2020-10-10 15:19:11 +02:00
bors
7477d445c8
Auto merge of #77717 - tmiasko:posix-spawn-error-check, r=cuviper
...
Fix error checking in posix_spawn implementation of Command
* Check for errors returned from posix_spawn*_init functions
* Check for non-zero return value from posix_spawn functions
2020-10-10 10:59:20 +00:00