home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / fax-3.2.1 / lib / libutil / tv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-31  |  1.5 KB  |  78 lines

  1. /*
  2.   This file is part of the NetFax system.
  3.  
  4.   (c) Copyright 1989 by David M. Siegel and Sundar Narasimhan.
  5.       All rights reserved.
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation.
  10.  
  11.     This program is distributed in the hope that it will be useful, 
  12.     but WITHOUT ANY WARRANTY; without even the implied warranty of 
  13.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.     GNU General Public License for more details.
  15.  
  16.     You should have received a copy of the GNU General Public License
  17.     along with this program; if not, write to the Free Software
  18.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19. */
  20.  
  21. #ifndef INCtimeh
  22. #define INCtimeh 1
  23.  
  24. #include <sys/types.h>
  25. #include <sys/time.h>
  26.  
  27. /*
  28.   Prototypes:
  29. */
  30.  
  31. struct timeval *tv_current(
  32. #ifdef _PROTO
  33.     struct timeval *tp
  34. #endif
  35. );
  36.  
  37. struct timeval *tv_period_to_tv(
  38. #ifdef _PROTO
  39.     double period,
  40.     struct timeval *tp
  41. #endif
  42. );
  43.  
  44. struct timeval *tv_add(
  45. #ifdef _PROTO
  46.     struct timeval *tp1,
  47.     struct timeval *tp2
  48. #endif
  49. );
  50.  
  51. struct timeval *tv_subtract(
  52. #ifdef _PROTO
  53.     struct timeval *tp1,
  54.     struct timeval *tp2
  55. #endif
  56. );
  57.  
  58. struct timeval *tv_zero(
  59. #ifdef _PROTO
  60.     struct timeval *tp
  61. #endif
  62. );
  63.  
  64. int tv_iszero(
  65. #ifdef _PROTO
  66.     struct timeval *tp
  67. #endif
  68. );
  69.  
  70. int tv_cmp(
  71. #ifdef _PROTO
  72.     struct timeval *tp1,
  73.     struct timeval *tp2
  74. #endif
  75. );
  76.  
  77. #endif INCtimeh
  78.