home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / LYLocal.h < prev    next >
C/C++ Source or Header  |  1998-01-16  |  3KB  |  76 lines

  1. #ifndef LYLOCAL_H
  2. #define LYLOCAL_H
  3.  
  4. #ifdef DIRED_SUPPORT
  5.  
  6. #ifdef VMS
  7. #include <types.h>
  8. #include <stat.h>
  9. #else
  10. #if 0 /* already included in tcp.h */
  11. #include <sys/types.h>
  12. #include <sys/stat.h>
  13. #endif
  14. #endif /* VMS */
  15.  
  16. #ifndef S_IRWXU 
  17. #define S_IRWXU         0000700 /* rwx, owner */
  18. #define         S_IRUSR 0000400 /* read permission, owner */
  19. #define         S_IWUSR 0000200 /* write permission, owner */
  20. #define         S_IXUSR 0000100 /* execute/search permission, owner */
  21. #define S_IRWXG         0000070 /* rwx, group */
  22. #define         S_IRGRP 0000040 /* read permission, group */
  23. #define         S_IWGRP 0000020 /* write permission, grougroup */
  24. #define         S_IXGRP 0000010 /* execute/search permission, group */
  25. #define S_IRWXO         0000007 /* rwx, other */
  26. #define         S_IROTH 0000004 /* read permission, other */
  27. #define         S_IWOTH 0000002 /* write permission, other */
  28. #define         S_IXOTH 0000001 /* execute/search permission, other */
  29. #endif /* !S_IRWXU  */
  30.  
  31. #ifndef S_ISUID                 /* Unusual modes */
  32. #define S_ISUID         0x800   /* set user id on execution */
  33. #define S_ISGID         0x400   /* set group id on execution */
  34. #define S_ISVTX         0x200   /* save swapped text even after use */
  35. #endif /* !S_ISUID */
  36.  
  37. /* Special return code for LYMainLoop.c */
  38. #define PERMIT_FORM_RESULT (-99)
  39.  
  40. extern char LYPermitFileURL[];
  41. extern char LYDiredFileURL[];
  42. extern char LYUploadFileURL[];
  43.  
  44. extern BOOLEAN local_create PARAMS((document *doc));
  45. extern BOOLEAN local_modify PARAMS((document *doc, char **newpath));
  46. extern BOOLEAN local_remove PARAMS((document *doc));
  47. extern BOOLEAN local_install PARAMS((char *destpath, char *srcpath, char **newpath));
  48.  
  49. /* MainLoop needs to know about this one for atexit cleanup */
  50. extern void clear_tags NOPARAMS;
  51.  
  52. /* Define the PRIVATE routines in case they ever go PUBLIC
  53.  
  54. extern BOOLEAN modify_name PARAMS((char *testpath));
  55. extern BOOLEAN modify_location PARAMS((char *testpath));
  56. extern BOOLEAN create_file PARAMS((char *testpath));
  57. extern BOOLEAN create_directory PARAMS((char *testpath));
  58. extern BOOLEAN modify_tagged PARAMS((char *testpath));
  59. extern BOOLEAN remove_tagged NOPARAMS;
  60. extern BOOLEAN remove_single PARAMS ((char *testpath));
  61. extern BOOLEAN is_a_file PARAMS((char *testname));
  62. */
  63. extern void tagflag PARAMS((int flag, int cur)); 
  64. extern void showtags PARAMS((HTList *tag));
  65. extern int local_dired PARAMS((document *doc));
  66. extern int dired_options PARAMS ((document *doc, char ** newfile));
  67.  
  68. #define DIRED_MENU_TITLE "File Management Options"
  69. #define PERMIT_OPTIONS_TITLE "File Permission Options"
  70.  
  71. extern void add_menu_item PARAMS((char *str));
  72.  
  73. #endif /* DIRED_SUPPORT */
  74.  
  75. #endif /* LYLOCAL_H */
  76.