HTVMSUtils.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /* VMS specific routines
  2. */
  3. #ifndef HTVMSUTIL_H
  4. #define HTVMSUTIL_H
  5. #ifndef HTUTILS_H
  6. #include <HTUtils.h>
  7. #endif
  8. #include <HTAnchor.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. extern BOOL HTVMSFileVersions; /* Include version numbers in listing? */
  13. /* PUBLIC HTVMS_authSysPrv()
  14. * CHECKS IF THIS PROCESS IS AUTHORIZED TO ENABLE SYSPRV
  15. * ON ENTRY:
  16. * No arguments.
  17. *
  18. * ON EXIT:
  19. * returns YES if SYSPRV is authorized
  20. */
  21. extern BOOL HTVMS_authSysPrv(void);
  22. /* PUBLIC HTVMS_enableSysPrv()
  23. * ENABLES SYSPRV
  24. * ON ENTRY:
  25. * No arguments.
  26. *
  27. * ON EXIT:
  28. *
  29. */
  30. extern void HTVMS_enableSysPrv(void);
  31. /* PUBLIC HTVMS_disableSysPrv()
  32. * DISABLES SYSPRV
  33. * ON ENTRY:
  34. * No arguments.
  35. *
  36. * ON EXIT:
  37. *
  38. */
  39. extern void HTVMS_disableSysPrv(void);
  40. /* PUBLIC HTVMS_checkAccess()
  41. * CHECKS ACCESS TO FILE FOR CERTAIN USER
  42. * ON ENTRY:
  43. * FileName The file to be accessed
  44. * UserName Name of the user to check access for
  45. *
  46. * ON EXIT:
  47. * returns YES if access is allowed
  48. *
  49. */
  50. extern BOOL HTVMS_checkAccess(const char *FileName,
  51. const char *UserName,
  52. const char *Method);
  53. /* PUBLIC HTVMS_wwwName()
  54. * CONVERTS VMS Name into WWW Name
  55. * ON ENTRY:
  56. * vmsname VMS file specification (NO NODE)
  57. *
  58. * ON EXIT:
  59. * returns www file specification
  60. *
  61. * EXAMPLES:
  62. * vmsname wwwname
  63. * DISK$USER disk$user
  64. * DISK$USER: /disk$user/
  65. * DISK$USER:[DUNS] /disk$user/duns
  66. * DISK$USER:[DUNS.ECHO] /disk$user/duns/echo
  67. * [DUNS] duns
  68. * [DUNS.ECHO] duns/echo
  69. * [DUNS.ECHO.-.TRANS] duns/echo/../trans
  70. * [DUNS.ECHO.--.TRANS] duns/echo/../../trans
  71. * [.DUNS] duns
  72. * [.DUNS.ECHO] duns/echo
  73. * [.DUNS.ECHO]TEST.COM duns/echo/test.com
  74. * TEST.COM test.com
  75. *
  76. *
  77. */
  78. const extern char *HTVMS_wwwName(const char *vmsname);
  79. extern int HTVMSBrowseDir(const char *address,
  80. HTParentAnchor *anchor,
  81. HTFormat format_out,
  82. HTStream *sink);
  83. extern int HTVMS_remove(char *filename);
  84. extern void HTVMS_purge(char *filename);
  85. #ifdef __cplusplus
  86. }
  87. #endif
  88. #endif /* not HTVMSUTIL_H */