X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fatalk%2Fadouble.h;h=40c92a11af01e046ceba97e59e15c3f1f0f1da9e;hb=3a84db87064922ad10ac10cc1d6833380e575995;hp=972ce26f7534e40d287d6a4af5d7faaeb2090a98;hpb=8c25635e752ff3cf4d9abb6965363627d1cab4d7;p=netatalk.git diff --git a/include/atalk/adouble.h b/include/atalk/adouble.h index 972ce26f..40c92a11 100644 --- a/include/atalk/adouble.h +++ b/include/atalk/adouble.h @@ -249,6 +249,7 @@ struct adouble { #define ADVOL_UNIXPRIV (1 << 2) /* adouble unix priv */ #define ADVOL_INVDOTS (1 << 3) /* dot files (.DS_Store) are invisible) */ #define ADVOL_FOLLO_SYML (1 << 4) +#define ADVOL_FORCE_STICKY_XATTR (1 << 5) /* lock flags */ #define ADLOCK_CLR (0) @@ -348,6 +349,12 @@ struct adouble { #define AD_AFPFILEI_GROUP (1 << 1) /* ignore group */ #define AD_AFPFILEI_BLANKACCESS (1 << 2) /* blank access permissions */ +/* + * String identifiers for the 16 AppleDouble filler bytes + */ +#define AD_FILLER_NETATALK "Netatalk " +#define AD_FILLER_OSX "Mac OS X" + #define ad_data_fileno(ad) ((ad)->ad_data_fork.adf_fd) #define ad_reso_fileno(ad) ((ad)->ad_rfp->adf_fd) #define ad_meta_fileno(ad) ((ad)->ad_mdp->adf_fd) @@ -376,6 +383,7 @@ struct adouble { /* ad_flush.c */ extern int ad_rebuild_adouble_header_v2(struct adouble *); extern int ad_rebuild_adouble_header_ea(struct adouble *); +extern int ad_rebuild_adouble_header_osx(struct adouble *ad, char *adbuf); extern int ad_copy_header (struct adouble *, struct adouble *); extern int ad_flush (struct adouble *); extern int ad_close (struct adouble *, int);