Skip to content

Commit

Permalink
Add structures for freebsd
Browse files Browse the repository at this point in the history
  • Loading branch information
Жунёва Мария Михайловна committed Jul 12, 2024
1 parent 7d7151c commit a63fe25
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ task:
freebsd_instance:
image_family: freebsd-13-3
setup_script:
- pkg install -y libnghttp2 curl
- pkg install -y libnghttp2 curl evdev-proto
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
- . $HOME/.cargo/env
Expand All @@ -17,7 +17,7 @@ task:
freebsd_instance:
image: freebsd-14-1-release-amd64-ufs
setup_script:
- pkg install -y libnghttp2 curl
- pkg install -y libnghttp2 curl evdev-proto
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
- . $HOME/.cargo/env
Expand All @@ -31,7 +31,7 @@ task:
freebsd_instance:
image_family: freebsd-15-0-snap
setup_script:
- pkg install -y libnghttp2 curl
- pkg install -y libnghttp2 curl evdev-proto
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
- . $HOME/.cargo/env
Expand Down
2 changes: 2 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2066,6 +2066,7 @@ fn test_freebsd(target: &str) {
"sys/eui64.h",
"sys/event.h",
[freebsd13]:"sys/eventfd.h",
[freebsd13]:"linux/input.h",
"sys/extattr.h",
"sys/file.h",
"sys/ioctl.h",
Expand All @@ -2091,6 +2092,7 @@ fn test_freebsd(target: &str) {
"sys/thr.h",
"sys/time.h",
[freebsd14 || freebsd15]:"sys/timerfd.h",
[freebsd14 || freebsd15]:"linux/input.h",
"sys/times.h",
"sys/timex.h",
"sys/types.h",
Expand Down
16 changes: 16 additions & 0 deletions src/unix/bsd/freebsdlike/freebsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,22 @@ s! {
pub sem_flg: ::c_short,
}

pub struct input_event {
pub time: ::timeval,
pub type_: ::u_short,
pub code: ::u_short,
pub value: ::c_int,
}

pub struct input_absinfo {
pub value: ::c_int,
pub minimum: ::c_int,
pub maximum: ::c_int,
pub fuzz: ::c_int,
pub flat: ::c_int,
pub resolution: ::c_int,
}

pub struct msqid_ds {
pub msg_perm: ::ipc_perm,
__unused1: *mut ::c_void,
Expand Down

0 comments on commit a63fe25

Please sign in to comment.