/*
- * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2002 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
#ifndef _SYS_TIMEB_H_
#define _SYS_TIMEB_H_
-/* The ftime(2) system call structure -- deprecated. */
+#include <sys/appleapiopts.h>
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+
+/* [XSI] The time_t type shall be defined as described in <sys/types.h> */
+#ifndef _TIME_T
+#define _TIME_T
+typedef __darwin_time_t time_t;
+#endif
+
+/*
+ * [XSI] Structure whose address is passed as the first parameter to ftime()
+ */
struct timeb {
- time_t time; /* seconds since the Epoch */
- unsigned short millitm; /* + milliseconds since the Epoch */
- short timezone; /* minutes west of CUT */
- short dstflag; /* DST == non-zero */
+ time_t time; /* [XSI] Seconds since the Epoch */
+ unsigned short millitm; /* [XSI] Milliseconds since the Epoch */
+ short timezone; /* [XSI] Minutes west of CUT */
+ short dstflag; /* [XSI] non-zero if DST in effect */
};
+#ifndef KERNEL
+__BEGIN_DECLS
+/* [XSI] Legacy interface */
+int ftime(struct timeb *);
+__END_DECLS
+#endif /* !KERNEL */
+
#endif /* !_SYS_TIMEB_H_ */