Use released libc-0.2.58 at crates.io
* Auto generated Android.bp from cargo2android.py.
* Release package is different from the current base,
which was from a development master.
* .cargo_vcs_info.json has the snapshot commit sha.
* Cleaned up Cargo.toml, with original version saved.
* Source files not used to build the release package are removed.
Test: build all rust modules
Change-Id: I2290bf6936f5a9bd4fbb87509708e22c8bf5585f
diff --git a/src/fuchsia/mod.rs b/src/fuchsia/mod.rs
index f2f9844..1d68341 100644
--- a/src/fuchsia/mod.rs
+++ b/src/fuchsia/mod.rs
@@ -432,6 +432,15 @@
pub int_n_sign_posn: ::c_char,
}
+ pub struct sigevent {
+ pub sigev_value: ::sigval,
+ pub sigev_signo: ::c_int,
+ pub sigev_notify: ::c_int,
+ pub sigev_notify_function: fn(::sigval),
+ pub sigev_notify_attributes: *mut pthread_attr_t,
+ pub __pad: [::c_char; 56 - 3 * 8 /* 8 == sizeof(long) */],
+ }
+
pub struct rlimit64 {
pub rlim_cur: rlim64_t,
pub rlim_max: rlim64_t,
@@ -953,15 +962,6 @@
pub nl_pid: u32,
pub nl_groups: u32
}
-
- pub struct sigevent {
- pub sigev_value: ::sigval,
- pub sigev_signo: ::c_int,
- pub sigev_notify: ::c_int,
- pub sigev_notify_function: fn(::sigval),
- pub sigev_notify_attributes: *mut pthread_attr_t,
- pub __pad: [::c_char; 56 - 3 * 8 /* 8 == sizeof(long) */],
- }
}
cfg_if! {
@@ -1255,39 +1255,6 @@
self.nl_groups.hash(state);
}
}
-
- impl PartialEq for sigevent {
- fn eq(&self, other: &sigevent) -> bool {
- self.sigev_value == other.sigev_value
- && self.sigev_signo == other.sigev_signo
- && self.sigev_notify == other.sigev_notify
- && self.sigev_notify_function == other.sigev_notify_function
- && self.sigev_notify_attributes
- == other.sigev_notify_attributes
- }
- }
- impl Eq for sigevent {}
- impl ::fmt::Debug for sigevent {
- fn fmt(&self, f: &mut ::fmt::Formatter) -> ::fmt::Result {
- f.debug_struct("sigevent")
- .field("sigev_value", &self.sigev_value)
- .field("sigev_signo", &self.sigev_signo)
- .field("sigev_notify", &self.sigev_notify)
- .field("sigev_notify_function", &self.sigev_notify_function)
- .field("sigev_notify_attributes",
- &self.sigev_notify_attributes)
- .finish()
- }
- }
- impl ::hash::Hash for sigevent {
- fn hash<H: ::hash::Hasher>(&self, state: &mut H) {
- self.sigev_value.hash(state);
- self.sigev_signo.hash(state);
- self.sigev_notify.hash(state);
- self.sigev_notify_function.hash(state);
- self.sigev_notify_attributes.hash(state);
- }
- }
}
}
@@ -2596,6 +2563,9 @@
pub const PR_CAP_AMBIENT_LOWER: ::c_int = 3;
pub const PR_CAP_AMBIENT_CLEAR_ALL: ::c_int = 4;
+pub const GRND_NONBLOCK: ::c_uint = 0x0001;
+pub const GRND_RANDOM: ::c_uint = 0x0002;
+
pub const ITIMER_REAL: ::c_int = 0;
pub const ITIMER_VIRTUAL: ::c_int = 1;
pub const ITIMER_PROF: ::c_int = 2;