Merge "All our structs should have a public constructor."
diff --git a/luni/src/main/java/libcore/io/StructStat.java b/luni/src/main/java/libcore/io/StructStat.java
index 05ecca7..00371fb 100644
--- a/luni/src/main/java/libcore/io/StructStat.java
+++ b/luni/src/main/java/libcore/io/StructStat.java
@@ -70,7 +70,7 @@
/** Number of blocks allocated for this object. */
public final long st_blocks; /*blkcnt_t*/
- StructStat(long st_dev, long st_ino, int st_mode, long st_nlink, int st_uid, int st_gid,
+ public StructStat(long st_dev, long st_ino, int st_mode, long st_nlink, int st_uid, int st_gid,
long st_rdev, long st_size, long st_atime, long st_mtime, long st_ctime,
long st_blksize, long st_blocks) {
this.st_dev = st_dev;
diff --git a/luni/src/main/java/libcore/io/StructStatVfs.java b/luni/src/main/java/libcore/io/StructStatVfs.java
index bb78ff2..bdff111 100644
--- a/luni/src/main/java/libcore/io/StructStatVfs.java
+++ b/luni/src/main/java/libcore/io/StructStatVfs.java
@@ -53,7 +53,7 @@
/** Maximum filename length. */
public final long f_namemax; /*unsigned long*/
- StructStatVfs(long f_bsize, long f_frsize, long f_blocks, long f_bfree, long f_bavail,
+ public StructStatVfs(long f_bsize, long f_frsize, long f_blocks, long f_bfree, long f_bavail,
long f_files, long f_ffree, long f_favail,
long f_fsid, long f_flag, long f_namemax) {
this.f_bsize = f_bsize;
diff --git a/luni/src/main/java/libcore/io/StructUcred.java b/luni/src/main/java/libcore/io/StructUcred.java
index 359995d..c13212c 100644
--- a/luni/src/main/java/libcore/io/StructUcred.java
+++ b/luni/src/main/java/libcore/io/StructUcred.java
@@ -29,7 +29,7 @@
/** The peer process' gid. */
public final int gid;
- private StructUcred(int pid, int uid, int gid) {
+ public StructUcred(int pid, int uid, int gid) {
this.pid = pid;
this.uid = uid;
this.gid = gid;
diff --git a/luni/src/main/java/libcore/io/StructUtsname.java b/luni/src/main/java/libcore/io/StructUtsname.java
index e6a8e42..d7d606b 100644
--- a/luni/src/main/java/libcore/io/StructUtsname.java
+++ b/luni/src/main/java/libcore/io/StructUtsname.java
@@ -37,7 +37,7 @@
/** The machine architecture, such as "armv7l" or "x86_64". */
public final String machine;
- StructUtsname(String sysname, String nodename, String release, String version, String machine) {
+ public StructUtsname(String sysname, String nodename, String release, String version, String machine) {
this.sysname = sysname;
this.nodename = nodename;
this.release = release;