veyron/profiles: fix the build - the files below were dropped by mistake.
Change-Id: I3e9ae35fb851e1f7b8b20a6cbb0388fd0c3e8ec0
diff --git a/profiles/uts_str_linux_arm.go b/profiles/uts_str_linux_arm.go
new file mode 100644
index 0000000..f2326ab
--- /dev/null
+++ b/profiles/uts_str_linux_arm.go
@@ -0,0 +1,16 @@
+// +build linux,arm
+
+package profiles
+
+// str converts the input byte slice to a string, ignoring everything following
+// a null character (including the null character).
+func utsStr(c []uint8) string {
+ ret := make([]byte, 0, len(c))
+ for _, v := range c {
+ if v == 0 {
+ break
+ }
+ ret = append(ret, byte(v))
+ }
+ return string(ret)
+}
diff --git a/profiles/uts_str_linux_nonarm.go b/profiles/uts_str_linux_nonarm.go
new file mode 100644
index 0000000..c17cef7
--- /dev/null
+++ b/profiles/uts_str_linux_nonarm.go
@@ -0,0 +1,16 @@
+// +build linux,arm
+
+package profiles
+
+// str converts the input byte slice to a string, ignoring everything following
+// a null character (including the null character).
+func utsStr(c []int8) string {
+ ret := make([]byte, 0, len(c))
+ for _, v := range c {
+ if v == 0 {
+ break
+ }
+ ret = append(ret, byte(v))
+ }
+ return string(ret)
+}