Merge branch 'ucred' into 'master'

remove ucred from sys_socket bits

See merge request redox-os/relibc!1172
This commit is contained in:
Jeremy Soller
2026-04-09 15:25:35 -06:00
2 changed files with 4 additions and 7 deletions
-6
View File
@@ -7,12 +7,6 @@ struct sockaddr_storage {
unsigned long __ss_align;
};
struct ucred {
pid_t pid;
uid_t uid;
gid_t gid;
};
// These definitions were taken from musl, license MIT {
#define __CMSG_LEN(cmsg) (((cmsg)->cmsg_len + sizeof(long) - 1) & ~(long)(sizeof(long) - 1))
#define __CMSG_NEXT(cmsg) ((unsigned char *)(cmsg) + __CMSG_LEN(cmsg))
+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)]