Skip to content

Commit f0e50bc

Browse files
committed
Delete accept4 for now
1 parent 34c587e commit f0e50bc

2 files changed

Lines changed: 0 additions & 29 deletions

File tree

‎rules/socket/tgt_refcount.rs‎

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -202,30 +202,3 @@ fn f11(a0: i32, a1: i32, a2: i32, a3: Ptr<i32>) -> i32 {
202202
}
203203
}
204204
}
205-
206-
fn f15(a0: i32, a1: Ptr<Sockaddr>, a2: Ptr<u32>, a3: i32) -> i32 {
207-
let __flags = nix::sys::socket::SockFlag::from_bits_truncate(a3);
208-
let __raw = FdRegistry::with_fd(a0, |__fd| {
209-
nix::sys::socket::accept4(std::os::fd::AsRawFd::as_raw_fd(&__fd), __flags)
210-
});
211-
match __raw {
212-
Ok(__new) => {
213-
let __addr = a1.clone();
214-
let __len = a2.clone();
215-
if !__addr.is_null() {
216-
match nix::sys::socket::getpeername::<nix::sys::socket::SockaddrStorage>(__new) {
217-
Ok(__ss) => Sockaddr::encode(&__ss, &__addr, &__len),
218-
Err(__e) => panic!("accept4: getpeername failed: {__e}"),
219-
}
220-
}
221-
/* nix 0.30 accept4 returns RawFd; no safe OwnedFd constructor exists */
222-
FdRegistry::register(unsafe {
223-
<std::os::fd::OwnedFd as std::os::fd::FromRawFd>::from_raw_fd(__new)
224-
})
225-
}
226-
Err(__e) => {
227-
libcc2rs::cpp2rust_errno().write(__e as i32);
228-
-1
229-
}
230-
}
231-
}

‎rules/src/modules.rs‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ pub mod dirent_tgt_unsafe;
4848
pub mod errno_tgt_refcount;
4949
#[path = r#"../errno/tgt_unsafe.rs"#]
5050
pub mod errno_tgt_unsafe;
51-
#[path = r#"../eventfd/tgt_refcount.rs"#]
52-
pub mod eventfd_tgt_refcount;
5351
#[path = r#"../eventfd/tgt_unsafe.rs"#]
5452
pub mod eventfd_tgt_unsafe;
5553
#[path = r#"../fcntl/tgt_refcount.rs"#]

0 commit comments

Comments
 (0)