Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
att
GitHub Repository: att/ast
Path: blob/master/src/lib/libuu/uulib.h
1808 views
1
/***********************************************************************
2
* *
3
* This software is part of the ast package *
4
* Copyright (c) 1998-2011 AT&T Intellectual Property *
5
* and is licensed under the *
6
* Eclipse Public License, Version 1.0 *
7
* by AT&T Intellectual Property *
8
* *
9
* A copy of the License is available at *
10
* http://www.eclipse.org/org/documents/epl-v10.html *
11
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
12
* *
13
* Information and Software Systems Research *
14
* AT&T Research *
15
* Florham Park NJ *
16
* *
17
* Glenn Fowler <[email protected]> *
18
* *
19
***********************************************************************/
20
#pragma prototyped
21
/*
22
* uuencode/uudecode private interface
23
*
24
* AT&T Research
25
*/
26
27
#ifndef _UULIB_H
28
#define _UULIB_H
29
30
#define _UU_PRIVATE_ \
31
unsigned long flags; \
32
int mode; \
33
Sfio_t* lp; \
34
Sfio_t* ip; \
35
Sfio_t* op; \
36
size_t count;
37
38
#include "uu.h"
39
40
#define UU_CLOSEOUT (1<<4) /* close op when done */
41
#define UU_FREEPATH (1<<5) /* free path when done */
42
#define UU_HEADERMUST (1<<6) /* header must be called */
43
#define UU_LENGTH (1<<7) /* length encoded too */
44
#define UU_DEFAULT (1<<8) /* original method was default */
45
#define UU_METHOD (1<<9) /* first method specific bit */
46
47
typedef struct
48
{
49
const char* end;
50
int pad;
51
int fill;
52
unsigned long flags;
53
int size;
54
const char map[65];
55
} Uudata_t;
56
57
#endif
58
59