netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
test/testsuite/afp.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1990,1991 Regents of The University of Michigan.
3 * All Rights Reserved.
4 *
5 * Permission to use, copy, modify, and distribute this software and
6 * its documentation for any purpose and without fee is hereby granted,
7 * provided that the above copyright notice appears in all copies and
8 * that both that copyright notice and this permission notice appear
9 * in supporting documentation, and that the name of The University
10 * of Michigan not be used in advertising or publicity pertaining to
11 * distribution of the software without specific, written prior
12 * permission. This software is supplied as is without expressed or
13 * implied warranties of any kind.
14 *
15 * Research Systems Unix Group
16 * The University of Michigan
17 * c/o Mike Clark
18 * 535 W. William Street
19 * Ann Arbor, Michigan
20 * +1-313-763-0525
22 */
23
24#ifndef _ATALK_AFP_H
25#define _ATALK_AFP_H 1
26
27#include <sys/types.h>
28
29#define AFP_OK 0
30#define AFPERR_DID1 -4000 /* not an afp error DID is 1*/
31#define AFPERR_ACCESS -5000 /* permission denied */
32#define AFPERR_AUTHCONT -5001 /* logincont */
33#define AFPERR_BADUAM -5002 /* uam doesn't exist */
34#define AFPERR_BADVERS -5003 /* bad afp version number */
35#define AFPERR_BITMAP -5004 /* invalid bitmap */
36#define AFPERR_CANTMOVE -5005 /* can't move file */
37#define AFPERR_DENYCONF -5006 /* file synchronization locks conflict */
38#define AFPERR_DIRNEMPT -5007 /* directory not empty */
39#define AFPERR_DFULL -5008 /* disk full */
40#define AFPERR_EOF -5009 /* end of file -- catsearch and afp_read */
41#define AFPERR_BUSY -5010 /* FileBusy */
42#define AFPERR_FLATVOL -5011 /* volume doesn't support directories */
43#define AFPERR_NOITEM -5012 /* ItemNotFound */
44#define AFPERR_LOCK -5013 /* LockErr */
45#define AFPERR_MISC -5014 /* misc. err */
46#define AFPERR_NLOCK -5015 /* no more locks */
47#define AFPERR_NOSRVR -5016 /* no response by server at that address */
48#define AFPERR_EXIST -5017 /* object already exists */
49#define AFPERR_NOOBJ -5018 /* object not found */
50#define AFPERR_PARAM -5019 /* parameter error */
51#define AFPERR_NORANGE -5020 /* no range lock */
52#define AFPERR_RANGEOVR -5021 /* range overlap */
53#define AFPERR_SESSCLOS -5022 /* session closed */
54#define AFPERR_NOTAUTH -5023 /* user not authenticated */
55#define AFPERR_NOOP -5024 /* command not supported */
56#define AFPERR_BADTYPE -5025 /* object is the wrong type */
57#define AFPERR_NFILE -5026 /* too many files open */
58#define AFPERR_SHUTDOWN -5027 /* server is going down */
59#define AFPERR_NORENAME -5028 /* can't rename */
60#define AFPERR_NODIR -5029 /* couldn't find directory */
61#define AFPERR_ITYPE -5030 /* wrong icon type */
62#define AFPERR_VLOCK -5031 /* volume locked */
63#define AFPERR_OLOCK -5032 /* object locked */
64#define AFPERR_CTNSHRD -5033 /* share point contains a share point */
65#define AFPERR_NOID -5034 /* file thread not found */
66#define AFPERR_EXISTID -5035 /* file already has an id */
67#define AFPERR_DIFFVOL -5036 /* different volume */
68#define AFPERR_CATCHNG -5037 /* catalog has changed */
69#define AFPERR_SAMEOBJ -5038 /* source file == destination file */
70#define AFPERR_BADID -5039 /* non-existent file id */
71#define AFPERR_PWDSAME -5040 /* same password/can't change password */
72#define AFPERR_PWDSHORT -5041 /* password too short */
73#define AFPERR_PWDEXPR -5042 /* password expired */
74#define AFPERR_INSHRD -5043 /* folder being shared is inside a
75 shared folder. may be returned by
76 afpMoveAndRename. */
77#define AFPERR_INTRASH -5044 /* shared folder in trash. */
78#define AFPERR_PWDCHNG -5045 /* password needs to be changed */
79#define AFPERR_PWDPOLCY -5046 /* password fails policy check */
80#define AFPERR_USRLOGIN -5047 /* user already logged on */
82#define BITERR_NOOBJ (1 << 0)
83#define BITERR_NODIR (1 << 1)
84#define BITERR_PARAM (1 << 2)
85#define BITERR_BUSY (1 << 3)
86#define BITERR_BADTYPE (1 << 4)
87#define BITERR_NOITEM (1 << 5)
88#define BITERR_DENYCONF (1 << 6)
89#define BITERR_NFILE (1 << 7)
90#define BITERR_ACCESS (1 << 8)
91#define BITERR_NOID (1 << 9)
92#define BITERR_BITMAP (1 << 10)
93#define BITERR_MISC (1 << 11)
95/* AFP functions */
96#define AFP_BYTELOCK 1
97#define AFP_CLOSEVOL 2
98#define AFP_CLOSEDIR 3
99#define AFP_CLOSEFORK 4
100#define AFP_COPYFILE 5
101#define AFP_CREATEDIR 6
102#define AFP_CREATEFILE 7
103#define AFP_DELETE 8
104#define AFP_ENUMERATE 9
105#define AFP_FLUSH 10
106#define AFP_FLUSHFORK 11
108#define AFP_GETFORKPARAM 14
109#define AFP_GETSRVINFO 15
110#define AFP_GETSRVPARAM 16
111#define AFP_GETVOLPARAM 17
112#define AFP_LOGIN 18
113#define AFP_LOGINCONT 19
114#define AFP_LOGOUT 20
115#define AFP_MAPID 21
116#define AFP_MAPNAME 22
117#define AFP_MOVE 23
118#define AFP_OPENVOL 24
119#define AFP_OPENDIR 25
120#define AFP_OPENFORK 26
121#define AFP_READ 27
122#define AFP_RENAME 28
123#define AFP_SETDIRPARAM 29
124#define AFP_SETFILEPARAM 30
125#define AFP_SETFORKPARAM 31
126#define AFP_SETVOLPARAM 32
127#define AFP_WRITE 33
128#define AFP_GETFLDRPARAM 34
129#define AFP_SETFLDRPARAM 35
130#define AFP_CHANGEPW 36
132#define AFP_GETSRVRMSG 38
133#define AFP_CREATEID 39
134#define AFP_DELETEID 40
135#define AFP_RESOLVEID 41
136#define AFP_EXCHANGEFILE 42
137#define AFP_CATSEARCH 43
139#define AFP_OPENDT 48
140#define AFP_CLOSEDT 49
142#define AFP_GETICON 51
143#define AFP_GTICNINFO 52
144#define AFP_ADDAPPL 53
145#define AFP_RMVAPPL 54
147#define AFP_GETAPPL 55
148#define AFP_ADDCMT 56
149#define AFP_RMVCMT 57
150#define AFP_GETCMT 58
151#define AFP_ADDICON 192
153/* version 3.0 */
154#define AFP_BYTELOCK_EXT 59
155#define AFP_CATSEARCH_EXT 67
156#define AFP_ENUMERATE_EXT 66
157#define AFP_READ_EXT 60
158#define AFP_WRITE_EXT 61
159#define AFP_LOGIN_EXT 63
160#define AFP_GETSESSTOKEN 64
161#define AFP_DISCTOLDSESS 65
163/* version 3.1 */
164#define AFP_ENUMERATE_EXT2 68
165#define AFP_SPOTLIGHT_PRIVATE 76
166#define AFP_SYNCDIR 78
167#define AFP_SYNCFORK 79
168#define AFP_ZZZ 122
170/* version 3.2 */
171#define AFP_GETEXTATTR 69
172#define AFP_SETEXTATTR 70
173#define AFP_REMOVEATTR 71
174#define AFP_LISTEXTATTR 72
175#define AFP_GETACL 73
176#define AFP_SETACL 74
177#define AFP_ACCESS 75
178
179#endif