netatalk  4.4.0dev
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
afp.h File Reference
#include <sys/types.h>

Go to the source code of this file.

Macros

#define AFP_OK   0
#define AFPERR_DID1   -4000 /* not an afp error DID is 1*/
#define AFPERR_ACCESS   -5000 /* permission denied */
#define AFPERR_AUTHCONT   -5001 /* logincont */
#define AFPERR_BADUAM   -5002 /* uam doesn't exist */
#define AFPERR_BADVERS   -5003 /* bad afp version number */
#define AFPERR_BITMAP   -5004 /* invalid bitmap */
#define AFPERR_CANTMOVE   -5005 /* can't move file */
#define AFPERR_DENYCONF   -5006 /* file synchronization locks conflict */
#define AFPERR_DIRNEMPT   -5007 /* directory not empty */
#define AFPERR_DFULL   -5008 /* disk full */
#define AFPERR_EOF   -5009 /* end of file -- catsearch and afp_read */
#define AFPERR_BUSY   -5010 /* FileBusy */
#define AFPERR_FLATVOL   -5011 /* volume doesn't support directories */
#define AFPERR_NOITEM   -5012 /* ItemNotFound */
#define AFPERR_LOCK   -5013 /* LockErr */
#define AFPERR_MISC   -5014 /* misc. err */
#define AFPERR_NLOCK   -5015 /* no more locks */
#define AFPERR_NOSRVR   -5016 /* no response by server at that address */
#define AFPERR_EXIST   -5017 /* object already exists */
#define AFPERR_NOOBJ   -5018 /* object not found */
#define AFPERR_PARAM   -5019 /* parameter error */
#define AFPERR_NORANGE   -5020 /* no range lock */
#define AFPERR_RANGEOVR   -5021 /* range overlap */
#define AFPERR_SESSCLOS   -5022 /* session closed */
#define AFPERR_NOTAUTH   -5023 /* user not authenticated */
#define AFPERR_NOOP   -5024 /* command not supported */
#define AFPERR_BADTYPE   -5025 /* object is the wrong type */
#define AFPERR_NFILE   -5026 /* too many files open */
#define AFPERR_SHUTDOWN   -5027 /* server is going down */
#define AFPERR_NORENAME   -5028 /* can't rename */
#define AFPERR_NODIR   -5029 /* couldn't find directory */
#define AFPERR_ITYPE   -5030 /* wrong icon type */
#define AFPERR_VLOCK   -5031 /* volume locked */
#define AFPERR_OLOCK   -5032 /* object locked */
#define AFPERR_CTNSHRD   -5033 /* share point contains a share point */
#define AFPERR_NOID   -5034 /* file thread not found */
#define AFPERR_EXISTID   -5035 /* file already has an id */
#define AFPERR_DIFFVOL   -5036 /* different volume */
#define AFPERR_CATCHNG   -5037 /* catalog has changed */
#define AFPERR_SAMEOBJ   -5038 /* source file == destination file */
#define AFPERR_BADID   -5039 /* non-existent file id */
#define AFPERR_PWDSAME   -5040 /* same password/can't change password */
#define AFPERR_PWDSHORT   -5041 /* password too short */
#define AFPERR_PWDEXPR   -5042 /* password expired */
#define AFPERR_INSHRD
#define AFPERR_INTRASH   -5044 /* shared folder in trash. */
#define AFPERR_PWDCHNG   -5045 /* password needs to be changed */
#define AFPERR_PWDPOLCY   -5046 /* password fails policy check */
#define AFPERR_USRLOGIN   -5047 /* user already logged on */
#define BITERR_NOOBJ   (1 << 0)
#define BITERR_NODIR   (1 << 1)
#define BITERR_PARAM   (1 << 2)
#define BITERR_BUSY   (1 << 3)
#define BITERR_BADTYPE   (1 << 4)
#define BITERR_NOITEM   (1 << 5)
#define BITERR_DENYCONF   (1 << 6)
#define BITERR_NFILE   (1 << 7)
#define BITERR_ACCESS   (1 << 8)
#define BITERR_NOID   (1 << 9)
#define BITERR_BITMAP   (1 << 10)
#define BITERR_MISC   (1 << 11)
#define AFP_BYTELOCK   1
#define AFP_CLOSEVOL   2
#define AFP_CLOSEDIR   3
#define AFP_CLOSEFORK   4
#define AFP_COPYFILE   5
#define AFP_CREATEDIR   6
#define AFP_CREATEFILE   7
#define AFP_DELETE   8
#define AFP_ENUMERATE   9
#define AFP_FLUSH   10
#define AFP_FLUSHFORK   11
#define AFP_GETFORKPARAM   14
#define AFP_GETSRVINFO   15
#define AFP_GETSRVPARAM   16
#define AFP_GETVOLPARAM   17
#define AFP_LOGIN   18
#define AFP_LOGINCONT   19
#define AFP_LOGOUT   20
#define AFP_MAPID   21
#define AFP_MAPNAME   22
#define AFP_MOVE   23
#define AFP_OPENVOL   24
#define AFP_OPENDIR   25
#define AFP_OPENFORK   26
#define AFP_READ   27
#define AFP_RENAME   28
#define AFP_SETDIRPARAM   29
#define AFP_SETFILEPARAM   30
#define AFP_SETFORKPARAM   31
#define AFP_SETVOLPARAM   32
#define AFP_WRITE   33
#define AFP_GETFLDRPARAM   34
#define AFP_SETFLDRPARAM   35
#define AFP_CHANGEPW   36
#define AFP_GETSRVRMSG   38
#define AFP_CREATEID   39
#define AFP_DELETEID   40
#define AFP_RESOLVEID   41
#define AFP_EXCHANGEFILE   42
#define AFP_CATSEARCH   43
#define AFP_OPENDT   48
#define AFP_CLOSEDT   49
#define AFP_GETICON   51
#define AFP_GTICNINFO   52
#define AFP_ADDAPPL   53
#define AFP_RMVAPPL   54
#define AFP_GETAPPL   55
#define AFP_ADDCMT   56
#define AFP_RMVCMT   57
#define AFP_GETCMT   58
#define AFP_ADDICON   192
#define AFP_BYTELOCK_EXT   59
#define AFP_CATSEARCH_EXT   67
#define AFP_ENUMERATE_EXT   66
#define AFP_READ_EXT   60
#define AFP_WRITE_EXT   61
#define AFP_LOGIN_EXT   63
#define AFP_GETSESSTOKEN   64
#define AFP_DISCTOLDSESS   65
#define AFP_ENUMERATE_EXT2   68
#define AFP_SPOTLIGHT_PRIVATE   76
#define AFP_SYNCDIR   78
#define AFP_SYNCFORK   79
#define AFP_ZZZ   122
#define AFP_GETEXTATTR   69
#define AFP_SETEXTATTR   70
#define AFP_REMOVEATTR   71
#define AFP_LISTEXTATTR   72
#define AFP_GETACL   73
#define AFP_SETACL   74
#define AFP_ACCESS   75

