File: zipup.h

package info (click to toggle)
zip 2.32-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 3,592 kB
  • ctags: 5,524
  • sloc: ansic: 35,111; asm: 3,677; makefile: 740; cs: 727; sh: 42
file content (37 lines) | stat: -rw-r--r-- 1,137 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
  Copyright (c) 1990-2005 Info-ZIP.  All rights reserved.

  See the accompanying file LICENSE, version 2004-May-22 or later
  (the contents of which are also included in zip.h) for terms of use.
  If, for some reason, both of these files are missing, the Info-ZIP license
  also may be found at:  ftp://ftp.info-zip.org/pub/infozip/license.html
*/
#ifndef __CYGWIN__
#  include <share.h>
#endif
#ifndef O_RDONLY
#  define O_RDONLY   0
#endif
#ifndef O_BINARY
#  define O_BINARY   0
#endif
#if (defined(_SH_DENYNO) && !defined(SH_DENYNO))
#  define SH_DENYNO _SH_DENYNO
#endif
#if (defined(SH_DENYNO) && !defined(_SH_DENYNO))
#  define _SH_DENYNO SH_DENYNO
#endif
#define fhow         (O_RDONLY|O_BINARY)
#define fbad         (-1)
typedef int          ftype;
#if defined(__WATCOMC__) || defined(__BORLANDC__) || defined(__EMX__)
#  define zopen(n,p) sopen(n,p,SH_DENYNO)
#elif defined(__CYGWIN__) || defined(__IBMC__)
#  define zopen(n,p) open(n,p)
#else
#  define zopen(n,p) _sopen(n,p,_SH_DENYNO)
#endif
#define zread(f,b,n) read(f,b,n)
#define zclose(f)    close(f)
#define zerr(f)      (k == (extent)(-1L))
#define zstdin       0