summaryrefslogtreecommitdiff
path: root/mac/inc
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2005-05-13 08:48:01 +0000
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>2005-05-13 08:48:01 +0000
commitbfd3cbc4773edf4110eb751d44596214e825c99c (patch)
tree94dd580be9cb011ffbccad1716fa5e467027f5c0 /mac/inc
parent34e1bbc25ec8c93fb8f454715bbd759509a275a6 (diff)
downloademacs-bfd3cbc4773edf4110eb751d44596214e825c99c.tar.gz
(ITIMER_REAL): New macro.
(struct itimerval): New struct. (setitimer): New extern.
Diffstat (limited to 'mac/inc')
-rw-r--r--mac/inc/sys/time.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/mac/inc/sys/time.h b/mac/inc/sys/time.h
index b80135b7b5e..4ae305cf026 100644
--- a/mac/inc/sys/time.h
+++ b/mac/inc/sys/time.h
@@ -28,6 +28,21 @@ struct timeval {
long tv_usec; /* microseconds */
};
+#define ITIMER_REAL 0
+#if 0
+#define ITIMER_VIRTUAL 1
+#define ITIMER_PROF 2
+#endif
+
+struct itimerval {
+#if 0
+ struct timeval it_interval; /* timer interval */
+#endif
+ struct timeval it_value; /* current value */
+};
+
+extern int setitimer(int, const struct itimerval *, struct itimerval *);
+
#endif /* _SYS_TYPES_H */
/* arch-tag: f85ed04d-0e99-4f97-892b-fe029d0e92f9