Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libz/sfdcgzip.h
1808 views
1
/***********************************************************************
2
* *
3
* This software is part of the zlib package *
4
* Copyright (c) 1995-1998 Jean-loup Gailly and Mark Adler *
5
* *
6
* This software is provided 'as-is', without any express or implied *
7
* warranty. In no event will the authors be held liable for any *
8
* damages arising from the use of this software. *
9
* *
10
* Permission is granted to anyone to use this software for any *
11
* purpose, including commercial applications, and to alter it and *
12
* redistribute it freely, subject to the following restrictions: *
13
* *
14
* 1. The origin of this software must not be misrepresented; *
15
* you must not claim that you wrote the original software. If *
16
* you use this software in a product, an acknowledgment in the *
17
* product documentation would be appreciated but is not *
18
* required. *
19
* *
20
* 2. Altered source versions must be plainly marked as such, *
21
* and must not be misrepresented as being the original *
22
* software. *
23
* *
24
* 3. This notice may not be removed or altered from any source *
25
* distribution. *
26
* *
27
* This software is provided "as-is", without any express or implied *
28
* warranty. In no event will the authors be held liable for any damages*
29
* arising from the use of this software. *
30
* *
31
* Permission is granted to anyone to use this software for any purpose,*
32
* including commercial applications, and to alter it and redistribute i*
33
* freely, subject to the following restrictions: *
34
* *
35
* 1. The origin of this software must not be misrepresented; you must n*
36
* claim that you wrote the original software. If you use this softwa*
37
* in a product, an acknowledgment in the product documentation would*
38
* be appreciated but is not required. *
39
* *
40
* 2. Altered source versions must be plainly marked as such, and must n*
41
* be misrepresented as being the original software. *
42
* *
43
* 3. This notice may not be removed or altered from any source *
44
* distribution. *
45
* *
46
* Jean-loup Gailly *
47
* Mark Adler *
48
* *
49
***********************************************************************/
50
#pragma prototyped
51
52
/*
53
* sfio gzip discipline interface
54
*/
55
56
#ifndef _SFDCGZIP_H
57
#define _SFDCGZIP_H
58
59
#include <sfdisc.h>
60
61
#define SFGZ_VERIFY 0x0010
62
#define SFGZ_NOCRC 0x0020
63
64
#define SFGZ_HANDLE SFDCEVENT('G','Z',1)
65
#define SFGZ_GETPOS SFDCEVENT('G','Z',2)
66
#define SFGZ_SETPOS SFDCEVENT('G','Z',3)
67
68
#if _BLD_z && defined(__EXPORT__)
69
#define extern __EXPORT__
70
#endif
71
72
extern int sfdcgzip(Sfio_t*, int);
73
extern int sfdclzw(Sfio_t*, int);
74
75
#undef extern
76
77
#endif
78
79