Macro Definition Documentation

◆ AFP_ACCESS

#define AFP_ACCESS   75

◆ AFP_ADDAPPL

#define AFP_ADDAPPL   53

◆ AFP_ADDCMT

#define AFP_ADDCMT   56

◆ AFP_ADDICON

#define AFP_ADDICON   192

◆ AFP_BYTELOCK

#define AFP_BYTELOCK   1

◆ AFP_BYTELOCK_EXT

#define AFP_BYTELOCK_EXT   59

◆ AFP_CATSEARCH

#define AFP_CATSEARCH   43

◆ AFP_CATSEARCH_EXT

#define AFP_CATSEARCH_EXT   67

◆ AFP_CHANGEPW

#define AFP_CHANGEPW   36

◆ AFP_CLOSEDIR

#define AFP_CLOSEDIR   3

◆ AFP_CLOSEDT

#define AFP_CLOSEDT   49

◆ AFP_CLOSEFORK

#define AFP_CLOSEFORK   4

◆ AFP_CLOSEVOL

#define AFP_CLOSEVOL   2

◆ AFP_COPYFILE

#define AFP_COPYFILE   5

◆ AFP_CREATEDIR

#define AFP_CREATEDIR   6

◆ AFP_CREATEFILE

#define AFP_CREATEFILE   7

◆ AFP_CREATEID

#define AFP_CREATEID   39

◆ AFP_DELETE

#define AFP_DELETE   8

◆ AFP_DELETEID

#define AFP_DELETEID   40

◆ AFP_DISCTOLDSESS

#define AFP_DISCTOLDSESS   65

◆ AFP_ENUMERATE

#define AFP_ENUMERATE   9

◆ AFP_ENUMERATE_EXT

#define AFP_ENUMERATE_EXT   66

◆ AFP_ENUMERATE_EXT2

#define AFP_ENUMERATE_EXT2   68

◆ AFP_EXCHANGEFILE

#define AFP_EXCHANGEFILE   42

◆ AFP_FLUSH

#define AFP_FLUSH   10

◆ AFP_FLUSHFORK

#define AFP_FLUSHFORK   11

◆ AFP_GETACL

#define AFP_GETACL   73

◆ AFP_GETAPPL

#define AFP_GETAPPL   55

◆ AFP_GETCMT

#define AFP_GETCMT   58

◆ AFP_GETEXTATTR

#define AFP_GETEXTATTR   69

◆ AFP_GETFLDRPARAM

#define AFP_GETFLDRPARAM   34

◆ AFP_GETFORKPARAM

