#include <grp.h>
#include <iniparser.h>
#include <netdb.h>
#include <stdbool.h>
#include <sys/param.h>
#include <sys/types.h>
#include <netatalk/at.h>
#include <atalk/afp.h>
#include <atalk/compat.h>
#include <atalk/uam.h>
#include <atalk/unicode.h>
#include <atalk/afp_dtrace.h>
Go to the source code of this file.
◆ AFPOBJ_TMPSIZ
| #define AFPOBJ_TMPSIZ (MAXPATHLEN) |
◆ DEFAULT_DIRCACHE_METADATA_THRESHOLD
| #define DEFAULT_DIRCACHE_METADATA_THRESHOLD 60 |
Metadata change threshold (seconds)
◆ DEFAULT_DIRCACHE_METADATA_WINDOW
| #define DEFAULT_DIRCACHE_METADATA_WINDOW 300 |
Metadata change window (seconds)
◆ DEFAULT_DIRCACHE_VALIDATION_FREQ
| #define DEFAULT_DIRCACHE_VALIDATION_FREQ 1 |
Validate every Nth access (default 1 for backward compatibility)
◆ DEFAULT_MAX_DIRCACHE_SIZE
| #define DEFAULT_MAX_DIRCACHE_SIZE 8192 |
◆ IS_AFP_SESSION
| #define IS_AFP_SESSION |
( |
| obj | ) |
|
Value:(((
obj)->dsi && (
obj)->dsi->serversock == -1) || ((
obj)->Type))
static AFPObj obj
Definition netatalk.c:62
◆ MACFILELEN
◆ MAXOPTLEN
◆ MAXUSERLEN
◆ OPTION_ACL2MACCESS
| #define OPTION_ACL2MACCESS (1 << 8) |
◆ OPTION_ACL2MODE
| #define OPTION_ACL2MODE (1 << 10) |
◆ OPTION_AFP_READ_LOCK
| #define OPTION_AFP_READ_LOCK (1 << 5) |
whether to do AFP spec conforming read locks (default: no)
◆ OPTION_ANNOUNCESSH
| #define OPTION_ANNOUNCESSH (1 << 6) |
◆ OPTION_CLOSEVOL
| #define OPTION_CLOSEVOL (1 << 1) |
◆ OPTION_DBUS_AFPSTATS
| #define OPTION_DBUS_AFPSTATS (1 << 12) |
whether to run dbus thread for afpstats
◆ OPTION_DDP
| #define OPTION_DDP (1 << 17) |
whether to allow connections via appletalk/ddp
◆ OPTION_DEBUG
| #define OPTION_DEBUG (1 << 0) |
◆ OPTION_NOSENDFILE
| #define OPTION_NOSENDFILE (1 << 3) |
◆ OPTION_NOZEROCONF
| #define OPTION_NOZEROCONF (1 << 9) |
◆ OPTION_RECVFILE
| #define OPTION_RECVFILE (1 << 15) |
◆ OPTION_SERVERNOTIF
| #define OPTION_SERVERNOTIF (1 << 2) |
◆ OPTION_SHARE_RESERV
| #define OPTION_SHARE_RESERV (1 << 11) |
whether to use Solaris fcntl F_SHARE locks
◆ OPTION_SPOTLIGHT
| #define OPTION_SPOTLIGHT (1 << 13) |
whether to initialize Spotlight support
◆ OPTION_SPOTLIGHT_EXPR
| #define OPTION_SPOTLIGHT_EXPR (1 << 16) |
whether to allow Spotlight logic expressions
◆ OPTION_SPOTLIGHT_VOL
| #define OPTION_SPOTLIGHT_VOL (1 << 14) |
whether spotlight shall be enabled by default for volumes
◆ OPTION_UUID
| #define OPTION_UUID (1 << 7) |
◆ OPTION_VALID_SHELLCHECK
| #define OPTION_VALID_SHELLCHECK (1 << 18) |
whether to check for valid login shell
◆ OPTION_VETOMSG
| #define OPTION_VETOMSG (1 << 4) |
whether to send an AFP message for veto file access
◆ PASSWD_ALL
◆ PASSWD_NONE
◆ PASSWD_NOSAVE
| #define PASSWD_NOSAVE (1 << 1) |
◆ PASSWD_SET
| #define PASSWD_SET (1 << 0) |
◆ UTF8FILELEN_EARLY
| #define UTF8FILELEN_EARLY 255 |
Type3, early Mac OS X 10.0-10.4.?
◆ AFPCmd
typedef for AFP functions handlers
◆ AFPObj
| typedef struct AFPObj AFPObj |
◆ afp_options_init()
◆ afp_options_parse_cmdline()
| void afp_options_parse_cmdline |
( |
AFPObj * | obj, |
|
|
int | ac, |
|
|
char ** | av ) |
|
extern |
◆ afp_over_asp()
| void afp_over_asp |
( |
AFPObj * | obj | ) |
|
|
extern |
◆ afp_over_dsi()
| void afp_over_dsi |
( |
AFPObj * | obj | ) |
|
|
extern |
◆ afp_over_dsi_sighandlers()
| void afp_over_dsi_sighandlers |
( |
AFPObj * | obj | ) |
|
|
extern |
◆ get_afp_errno()
| int get_afp_errno |
( |
const int | param | ) |
|
|
extern |
◆ readmessage()
| void readmessage |
( |
AFPObj * | obj | ) |
|
|
extern |
◆ setmessage()
| int setmessage |
( |
const char * | message | ) |
|
|
extern |
Copy AFP message to message buffer.
- Parameters
-
| [in] | message | message to send |
- Returns
- 0 if this message is being set the first time, return 1 if the preceeding message was the same
◆ afp_errno
◆ afp_version
◆ AFPobj
We generally pass this from afp_over_dsi to all afp_* funcs, so it should already be available everywhere. Unfortunately some funcs (eg acltoownermode) need acces to it but are deeply nested in the function chain with the caller already without acces to it. Changing this would require adding a reference to the caller which itself might be called in many places (eg acltoownermode is called from accessmode). The only sane way out is providing a copy of it here:
◆ Cnid_port
◆ Cnid_srv
◆ curdir
◆ default_options
◆ getwdbuf
◆ nologin