Upstreaming diffs in os_compat_android.cc

The original change description is:
Add mkdtemp() implementation.
The Android C library doesn't expose mkdtemp() through the NDK
(even though it implements it internally starting with ICS).
To avoid any problem in the future and keep everything strictly
compliant, provide our own implementation of the function.

BUG=
TEST=


Review URL: https://chromiumcodereview.appspot.com/10696114

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146813 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/base/os_compat_android.h b/base/os_compat_android.h
index f77859b33..0f254449 100644
--- a/base/os_compat_android.h
+++ b/base/os_compat_android.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
 
@@ -12,7 +12,7 @@
 // Not implemented in Bionic.
 extern "C" int futimes(int fd, const struct timeval tv[2]);
 
-// The prototype of mkdtemp is missing.
+// Not exposed or implemented in Bionic.
 extern "C" char* mkdtemp(char* path);
 
 // Android has no timegm().