amiga.c
资源名称:unzip540.zip [点击查看]
上传用户:andy_li
上传日期:2007-01-06
资源大小:1019k
文件大小:33k
源码类别:
压缩解压
开发平台:
MultiPlatform
- /*------------------------------------------------------------------------
- amiga.c
- Amiga-specific routines for use with Info-ZIP's UnZip 5.1 and later.
- See History.5xx for revision history.
- Contents: do_wild()
- mapattr()
- mapname()
- checkdir()
- close_outfile()
- stamp_file()
- _abort() (Aztec C only)
- [dateformat()] (currently not used)
- windowheight()
- version()
- ------------------------------------------------------------------------*/
- #define UNZIP_INTERNAL
- #ifdef AZTEC_C
- # define NO_FCNTL_H
- #endif
- #include "unzip.h"
- /* Globular varibundus -- now declared in SYSTEM_SPECIFIC_GLOBALS in amiga.h */
- /* static int created_dir; */ /* used in mapname(), checkdir() */
- /* static int renamed_fullpath; */ /* ditto */
- #define PERMS 0777
- #define MKDIR(path,mode) mkdir(path)
- #ifndef S_ISCRIPT /* not having one implies you have none */
- # define S_IARCHIVE 0020 /* not modified since this bit was last set */
- # define S_IREAD 0010 /* can be opened for reading */
- # define S_IWRITE 0004 /* can be opened for writing */
- # define S_IDELETE 0001 /* can be deleted */
- #endif /* S_ISCRIPT */
- #ifndef S_IRWD
- # define S_IRWD 0015 /* useful combo of Amiga privileges */
- #endif /* !S_IRWD */
- #ifndef S_IHIDDEN
- # define S_IHIDDEN 0200 /* hidden supported in future AmigaDOS (someday) */
- #endif /* !S_HIDDEN */
- #ifndef SFX
- /* Make sure the number here matches version.h in the *EXACT* form */
- /* UZ_MAJORVER "." UZ_MINORVER PATCHLEVEL vvvv No non-digits! */
- const char version_id[] = "