Skip to content

Commit e117db4

Browse files
committed
Rebase error
1 parent f62f2d4 commit e117db4

File tree

1 file changed

+0
-211
lines changed

1 file changed

+0
-211
lines changed

src/unix/nto/mod.rs

Lines changed: 0 additions & 211 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,7 @@ s! {
670670
pub uc_stack: stack_t,
671671
pub uc_mcontext: mcontext_t,
672672
}
673-
}
674673

675-
s_no_extra_traits! {
676674
pub struct sockaddr_un {
677675
pub sun_len: u8,
678676
pub sun_family: sa_family_t,
@@ -800,215 +798,6 @@ s_no_extra_traits! {
800798
}
801799
}
802800

803-
cfg_if! {
804-
if #[cfg(feature = "extra_traits")] {
805-
// sigevent
806-
impl PartialEq for sigevent {
807-
fn eq(&self, other: &sigevent) -> bool {
808-
self.sigev_notify == other.sigev_notify
809-
&& self.sigev_signo == other.sigev_signo
810-
&& self.sigev_value == other.sigev_value
811-
&& self.__sigev_un2 == other.__sigev_un2
812-
}
813-
}
814-
impl Eq for sigevent {}
815-
impl hash::Hash for sigevent {
816-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
817-
self.sigev_notify.hash(state);
818-
self.sigev_signo.hash(state);
819-
self.sigev_value.hash(state);
820-
self.__sigev_un2.hash(state);
821-
}
822-
}
823-
824-
impl PartialEq for sockaddr_un {
825-
fn eq(&self, other: &sockaddr_un) -> bool {
826-
self.sun_len == other.sun_len
827-
&& self.sun_family == other.sun_family
828-
&& self
829-
.sun_path
830-
.iter()
831-
.zip(other.sun_path.iter())
832-
.all(|(a, b)| a == b)
833-
}
834-
}
835-
impl Eq for sockaddr_un {}
836-
837-
impl hash::Hash for sockaddr_un {
838-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
839-
self.sun_len.hash(state);
840-
self.sun_family.hash(state);
841-
self.sun_path.hash(state);
842-
}
843-
}
844-
845-
// sigset_t
846-
impl PartialEq for sigset_t {
847-
fn eq(&self, other: &sigset_t) -> bool {
848-
self.__val == other.__val
849-
}
850-
}
851-
impl Eq for sigset_t {}
852-
impl hash::Hash for sigset_t {
853-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
854-
self.__val.hash(state);
855-
}
856-
}
857-
858-
// msg
859-
860-
// msqid_ds
861-
862-
// sockaddr_dl
863-
impl PartialEq for sockaddr_dl {
864-
fn eq(&self, other: &sockaddr_dl) -> bool {
865-
self.sdl_len == other.sdl_len
866-
&& self.sdl_family == other.sdl_family
867-
&& self.sdl_index == other.sdl_index
868-
&& self.sdl_type == other.sdl_type
869-
&& self.sdl_nlen == other.sdl_nlen
870-
&& self.sdl_alen == other.sdl_alen
871-
&& self.sdl_slen == other.sdl_slen
872-
&& self
873-
.sdl_data
874-
.iter()
875-
.zip(other.sdl_data.iter())
876-
.all(|(a, b)| a == b)
877-
}
878-
}
879-
impl Eq for sockaddr_dl {}
880-
impl hash::Hash for sockaddr_dl {
881-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
882-
self.sdl_len.hash(state);
883-
self.sdl_family.hash(state);
884-
self.sdl_index.hash(state);
885-
self.sdl_type.hash(state);
886-
self.sdl_nlen.hash(state);
887-
self.sdl_alen.hash(state);
888-
self.sdl_slen.hash(state);
889-
self.sdl_data.hash(state);
890-
}
891-
}
892-
893-
impl PartialEq for utsname {
894-
fn eq(&self, other: &utsname) -> bool {
895-
self.sysname
896-
.iter()
897-
.zip(other.sysname.iter())
898-
.all(|(a, b)| a == b)
899-
&& self
900-
.nodename
901-
.iter()
902-
.zip(other.nodename.iter())
903-
.all(|(a, b)| a == b)
904-
&& self
905-
.release
906-
.iter()
907-
.zip(other.release.iter())
908-
.all(|(a, b)| a == b)
909-
&& self
910-
.version
911-
.iter()
912-
.zip(other.version.iter())
913-
.all(|(a, b)| a == b)
914-
&& self
915-
.machine
916-
.iter()
917-
.zip(other.machine.iter())
918-
.all(|(a, b)| a == b)
919-
}
920-
}
921-
922-
impl Eq for utsname {}
923-
924-
impl hash::Hash for utsname {
925-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
926-
self.sysname.hash(state);
927-
self.nodename.hash(state);
928-
self.release.hash(state);
929-
self.version.hash(state);
930-
self.machine.hash(state);
931-
}
932-
}
933-
934-
impl PartialEq for mq_attr {
935-
fn eq(&self, other: &mq_attr) -> bool {
936-
self.mq_maxmsg == other.mq_maxmsg
937-
&& self.mq_msgsize == other.mq_msgsize
938-
&& self.mq_flags == other.mq_flags
939-
&& self.mq_curmsgs == other.mq_curmsgs
940-
&& self.mq_msgsize == other.mq_msgsize
941-
&& self.mq_sendwait == other.mq_sendwait
942-
&& self.mq_recvwait == other.mq_recvwait
943-
}
944-
}
945-
946-
impl Eq for mq_attr {}
947-
948-
impl hash::Hash for mq_attr {
949-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
950-
self.mq_maxmsg.hash(state);
951-
self.mq_msgsize.hash(state);
952-
self.mq_flags.hash(state);
953-
self.mq_curmsgs.hash(state);
954-
self.mq_sendwait.hash(state);
955-
self.mq_recvwait.hash(state);
956-
}
957-
}
958-
959-
impl PartialEq for sockaddr_storage {
960-
fn eq(&self, other: &sockaddr_storage) -> bool {
961-
self.ss_len == other.ss_len
962-
&& self.ss_family == other.ss_family
963-
&& self.__ss_pad1 == other.__ss_pad1
964-
&& self.__ss_align == other.__ss_align
965-
&& self
966-
.__ss_pad2
967-
.iter()
968-
.zip(other.__ss_pad2.iter())
969-
.all(|(a, b)| a == b)
970-
}
971-
}
972-
973-
impl Eq for sockaddr_storage {}
974-
975-
impl hash::Hash for sockaddr_storage {
976-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
977-
self.ss_len.hash(state);
978-
self.ss_family.hash(state);
979-
self.__ss_pad1.hash(state);
980-
self.__ss_align.hash(state);
981-
self.__ss_pad2.hash(state);
982-
}
983-
}
984-
985-
impl PartialEq for dirent {
986-
fn eq(&self, other: &dirent) -> bool {
987-
self.d_ino == other.d_ino
988-
&& self.d_offset == other.d_offset
989-
&& self.d_reclen == other.d_reclen
990-
&& self.d_namelen == other.d_namelen
991-
&& self.d_name[..self.d_namelen as _]
992-
.iter()
993-
.zip(other.d_name.iter())
994-
.all(|(a, b)| a == b)
995-
}
996-
}
997-
998-
impl Eq for dirent {}
999-
1000-
impl hash::Hash for dirent {
1001-
fn hash<H: hash::Hasher>(&self, state: &mut H) {
1002-
self.d_ino.hash(state);
1003-
self.d_offset.hash(state);
1004-
self.d_reclen.hash(state);
1005-
self.d_namelen.hash(state);
1006-
self.d_name[..self.d_namelen as _].hash(state);
1007-
}
1008-
}
1009-
}
1010-
}
1011-
1012801
pub const _SYSNAME_SIZE: usize = 256 + 1;
1013802
pub const RLIM_INFINITY: crate::rlim_t = 0xfffffffffffffffd;
1014803
pub const O_LARGEFILE: c_int = 0o0100000;

0 commit comments

Comments
 (0)