#define AFP_GETFORKPARAM   14

◆ AFP_GETICON

#define AFP_GETICON   51

◆ AFP_GETSESSTOKEN

#define AFP_GETSESSTOKEN   64

◆ AFP_GETSRVINFO

#define AFP_GETSRVINFO   15

◆ AFP_GETSRVPARAM

#define AFP_GETSRVPARAM   16

◆ AFP_GETSRVRMSG

#define AFP_GETSRVRMSG   38

◆ AFP_GETVOLPARAM

#define AFP_GETVOLPARAM   17

◆ AFP_GTICNINFO

#define AFP_GTICNINFO   52

◆ AFP_LISTEXTATTR

#define AFP_LISTEXTATTR   72

◆ AFP_LOGIN

#define AFP_LOGIN   18

◆ AFP_LOGIN_EXT

#define AFP_LOGIN_EXT   63

◆ AFP_LOGINCONT

#define AFP_LOGINCONT   19

◆ AFP_LOGOUT

#define AFP_LOGOUT   20

◆ AFP_MAPID

#define AFP_MAPID   21

◆ AFP_MAPNAME

#define AFP_MAPNAME   22

◆ AFP_MOVE

#define AFP_MOVE   23

◆ AFP_OK

#define AFP_OK   0

◆ AFP_OPENDIR

#define AFP_OPENDIR   25

◆ AFP_OPENDT

#define AFP_OPENDT   48

◆ AFP_OPENFORK

#define AFP_OPENFORK   26

◆ AFP_OPENVOL

#define AFP_OPENVOL   24

◆ AFP_READ

#define AFP_READ   27

◆ AFP_READ_EXT

#define AFP_READ_EXT   60

◆ AFP_REMOVEATTR

#define AFP_REMOVEATTR   71

◆ AFP_RENAME

#define AFP_RENAME   28

◆ AFP_RESOLVEID

#define AFP_RESOLVEID   41

◆ AFP_RMVAPPL

#define AFP_RMVAPPL   54

◆ AFP_RMVCMT

#define AFP_RMVCMT   57

◆ AFP_SETACL

#define AFP_SETACL   74

◆ AFP_SETDIRPARAM

#define AFP_SETDIRPARAM   29

◆ AFP_SETEXTATTR

#define AFP_SETEXTATTR   70

◆ AFP_SETFILEPARAM

#define AFP_SETFILEPARAM   30

◆ AFP_SETFLDRPARAM

#define AFP_SETFLDRPARAM   35

◆ AFP_SETFORKPARAM

#define AFP_SETFORKPARAM   31

◆ AFP_SETVOLPARAM

#define AFP_SETVOLPARAM   32

◆ AFP_SPOTLIGHT_PRIVATE

#define AFP_SPOTLIGHT_PRIVATE   76

◆ AFP_SYNCDIR

#define AFP_SYNCDIR   78

◆ AFP_SYNCFORK

#define AFP_SYNCFORK   79

◆ AFP_WRITE

#define AFP_WRITE   33

◆ AFP_WRITE_EXT

#define AFP_WRITE_EXT   61

◆ AFP_ZZZ

#define AFP_ZZZ   122

◆ AFPERR_ACCESS

#define AFPERR_ACCESS   -5000 /* permission denied */

◆ AFPERR_AUTHCONT

#define AFPERR_AUTHCONT   -5001 /* logincont */

◆ AFPERR_BADID

#define AFPERR_BADID   -5039 /* non-existent file id */

◆ AFPERR_BADTYPE

#define AFPERR_BADTYPE   -5025 /* object is the wrong type */

◆ AFPERR_BADUAM

#define AFPERR_BADUAM   -5002 /* uam doesn't exist */

◆ AFPERR_BADVERS

#define AFPERR_BADVERS   -5003 /* bad afp version number */

◆ AFPERR_BITMAP

#define AFPERR_BITMAP   -5004 /* invalid bitmap */

◆ AFPERR_BUSY

#define AFPERR_BUSY   -5010 /* FileBusy */

◆ AFPERR_CANTMOVE

#define AFPERR_CANTMOVE   -5005 /* can't move file */

◆ AFPERR_CATCHNG

#define AFPERR_CATCHNG   -5037 /* catalog has changed */

◆ AFPERR_CTNSHRD

#define AFPERR_CTNSHRD   -5033 /* share point contains a share point */

◆ AFPERR_DENYCONF

#define AFPERR_DENYCONF   -5006 /* file synchronization locks conflict */

◆ AFPERR_DFULL

#define AFPERR_DFULL   -5008 /* disk full */

◆ AFPERR_DID1

#define AFPERR_DID1   -4000 /* not an afp error DID is 1*/

◆ AFPERR_DIFFVOL

#define AFPERR_DIFFVOL   -5036 /* different volume */

