Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: ports/glibc-compat/include/time.h

Issue 1260083004: Add needed functions to glibc-compat for pkg (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: fix wrong c++ lib Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/glibc-compat/include/sys/unistd.h ('k') | ports/glibc-compat/src/dirfd.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/glibc-compat/include/time.h
diff --git a/ports/glibc-compat/include/sys/stat.h b/ports/glibc-compat/include/time.h
similarity index 50%
copy from ports/glibc-compat/include/sys/stat.h
copy to ports/glibc-compat/include/time.h
index 9fefc086316dbc37f91069b40996f6d2788788b6..01243ad3cccbaf5f1a2ce6ad976af3d829d07d64 100644
--- a/ports/glibc-compat/include/sys/stat.h
+++ b/ports/glibc-compat/include/time.h
@@ -3,20 +3,16 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
+#ifndef GLIBCEMU_TIME_H
+#define GLIBCEMU_TIME_H 1
-#ifndef GLIBCEMU_SYS_STAT_H
-#define GLIBCEMU_SYS_STAT_H 1
+#include_next <time.h>
-#include_next <sys/stat.h>
+#include <sys/cdefs.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-mode_t umask(mode_t mask);
-
-#ifdef __cplusplus
-}
-#endif
+__BEGIN_DECLS
+time_t timegm(struct tm *tm);
+time_t timelocal(struct tm *tm);
+__END_DECLS
#endif
« no previous file with comments | « ports/glibc-compat/include/sys/unistd.h ('k') | ports/glibc-compat/src/dirfd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698