musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/timeb.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013年10月25日 14:15:08 -0400
committerRich Felker <dalias@aerifal.cx>2013年10月25日 14:15:08 -0400
commit4b15d9f46a2b260661d2e054575e617c76795578 (patch)
treeb5ed03ad58216b42cfd0675f183aee72074c348b /include/sys/timeb.h
parent78f889153167452de4cbced921f6428b3d4f663a (diff)
downloadmusl-4b15d9f46a2b260661d2e054575e617c76795578.tar.gz
add legacy ftime function and sys/timeb.h
despite being marked legacy, this was specified by SUSv3 as part of the XSI option; only the most recent version of the standard dropped it. reportedly there's actual code using it.
Diffstat (limited to 'include/sys/timeb.h')
-rw-r--r--include/sys/timeb.h 22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/sys/timeb.h b/include/sys/timeb.h
new file mode 100644
index 00000000..108c1f5c
--- /dev/null
+++ b/include/sys/timeb.h
@@ -0,0 +1,22 @@
+#ifndef _SYS_TIMEB_H
+#define _SYS_TIMEB_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define __NEED_time_t
+
+#include <bits/alltypes.h>
+
+struct timeb {
+ time_t time;
+ unsigned short millitm;
+ short timezone, dstflag;
+};
+
+int ftime(struct timeb *);
+
+#ifdef __cplusplus
+}
+#endif
+#endif
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月04日 11:10:58 +0000

AltStyle によって変換されたページ (->オリジナル) /