Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System V shared memory APIs (2nd draft) #2314

Open
wants to merge 58 commits into
base: master
Choose a base branch
from

Formatting parse

ca0c5f9
Select commit
Loading
Failed to load commit list.
Open

System V shared memory APIs (2nd draft) #2314

Formatting parse
ca0c5f9
Select commit
Loading
Failed to load commit list.
Cirrus CI / FreeBSD 14 amd64 & i686 failed Mar 26, 2024 in 1m 34s

Task Summary

Instruction build failed in 01:14

Details

✅ 00:02 clone
✅ 00:15 setup
❌ 01:14 build

   Compiling thiserror-impl v1.0.58
   Compiling errno v0.3.8
   Compiling scopeguard v1.2.0
   Compiling semver v1.0.22
   Compiling smallvec v1.13.2
   Compiling ppv-lite86 v0.2.17
   Compiling rand_chacha v0.3.1
   Compiling byteorder v1.5.0
   Compiling pin-utils v0.1.0
   Compiling fastrand v2.0.2
   Compiling bitflags v1.3.2
   Compiling sysctl v0.4.6
   Compiling tempfile v3.10.1
   Compiling parking_lot v0.12.1
   Compiling rand v0.8.5
   Compiling assert-impl v0.1.3
error[E0308]: mismatched types
   --> test/sys/test_shm.rs:28:13
    |
27  |         let shm = Shm::<TestData>::create_and_connect(
    |                   ----------------------------------- arguments to this function are incorrect
28  |             SHM_TEST,
    |             ^^^^^^^^ expected `i64`, found `i32`
    |
note: associated function defined here
   --> /tmp/cirrus-ci-build/src/sys/shm.rs:101:12
    |
101 |     pub fn create_and_connect(key: key_t, mode: Mode) -> Result<Self> {
    |            ^^^^^^^^^^^^^^^^^^
help: you can convert an `i32` to an `i64`
    |
28  |             SHM_TEST.into(),
    |                     +++++++

error[E0308]: mismatched types
   --> test/sys/test_shm.rs:88:13
    |
87  |         Shm::<TestData>::shmget(
    |         ----------------------- arguments to this function are incorrect
88  |             SHM_TEST,
    |             ^^^^^^^^ expected `i64`, found `i32`
    |
note: associated function defined here
   --> /tmp/cirrus-ci-build/src/sys/shm.rs:186:19
    |
186 |     pub unsafe fn shmget(
    |                   ^^^^^^
help: you can convert an `i32` to an `i64`
    |
88  |             SHM_TEST.into(),
    |                     +++++++

For more information about this error, try `rustc --explain E0308`.
error: could not compile `nix` due to 2 previous errors

Exit status: 101