remove ucred from sys_socket bits

This commit is contained in:
auronandace
2026-04-09 09:59:24 +01:00
parent 6530de76b9
commit 121ee8edb0
2 changed files with 4 additions and 7 deletions
+4 -1
View File
@@ -53,7 +53,7 @@ pub struct cmsghdr {
}
#[repr(C)]
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Debug)]
// FIXME: CheckVsLibcCrate
pub struct ucred {
pub pid: pid_t,
@@ -64,6 +64,9 @@ pub struct ucred {
#[unsafe(no_mangle)]
pub extern "C" fn _cbindgen_export_cmsghdr(cmsghdr: cmsghdr) {}
#[unsafe(no_mangle)]
pub extern "C" fn _cbindgen_export_ucred(ucred: ucred) {}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_socket.h.html>.
#[repr(C)]
#[derive(Default, CheckVsLibcCrate)]