◆ AFPERR_DIRNEMPT

#define AFPERR_DIRNEMPT   -5007 /* directory not empty */

◆ AFPERR_EOF

#define AFPERR_EOF   -5009 /* end of file -- catsearch and afp_read */

◆ AFPERR_EXIST

#define AFPERR_EXIST   -5017 /* object already exists */

◆ AFPERR_EXISTID

#define AFPERR_EXISTID   -5035 /* file already has an id */

◆ AFPERR_FLATVOL

#define AFPERR_FLATVOL   -5011 /* volume doesn't support directories */

◆ AFPERR_INSHRD

#define AFPERR_INSHRD
Value:
-5043 /* folder being shared is inside a
shared folder. may be returned by
afpMoveAndRename. */

◆ AFPERR_INTRASH

#define AFPERR_INTRASH   -5044 /* shared folder in trash. */

◆ AFPERR_ITYPE

#define AFPERR_ITYPE   -5030 /* wrong icon type */

◆ AFPERR_LOCK

#define AFPERR_LOCK   -5013 /* LockErr */

◆ AFPERR_MISC

#define AFPERR_MISC   -5014 /* misc. err */

◆ AFPERR_NFILE

#define AFPERR_NFILE   -5026 /* too many files open */

◆ AFPERR_NLOCK

#define AFPERR_NLOCK   -5015 /* no more locks */

◆ AFPERR_NODIR

#define AFPERR_NODIR   -5029 /* couldn't find directory */

◆ AFPERR_NOID

#define AFPERR_NOID   -5034 /* file thread not found */

◆ AFPERR_NOITEM

#define AFPERR_NOITEM   -5012 /* ItemNotFound */

◆ AFPERR_NOOBJ

#define AFPERR_NOOBJ   -5018 /* object not found */

◆ AFPERR_NOOP

#define AFPERR_NOOP   -5024 /* command not supported */

◆ AFPERR_NORANGE

#define AFPERR_NORANGE   -5020 /* no range lock */

◆ AFPERR_NORENAME

#define AFPERR_NORENAME   -5028 /* can't rename */

◆ AFPERR_NOSRVR

#define AFPERR_NOSRVR   -5016 /* no response by server at that address */

◆ AFPERR_NOTAUTH

#define AFPERR_NOTAUTH   -5023 /* user not authenticated */

◆ AFPERR_OLOCK

#define AFPERR_OLOCK   -5032 /* object locked */

◆ AFPERR_PARAM

#define AFPERR_PARAM   -5019 /* parameter error */

◆ AFPERR_PWDCHNG

#define AFPERR_PWDCHNG   -5045 /* password needs to be changed */

◆ AFPERR_PWDEXPR

#define AFPERR_PWDEXPR   -5042 /* password expired */

◆ AFPERR_PWDPOLCY

#define AFPERR_PWDPOLCY   -5046 /* password fails policy check */

◆ AFPERR_PWDSAME

#define AFPERR_PWDSAME   -5040 /* same password/can't change password */

◆ AFPERR_PWDSHORT

#define AFPERR_PWDSHORT   -5041 /* password too short */

◆ AFPERR_RANGEOVR

#define AFPERR_RANGEOVR   -5021 /* range overlap */

◆ AFPERR_SAMEOBJ

#define AFPERR_SAMEOBJ   -5038 /* source file == destination file */

◆ AFPERR_SESSCLOS

#define AFPERR_SESSCLOS   -5022 /* session closed */

◆ AFPERR_SHUTDOWN

#define AFPERR_SHUTDOWN   -5027 /* server is going down */

◆ AFPERR_USRLOGIN

#define AFPERR_USRLOGIN   -5047 /* user already logged on */

◆ AFPERR_VLOCK

#define AFPERR_VLOCK   -5031 /* volume locked */

◆ BITERR_ACCESS

#define BITERR_ACCESS   (1 << 8)

◆ BITERR_BADTYPE

#define BITERR_BADTYPE   (1 << 4)

◆ BITERR_BITMAP

#define BITERR_BITMAP   (1 << 10)

◆ BITERR_BUSY

#define BITERR_BUSY   (1 << 3)

◆ BITERR_DENYCONF

#define BITERR_DENYCONF   (1 << 6)

◆ BITERR_MISC

#define BITERR_MISC   (1 << 11)

◆ BITERR_NFILE

#define BITERR_NFILE   (1 << 7)

◆ BITERR_NODIR

#define BITERR_NODIR   (1 << 1)

◆ BITERR_NOID

#define BITERR_NOID   (1 << 9)

◆ BITERR_NOITEM

#define BITERR_NOITEM   (1 << 5)

◆ BITERR_NOOBJ

#define BITERR_NOOBJ   (1 << 0)

◆ BITERR_PARAM

#define BITERR_PARAM   (1 << 2)