• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/netatalk-3.0.5/include/atalk/

Lines Matching defs:adouble

83 /* These are the real ids for these entries, as stored in the adouble file */
153 /* fallback for ad:ea on filesystems without fds for EAs, like old adouble:osx */
185 struct adouble;
190 int (*ad_rebuild_header)(struct adouble *);
191 int (*ad_header_read)(const char *, struct adouble *, const struct stat *);
192 int (*ad_header_upgrade)(struct adouble *, const char *);
195 struct adouble {
196 uint32_t ad_magic; /* Official adouble magic */
197 uint32_t ad_version; /* Official adouble version number */
203 struct ad_fd ad_resource_fork; /* adouble:v2 -> the adouble file *
204 * adouble:ea -> the EA fd */
206 struct ad_fd *ad_rfp; /* adouble:v2 -> ad_resource_fork *
207 * adouble:ea -> ad_resource_fork */
209 struct ad_fd *ad_mdp; /* adouble:v2 -> ad_resource_fork *
210 * adouble:ea -> ad_data_fork */
212 int ad_vers; /* Our adouble version info (AD_VERSION*) */
216 int ad_refcount; /* multiple forks may open one adouble */
249 #define ADVOL_UNIXPRIV (1 << 2) /* adouble unix priv */
370 /* Refcounting open forks using one struct adouble */
377 extern int ad_rebuild_adouble_header_v2(struct adouble *);
378 extern int ad_rebuild_adouble_header_ea(struct adouble *);
379 extern int ad_copy_header (struct adouble *, struct adouble *);
380 extern int ad_flush (struct adouble *);
381 extern int ad_close (struct adouble *, int);
382 extern int fsetrsrcea(struct adouble *ad, int fd, const char *eaname, const void *value, size_t size, int flags);
385 extern int ad_testlock (struct adouble *adp, int eid, off_t off);
386 extern uint16_t ad_openforks(struct adouble *adp, uint16_t);
387 extern int ad_lock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int fork);
388 extern void ad_unlock(struct adouble *, int fork, int unlckbrl);
389 extern int ad_tmplock(struct adouble *, uint32_t eid, int type, off_t off, off_t len, int fork);
392 extern off_t ad_getentryoff(const struct adouble *ad, int eid);
403 extern void ad_init (struct adouble *, const struct vol * restrict);
404 extern void ad_init_old (struct adouble *ad, int flags, int options);
405 extern int ad_init_offsets(struct adouble *ad);
406 extern int ad_open (struct adouble *ad, const char *path, int adflags, ...);
407 extern int ad_openat (struct adouble *, int dirfd, const char *path, int adflags, ...);
408 extern int ad_refresh (const char *path, struct adouble *);
410 extern int ad_metadata (const char *, int, struct adouble *);
411 extern int ad_metadataat (int, const char *, int, struct adouble *);
414 extern off_t ad_reso_size(const char *path, int adflags, struct adouble *ad);
421 extern ssize_t ad_read(struct adouble *, uint32_t, off_t, char *, size_t);
423 extern ssize_t ad_write(struct adouble *, uint32_t, off_t, int, const char *, size_t);
426 extern int ad_dtruncate(struct adouble *, off_t);
427 extern int ad_rtruncate(struct adouble *, const char *, off_t);
428 extern int copy_fork(int eid, struct adouble *add, struct adouble *ads);
431 extern off_t ad_size (const struct adouble *, uint32_t );
434 extern void *ad_mmapread(struct adouble *, uint32_t, off_t, size_t);
435 extern void *ad_mmapwrite(struct adouble *, uint32_t, off_t, int, size_t);
439 extern int ad_setdate(struct adouble *, unsigned int, uint32_t);
440 extern int ad_getdate(const struct adouble *, unsigned int, uint32_t *);
443 extern int ad_setattr(const struct adouble *, const uint16_t);
444 extern int ad_getattr(const struct adouble *, uint16_t *);
445 extern int ad_setname(struct adouble *, const char *);
446 extern int ad_setid(struct adouble *, dev_t dev, ino_t ino, uint32_t, uint32_t, const void *);
447 extern uint32_t ad_getid(struct adouble *, dev_t, ino_t, cnid_t, const void *);
448 extern uint32_t ad_forcegetid(struct adouble *adp);
451 extern int ad_readfile_init(const struct adouble *ad, int eid, off_t *off, int end);