home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / c / condor40.zip / CONDOR / src / h / globals.h < prev    next >
Text File  |  1989-05-15  |  2KB  |  53 lines

  1. /* 
  2. ** Copyright 1986, 1987, 1988, 1989 University of Wisconsin
  3. ** 
  4. ** Permission to use, copy, modify, and distribute this software and its
  5. ** documentation for any purpose and without fee is hereby granted,
  6. ** provided that the above copyright notice appear in all copies and that
  7. ** both that copyright notice and this permission notice appear in
  8. ** supporting documentation, and that the name of the University of
  9. ** Wisconsin not be used in advertising or publicity pertaining to
  10. ** distribution of the software without specific, written prior
  11. ** permission.  The University of Wisconsin makes no representations about
  12. ** the suitability of this software for any purpose.  It is provided "as
  13. ** is" without express or implied warranty.
  14. ** 
  15. ** THE UNIVERSITY OF WISCONSIN DISCLAIMS ALL WARRANTIES WITH REGARD TO
  16. ** THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  17. ** FITNESS. IN NO EVENT SHALL THE UNIVERSITY OF WISCONSIN  BE LIABLE FOR
  18. ** ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19. ** WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  20. ** ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  21. ** OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22. ** 
  23. ** Authors:  Allan Bricker and Michael J. Litzkow,
  24. **              University of Wisconsin, Computer Sciences Dept.
  25. ** 
  26. */ 
  27.  
  28.  
  29. #define OPEN        1      /* IO operation */
  30. #define WRITE       2      /* IO operation */
  31. #define READ        3      /* IO operation */
  32. #define LSEEK       4      /* IO operation */
  33. #define CLOSE       5      /* IO operation */
  34. #define FLUSH       6      /* IO operation */
  35. #define START       7      /* IO operation */
  36. #define CHECKPOINT  8      /* IO operation */
  37. #define INTERRUPT   9      /* IO operation */
  38. #define TRANSFER   10      /* IO operation */
  39. #define EXIT       11      /* IO operation */
  40. #define SENDBACK   12      /* IO operation */
  41.  
  42. #define MAX_FILES  20
  43.  
  44. typedef struct
  45.   {
  46.     unsigned char  operation;      /* One of the "defines" given above        */
  47.     struct timeval initialTime;    /* Taken at the beginning of the operation */
  48.     struct timeval completionTime; /* Time taken at the end of the operation  */
  49.     int            fileDescriptor; /* On which the operation was made         */
  50.     long           numberOfBytes;  /* # of bytes involved in the IO operation */
  51.   }
  52. TraceEntry;
  53.