home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume22 / archie / part01 / perrno.h < prev    next >
C/C++ Source or Header  |  1991-08-21  |  4KB  |  110 lines

  1. /*
  2.  * Copyright (c) 1989, 1990 by the University of Washington
  3.  *
  4.  * For copying and distribution information, please see the file
  5.  * <uw-copyright.h>.
  6.  */
  7.  
  8. #include <uw-copyright.h>
  9.  
  10. /* this file and p_err_text.c should be updated simultaneously */
  11.  
  12. /*
  13.  * perrno.h - definitions for perrno
  14.  *
  15.  * This file contains the declarations and defintions of of the external
  16.  * error values in which errors are returned by the pfs and psrv
  17.  * libraries.
  18.  */
  19.  
  20. /**/ /* Means that this code should be replace by the 24X series code */
  21.  
  22. extern int    perrno;
  23. extern char    p_err_string[];
  24. extern char    *p_err_text[];
  25.  
  26. /* Error codes returned or found in verrno */
  27.  
  28. #ifndef PSUCCESS
  29. #define    PSUCCESS        0
  30. #endif
  31.  
  32. /* dirsend (perrno) */
  33. #define DIRSEND_PORT_UNKN    1    /* DIRSRV UDP port unknown      */
  34. #define DIRSEND_UDP_CANT    2    /* Can't open local UDP port    */
  35. #define DIRSEND_BAD_HOSTNAME    3    /* Can't resolve hostname       */
  36. #define DIRSEND_NOT_ALL_SENT    4    /* Didn't send entire message   */
  37. #define DIRSEND_SELECT_FAILED    5    /* Select failed            */
  38. #define DIRSEND_BAD_RECV    6    /* Recvfrom failed             */
  39.  
  40. /* reply */
  41. #define REPLY_NOTSENT        11    /* Reply: sendto failed            */
  42.  
  43. /* vl_insert */
  44. #define VL_INSERT_ALREADY_THERE    21    /* Link already exists            */
  45. #define VL_INSERT_CONFLICT    22    /* Link exists with same name   */
  46.  
  47. /* ul_insert */
  48. #define UL_INSERT_ALREADY_THERE 25    /* Link already exists        */
  49. #define UL_INSERT_SUPERSEDING   26    /* Replacing existing link    */
  50. #define UL_INSERT_POS_NOTFOUND  27    /* Prv entry not in dir->ulinks */
  51.  
  52. /* rd_vdir */
  53. #define RVD_DIR_NOT_THERE    41    /* Temporary NOT_FOUND            */
  54. #define RVD_NO_CLOSED_NS    42    /* Namespace not closed w/ object:: */
  55. #define RVD_NO_NS_ALIAS        43    /* No alias for namespace NS#:      */
  56. #define RVD_NS_NOT_FOUND    44    /* Specified namespace not found    */
  57.  
  58. /* pfs_access */
  59. #define PFSA_AM_NOT_SUPPORTED   51      /* Access method not supported  */
  60.  
  61. /* pmap_cache */
  62. #define PMC_DELETE_ON_CLOSE     55    /* Delete cached copy on close   */
  63. #define PMC_RETRIEVE_FAILED     56      /* Unable to retrieve file       */
  64.  
  65. /* mk_vdir */
  66. /* #define MKVD_ALREADY_EXISTS     61    /* Directory already exists      */
  67. /* #define MKVD_NAME_CONFLICT    62    /* Link with name already exists */
  68.  
  69. /* vfsetenv */
  70. #define VFSN_NOT_A_VS        65    /* Not a virtual system          */
  71. #define VFSN_CANT_FIND_DIR    66    /* Not a virtual system          */
  72.  
  73. /* add_vlink */
  74. /* #define ADDVL_ALREADY_EXISTS    71    /* Directory already exists      */
  75. /* #define ADDVL_NAME_CONFLICT    72    /* Link with name already exists */
  76.  
  77. /* Local error codes on server */
  78.  
  79. /* dsrdir */
  80. #define DSRDIR_NOT_A_DIRECTORY 111    /* Not a directory name        */
  81. /* dsrfinfo */
  82. #define DSRFINFO_NOT_A_FILE    121      /* Object not found             */
  83. #define DSRFINFO_FORWARDED     122      /* Object has moved             */
  84.  
  85. /* Error codes that may be returned by various procedures               */
  86. #define PFS_FILE_NOT_FOUND     230      /* File not found               */
  87. #define PFS_DIR_NOT_FOUND      231      /* Directory in path not found  */
  88. #define PFS_SYMLINK_DEPTH      232    /* Max sym-link depth exceeded  */
  89. #define PFS_ENV_NOT_INITIALIZED    233    /* Can't read environment    */
  90. #define PFS_EXT_USED_AS_DIR    234    /* Can't use externals as dirs  */
  91.  
  92. /* Error codes returned by directory server                    */
  93. /* some of these duplicate errors from individual routines     */
  94. /* some of those error codes should be eliminated              */
  95. #define DIRSRV_AUTHENT_REQ     242      /* Authentication required       */
  96. #define DIRSRV_NOT_AUTHORIZED  243      /* Not authorized                */
  97. #define DIRSRV_NOT_FOUND       244      /* Not found                     */
  98. #define DIRSRV_BAD_VERS        245
  99. #define DIRSRV_NOT_DIRECTORY   246
  100. #define DIRSRV_ALREADY_EXISTS  247    /* Identical link already exists */
  101. #define DIRSRV_NAME_CONFLICT   248    /* Link with name already exists */
  102.  
  103. #define DIRSRV_BAD_FORMAT      252
  104. #define DIRSRV_ERROR           253
  105. #define DIRSRV_SERVER_FAILED   254      /* Unspecified server failure    */
  106.  
  107. #ifndef PFAILURE
  108. #define    PFAILURE            255
  109. #endif
  110.