diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1996-09-02 19:39:24 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1996-09-02 19:39:24 -0400 |
commit | e087f6d44e87f489fcb3056e86319ebba4218156 (patch) | |
tree | d045b58011bfbbf5186d34c4fed9e0dedb363275 /src/LYLocal.h | |
download | lynx-snapshots-e087f6d44e87f489fcb3056e86319ebba4218156.tar.gz |
snapshot of project "lynx", label v2_6
Diffstat (limited to 'src/LYLocal.h')
-rw-r--r-- | src/LYLocal.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/LYLocal.h b/src/LYLocal.h new file mode 100644 index 00000000..6771898b --- /dev/null +++ b/src/LYLocal.h @@ -0,0 +1,67 @@ +#ifndef LYLOCAL_H +#define LYLOCAL_H + +#ifdef DIRED_SUPPORT + +#ifdef VMS +#include <types.h> +#include <stat.h> +#else +#include <sys/types.h> +#include <sys/stat.h> +#endif /* VMS */ + +#ifndef S_IRWXU +#define S_IRWXU 0000700 /* rwx, owner */ +#define S_IRUSR 0000400 /* read permission, owner */ +#define S_IWUSR 0000200 /* write permission, owner */ +#define S_IXUSR 0000100 /* execute/search permission, owner */ +#define S_IRWXG 0000070 /* rwx, group */ +#define S_IRGRP 0000040 /* read permission, group */ +#define S_IWGRP 0000020 /* write permission, grougroup */ +#define S_IXGRP 0000010 /* execute/search permission, group */ +#define S_IRWXO 0000007 /* rwx, other */ +#define S_IROTH 0000004 /* read permission, other */ +#define S_IWOTH 0000002 /* write permission, other */ +#define S_IXOTH 0000001 /* execute/search permission, other */ +#endif /* !S_IRWXU */ + +#ifndef S_ISUID /* Unusual modes */ +#define S_ISUID 0x800 /* set user id on execution */ +#define S_ISGID 0x400 /* set group id on execution */ +#define S_ISVTX 0x200 /* save swapped text even after use */ +#endif /* !S_ISUID */ + +/* Special return code for LYMainLoop.c */ +#define PERMIT_FORM_RESULT 2 + +extern BOOLEAN local_create PARAMS((document *doc)); +extern BOOLEAN local_modify PARAMS((document *doc, char **newpath)); +extern BOOLEAN local_remove PARAMS((document *doc)); +extern BOOLEAN local_install PARAMS((char *destpath, char *srcpath, char **newpath)); + +/* Define the PRIVATE routines in case they ever go PUBLIC + +extern BOOLEAN modify_name PARAMS((char *testpath)); +extern BOOLEAN modify_location PARAMS((char *testpath)); +extern BOOLEAN create_file PARAMS((char *testpath)); +extern BOOLEAN create_directory PARAMS((char *testpath)); +extern BOOLEAN modify_tagged PARAMS((char *testpath)); +extern BOOLEAN remove_tagged NOPARAMS; +extern BOOLEAN remove_single PARAMS ((char *testpath)); +*/ +extern BOOLEAN is_a_file PARAMS((char *testname)); +extern void tagflag PARAMS((int flag, int cur)); +extern void showtags PARAMS((taglink *tag)); +extern char * strip_trailing_slash PARAMS((char * dirname)); +extern int local_dired PARAMS((document *doc)); +extern int dired_options PARAMS ((document *doc, char ** newfile)); + +#define DIRED_MENU_TITLE "File Management Options" +#define PERMIT_OPTIONS_TITLE "File Permission Options" + +extern void add_menu_item PARAMS((char *str)); + +#endif /* DIRED_SUPPORT */ + +#endif /* LYLOCAL_H */ |