diff options
| author | YAMAMOTO Mitsuharu | 2005-05-13 08:48:01 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-05-13 08:48:01 +0000 |
| commit | bfd3cbc4773edf4110eb751d44596214e825c99c (patch) | |
| tree | 94dd580be9cb011ffbccad1716fa5e467027f5c0 | |
| parent | 34e1bbc25ec8c93fb8f454715bbd759509a275a6 (diff) | |
| download | emacs-bfd3cbc4773edf4110eb751d44596214e825c99c.tar.gz emacs-bfd3cbc4773edf4110eb751d44596214e825c99c.zip | |
(ITIMER_REAL): New macro.
(struct itimerval): New struct.
(setitimer): New extern.
| -rw-r--r-- | mac/inc/sys/time.h | 15 |
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 { | |||
| 28 | long tv_usec; /* microseconds */ | 28 | long tv_usec; /* microseconds */ |
| 29 | }; | 29 | }; |
| 30 | 30 | ||
| 31 | #define ITIMER_REAL 0 | ||
| 32 | #if 0 | ||
| 33 | #define ITIMER_VIRTUAL 1 | ||
| 34 | #define ITIMER_PROF 2 | ||
| 35 | #endif | ||
| 36 | |||
| 37 | struct itimerval { | ||
| 38 | #if 0 | ||
| 39 | struct timeval it_interval; /* timer interval */ | ||
| 40 | #endif | ||
| 41 | struct timeval it_value; /* current value */ | ||
| 42 | }; | ||
| 43 | |||
| 44 | extern int setitimer(int, const struct itimerval *, struct itimerval *); | ||
| 45 | |||
| 31 | #endif /* _SYS_TYPES_H */ | 46 | #endif /* _SYS_TYPES_H */ |
| 32 | 47 | ||
| 33 | /* arch-tag: f85ed04d-0e99-4f97-892b-fe029d0e92f9 | 48 | /* arch-tag: f85ed04d-0e99-4f97-892b-fe029d0e92f9 |