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 / ckpt_file.h next >
C/C++ Source or Header  |  1989-05-15  |  2KB  |  66 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. /*
  30. **    The rstrt record contains all information needed to
  31. **    restart a checkpointed program.
  32. */
  33.  
  34. #ifndef _CKPT_FILE_
  35. #define _CKPT_FILE_
  36.  
  37. typedef struct FileInfo FINFO;
  38. struct FileInfo {
  39.     u_short         fi_flags;        /* See below                                 */
  40.     u_short         fi_priv;        /* R/W/RW                                    */
  41.     u_long         fi_pos;        /* Position within the file                  */
  42.     u_short         fi_fdno;        /* File descriptor number                    */
  43.     char        *fi_path;        /* Variable length *FULL* path to file       */
  44. };
  45.  
  46. /*
  47. **    Flag definitions for fi_flags
  48. */
  49. #define FI_OPEN        0x0001        /* This file is open                         */
  50. #define FI_DUP        0x0002        /* This file is a dup of 'fi_fdno'           */
  51. #define FI_PREOPEN    0x0004        /* This file was opened previously           */
  52.  
  53. typedef struct RestartRec RESTREC;
  54. struct RestartRec {
  55.     FINFO        rr_file[NOFILE];/* Open file information                     */
  56. };
  57.  
  58. /*
  59. **    Global variables of general interest
  60. */
  61. char    CkptFile[ MAXPATHLEN ];
  62. char    CWD[ MAXPATHLEN ];
  63. RESTREC    RestartInfo;
  64.  
  65. #endif _CKPT_FILE_
  66.