[Glibc-bsd-commits] r4933 - in trunk/freebsd-glue: debian include

Robert Millan rmh at alioth.debian.org
Mon Sep 2 18:48:31 UTC 2013


Author: rmh
Date: 2013-09-02 18:48:30 +0000 (Mon, 02 Sep 2013)
New Revision: 4933

Added:
   trunk/freebsd-glue/include/timeconv.h
Modified:
   trunk/freebsd-glue/debian/changelog
Log:
Add <timeconv.h> stubs.

Modified: trunk/freebsd-glue/debian/changelog
===================================================================
--- trunk/freebsd-glue/debian/changelog	2013-09-02 18:18:55 UTC (rev 4932)
+++ trunk/freebsd-glue/debian/changelog	2013-09-02 18:48:30 UTC (rev 4933)
@@ -2,6 +2,7 @@
 
   * Implement srandomdev().
   * Implement getdiskbyname().
+  * Add <timeconv.h> stubs.
 
  -- Robert Millan <rmh at debian.org>  Mon, 02 Sep 2013 16:49:24 +0200
 

Added: trunk/freebsd-glue/include/timeconv.h
===================================================================
--- trunk/freebsd-glue/include/timeconv.h	                        (rev 0)
+++ trunk/freebsd-glue/include/timeconv.h	2013-09-02 18:48:30 UTC (rev 4933)
@@ -0,0 +1,35 @@
+#ifndef _TIMECONV_H_
+#define	_TIMECONV_H_
+
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+
+#include <stdint.h>
+#define __need_time_t
+#include <time.h>
+
+static inline int32_t
+_time_to_time32 (time_t t)
+{
+  return((int32_t) t);
+}
+
+static inline int64_t
+_time_to_time64(time_t t)
+{
+  return((int64_t) t);
+}
+
+static inline time_t
+_time64_to_time(int64_t t64)
+{
+  return((time_t) t64);
+}
+    
+static inline time_t
+_time32_to_time(int32_t t32)
+{
+  return((time_t) t32);
+}
+
+#endif /* _TIMECONV_H_ */




More information about the Glibc-bsd-commits mailing list