netatalk: adoublehelper.h Source File

netatalk 4.5.1
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
adoublehelper.h
Go to the documentation of this file.
1/* ---------------------------------------
2*/
3
4#ifndef ADOUBLEHELPER_H
5#define ADOUBLEHELPER_H
6
7#include <inttypes.h>
8#include <sys/types.h>
9
10extern int delete_unix_adouble(char *path, char *name);
11extern int delete_unix_dir(char *path, char *name);
12extern int folder_with_ro_adouble(uint16_t vol, int did, char *name,
13 char *file);
14extern int delete_ro_adouble(uint16_t vol, int did, char *file);
15
16extern int delete_unix_md(char *path, char *name, char *file);
17extern int delete_unix_rf(char *path, char *name, char *file);
18extern int delete_unix_file(char *path, char *name, char *file);
19extern int rename_unix_file(char *path, char *dir, char *src, char *dst);
20
21extern int unlink_unix_file(char *path, char *name, char *file);
22extern int symlink_unix_file(char *target, char *path, char *source);
23
24extern int chmod_unix_meta(char *path, char *name, char *file, mode_t mode);
25extern int chmod_unix_rfork(char *path, char *name, char *file, mode_t mode);
26
27/* Names for our Extended Attributes adouble data
28 Keep in sync with <atalk/ea.h> */
29#define AD_EA_META "org.netatalk.Metadata"
30#define AD_EA_META_LEN (sizeof(AD_EA_META) - 1)
31#ifdef __APPLE__
32#define AD_EA_RESO "com.apple.ResourceFork"
33#define EA_FINFO "com.apple.FinderInfo"
34#define NOT_NETATALK_EA(a) (strcmp((a), AD_EA_META) != 0) && (strcmp((a), AD_EA_RESO) != 0) && (strcmp((a), EA_FINFO) != 0)
35#else
36#define AD_EA_RESO "org.netatalk.ResourceFork"
37#define NOT_NETATALK_EA(a) (strcmp((a), AD_EA_META) != 0) && (strcmp((a), AD_EA_RESO) != 0)
38#endif
39
40/****************************************************************************************
41 * Wrappers for native EA functions taken from Samba
42 ****************************************************************************************/
43int sys_lremovexattr(const char *path, const char *name);
44
45/* -------------------
46*/
47
48#endif
delete_unix_md
int delete_unix_md(char *path, char *name, char *file)
Definition adoublehelper.c:17
chmod_unix_rfork
int chmod_unix_rfork(char *path, char *name, char *file, mode_t mode)
Definition adoublehelper.c:360
chmod_unix_meta
int chmod_unix_meta(char *path, char *name, char *file, mode_t mode)
Definition adoublehelper.c:314
delete_unix_adouble
int delete_unix_adouble(char *path, char *name)
Definition adoublehelper.c:250
unlink_unix_file
int unlink_unix_file(char *path, char *name, char *file)
Definition adoublehelper.c:207
delete_unix_dir
int delete_unix_dir(char *path, char *name)
Definition adoublehelper.c:424
delete_ro_adouble
int delete_ro_adouble(uint16_t vol, int did, char *file)
Definition adoublehelper.c:508
sys_lremovexattr
int sys_lremovexattr(const char *path, const char *name)
Definition extattr.c:595
delete_unix_rf
int delete_unix_rf(char *path, char *name, char *file)
Definition adoublehelper.c:56
folder_with_ro_adouble
int folder_with_ro_adouble(uint16_t vol, int did, char *name, char *file)
Definition adoublehelper.c:451
symlink_unix_file
int symlink_unix_file(char *target, char *path, char *source)
Definition adoublehelper.c:228
delete_unix_file
int delete_unix_file(char *path, char *name, char *file)
Definition adoublehelper.c:119
rename_unix_file
int rename_unix_file(char *path, char *dir, char *src, char *dst)
Definition adoublehelper.c:145
target
static struct sockaddr_at target
Definition aecho.c:58
did
cnid_t did
Definition nad_cp.c:93
dir
Definition include/atalk/directory.h:56
path
Definition include/atalk/directory.h:123
vol
Definition include/atalk/volume.h:33