Lines Matching refs:adouble
2 * $Id: adouble.h,v 1.55 2010-03-30 12:55:26 franklahm Exp $
238 struct adouble {
270 int (*ad_rebuild_header)(struct adouble *);
271 int (*ad_check_header)(struct adouble *, struct stat *);
272 int (*ad_header_read)(struct adouble *, struct stat *);
273 int (*ad_header_upgrade)(struct adouble *, char *);
290 /* adouble v2 cnid cache */
293 #define ADVOL_UNIXPRIV (1 << 2) /* adouble unix priv */
425 extern int ad_rebuild_adouble_header (struct adouble *);
426 extern int ad_rebuild_sfm_header (struct adouble *);
427 extern int ad_copy_header (struct adouble *, struct adouble *);
428 extern int ad_flush (struct adouble *);
429 extern int ad_close (struct adouble *, int);
432 extern int ad_fcntl_lock (struct adouble *, const u_int32_t /*eid*/,
435 extern void ad_fcntl_unlock (struct adouble *, const int /*user*/);
436 extern int ad_fcntl_tmplock (struct adouble *, const u_int32_t /*eid*/,
439 extern int ad_testlock (struct adouble * /*adp*/, int /*eid*/, off_t /*off*/);
441 extern u_int16_t ad_openforks (struct adouble * /*adp*/, u_int16_t);
442 extern int ad_excl_lock (struct adouble * /*adp*/, const u_int32_t /*eid*/);
458 extern void ad_init (struct adouble *, int, int );
459 extern int ad_open (const char *, int, int, int, struct adouble *);
460 extern int ad_openat (int dirfd, const char *, int, int, int, struct adouble *);
461 extern int ad_refresh (struct adouble *);
463 extern int ad_metadata (const char *, int, struct adouble *);
464 extern int ad_metadataat (int, const char *, int, struct adouble *);
514 extern ssize_t ad_read (struct adouble *, const u_int32_t,
517 extern ssize_t ad_write (struct adouble *, const u_int32_t, off_t,
521 extern int ad_dtruncate (struct adouble *, const off_t);
522 extern int ad_rtruncate (struct adouble *, const off_t);
525 extern off_t ad_size (const struct adouble *, const u_int32_t );
528 extern void *ad_mmapread (struct adouble *, const u_int32_t,
530 extern void *ad_mmapwrite (struct adouble *, const u_int32_t,
535 extern int ad_setdate (struct adouble *, unsigned int, u_int32_t);
536 extern int ad_getdate (const struct adouble *, unsigned int, u_int32_t *);
539 extern int ad_setattr (const struct adouble *, const u_int16_t);
540 extern int ad_getattr (const struct adouble *, u_int16_t *);
543 extern int ad_setname (struct adouble *, const char *);
546 extern int ad_setid (struct adouble *, const dev_t dev,const ino_t ino, const u_int32_t, const u_int32_t, const void *);
547 extern u_int32_t ad_getid (struct adouble *, const dev_t, const ino_t, const cnid_t, const void *);
548 extern u_int32_t ad_forcegetid (struct adouble *adp);
554 extern int ad_readfile_init(const struct adouble *ad,
561 extern ssize_t ad_writefile (struct adouble *, const int,