1N/A/***********************************************************************
1N/A* *
1N/A* This software is part of the ast package *
1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property *
1N/A* and is licensed under the *
1N/A* Common Public License, Version 1.0 *
1N/A* by AT&T Intellectual Property *
1N/A* *
1N/A* A copy of the License is available at *
1N/A* http://www.opensource.org/licenses/cpl1.0.txt *
1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
1N/A* *
1N/A* Information and Software Systems Research *
1N/A* AT&T Research *
1N/A* Florham Park NJ *
1N/A* *
1N/A* Glenn Fowler <gsf@research.att.com> *
1N/A* David Korn <dgk@research.att.com> *
1N/A* Phong Vo <kpv@research.att.com> *
1N/A* *
1N/A***********************************************************************/
1N/A
1N/A/* : : generated by proto : : */
1N/A/* : : generated from /home/gisburn/ksh93/ast_ksh_20110208/build_i386_64bit_opt/src/lib/libast/features/tv by iffe version 2011-01-07 : : */
1N/A
1N/A#ifndef _TV_H
1N/A#if !defined(__PROTO__)
1N/A# if defined(__STDC__) || defined(__cplusplus) || defined(_proto) || defined(c_plusplus)
1N/A# if defined(__cplusplus)
1N/A# define __LINKAGE__ "C"
1N/A# else
1N/A# define __LINKAGE__
1N/A# endif
1N/A# define __STDARG__
1N/A# define __PROTO__(x) x
1N/A# define __OTORP__(x)
1N/A# define __PARAM__(n,o) n
1N/A# if !defined(__STDC__) && !defined(__cplusplus)
1N/A# if !defined(c_plusplus)
1N/A# define const
1N/A# endif
1N/A# define signed
1N/A# define void int
1N/A# define volatile
1N/A# define __V_ char
1N/A# else
1N/A# define __V_ void
1N/A# endif
1N/A# else
1N/A# define __PROTO__(x) ()
1N/A# define __OTORP__(x) x
1N/A# define __PARAM__(n,o) o
1N/A# define __LINKAGE__
1N/A# define __V_ char
1N/A# define const
1N/A# define signed
1N/A# define void int
1N/A# define volatile
1N/A# endif
1N/A# define __MANGLE__ __LINKAGE__
1N/A# if defined(__cplusplus) || defined(c_plusplus)
1N/A# define __VARARG__ ...
1N/A# else
1N/A# define __VARARG__
1N/A# endif
1N/A# if defined(__STDARG__)
1N/A# define __VA_START__(p,a) va_start(p,a)
1N/A# else
1N/A# define __VA_START__(p,a) va_start(p)
1N/A# endif
1N/A# if !defined(__INLINE__)
1N/A# if defined(__cplusplus)
1N/A# define __INLINE__ extern __MANGLE__ inline
1N/A# else
1N/A# if defined(_WIN32) && !defined(__GNUC__)
1N/A# define __INLINE__ __inline
1N/A# endif
1N/A# endif
1N/A# endif
1N/A#endif
1N/A#if !defined(__LINKAGE__)
1N/A#define __LINKAGE__ /* 2004-08-11 transition */
1N/A#endif
1N/A
1N/A#define _TV_H 1
1N/A/*
1N/A * AT&T Research
1N/A *
1N/A * high resolution Tv_t interface definitions
1N/A */
1N/A
1N/A#include <ast.h>
1N/A
1N/A#define TV_NSEC_IGNORE (1000000000L)
1N/A#define TV_TOUCH_RETAIN ((Tv_t*)1)
1N/A
1N/Atypedef struct Tv_s
1N/A{
1N/A uint32_t tv_sec;
1N/A uint32_t tv_nsec;
1N/A} Tv_t;
1N/A
1N/A#define ST_ATIME_NSEC_GET(st) ((st)->st_atim.tv_nsec)
1N/A#define ST_CTIME_NSEC_GET(st) ((st)->st_ctim.tv_nsec)
1N/A#define ST_MTIME_NSEC_GET(st) ((st)->st_mtim.tv_nsec)
1N/A
1N/A#define ST_ATIME_NSEC_SET(st,n) (ST_ATIME_NSEC_GET(st)=(n))
1N/A#define ST_CTIME_NSEC_SET(st,n) (ST_CTIME_NSEC_GET(st)=(n))
1N/A#define ST_MTIME_NSEC_SET(st,n) (ST_MTIME_NSEC_GET(st)=(n))
1N/A
1N/A#define tvgetatime(t,s) ((t)->tv_nsec=ST_ATIME_NSEC_GET(s),(t)->tv_sec=(s)->st_atime)
1N/A#define tvgetmtime(t,s) ((t)->tv_nsec=ST_MTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_mtime)
1N/A#define tvgetctime(t,s) ((t)->tv_nsec=ST_CTIME_NSEC_GET(s),(t)->tv_sec=(s)->st_ctime)
1N/A
1N/A#define tvsetatime(t,s) (ST_ATIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_atime=(t)->tv_sec)
1N/A#define tvsetmtime(t,s) (ST_MTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_mtime=(t)->tv_sec)
1N/A#define tvsetctime(t,s) (ST_CTIME_NSEC_SET(s,(t)->tv_nsec),(s)->st_ctime=(t)->tv_sec)
1N/A
1N/A#if _BLD_ast && defined(__EXPORT__)
1N/A#undef __MANGLE__
1N/A#define __MANGLE__ __LINKAGE__ __EXPORT__
1N/A#endif
1N/A
1N/Aextern __MANGLE__ int tvgettime __PROTO__((Tv_t*));
1N/Aextern __MANGLE__ int tvsettime __PROTO__((const Tv_t*));
1N/Aextern __MANGLE__ int tvcmp __PROTO__((const Tv_t*, const Tv_t*));
1N/Aextern __MANGLE__ int tvtouch __PROTO__((const char*, const Tv_t*, const Tv_t*, const Tv_t*, int));
1N/Aextern __MANGLE__ int tvsleep __PROTO__((const Tv_t*, Tv_t*));
1N/A
1N/Aextern __MANGLE__ char* fmttv __PROTO__((const char*, Tv_t*));
1N/A
1N/A#endif