about summary refs log tree commit diff
path: root/src/libstd/os/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd/os/android')
-rw-r--r--src/libstd/os/android/mod.rs3
-rw-r--r--src/libstd/os/android/raw.rs59
2 files changed, 60 insertions, 2 deletions
diff --git a/src/libstd/os/android/mod.rs b/src/libstd/os/android/mod.rs
index a94abba5d12..1947bebb947 100644
--- a/src/libstd/os/android/mod.rs
+++ b/src/libstd/os/android/mod.rs
@@ -10,10 +10,11 @@
 
 //! Android-specific definitions
 
-#![unstable(feature = "raw_ext", reason = "recently added API")]
+#![stable(feature = "raw_ext", since = "1.1.0")]
 
 pub mod raw;
 
 pub mod fs {
+    #![stable(feature = "raw_ext", since = "1.1.0")]
     pub use sys::fs::MetadataExt;
 }
diff --git a/src/libstd/os/android/raw.rs b/src/libstd/os/android/raw.rs
index ea80151623b..e5e89ad800a 100644
--- a/src/libstd/os/android/raw.rs
+++ b/src/libstd/os/android/raw.rs
@@ -10,6 +10,8 @@
 
 //! Android-specific raw type definitions
 
+#![stable(feature = "raw_ext", since = "1.1.0")]
+
 #[doc(inline)]
 pub use self::arch::{dev_t, mode_t, blkcnt_t, blksize_t, ino_t, nlink_t, off_t, stat, time_t};
 
@@ -18,36 +20,64 @@ mod arch {
     use os::raw::{c_uint, c_uchar, c_ulonglong, c_longlong, c_ulong};
     use os::unix::raw::{uid_t, gid_t};
 
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type dev_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type mode_t = u16;
 
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type blkcnt_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type blksize_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type ino_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type nlink_t = u16;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type off_t = i32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type time_t = i32;
 
     #[repr(C)]
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub struct stat {
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_dev: c_ulonglong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __pad0: [c_uchar; 4],
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __st_ino: ino_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mode: c_uint,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_nlink: c_uint,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_uid: uid_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_gid: gid_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_rdev: c_ulonglong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __pad3: [c_uchar; 4],
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_size: c_longlong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_blksize: blksize_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_blocks: c_ulonglong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_atime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_atime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mtime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mtime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ctime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ctime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ino: c_ulonglong,
     }
 
@@ -59,37 +89,64 @@ mod arch {
     use os::raw::{c_uchar, c_ulong};
     use os::unix::raw::{uid_t, gid_t};
 
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type dev_t = u64;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type mode_t = u32;
 
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type blkcnt_t = u64;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type blksize_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type ino_t = u64;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type nlink_t = u32;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type off_t = i64;
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub type time_t = i64;
 
     #[repr(C)]
+    #[stable(feature = "raw_ext", since = "1.1.0")]
     pub struct stat {
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_dev: dev_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __pad0: [c_uchar; 4],
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __st_ino: ino_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mode: mode_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_nlink: nlink_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_uid: uid_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_gid: gid_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_rdev: dev_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub __pad3: [c_uchar; 4],
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_size: off_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_blksize: blksize_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_blocks: blkcnt_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_atime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_atime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mtime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_mtime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ctime: time_t,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ctime_nsec: c_ulong,
+        #[stable(feature = "raw_ext", since = "1.1.0")]
         pub st_ino: ino_t,
     }
-
 }