Searched refs:ad_fd (Results 1 - 4 of 4) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/libatalk/adouble/
H A Dad_read.c38 ssize_t adf_pread(struct ad_fd *ad_fd, void *buf, size_t count, off_t offset) argument
43 if ( ad_fd->adf_off != offset ) {
44 if ( lseek( ad_fd->adf_fd, offset, SEEK_SET ) < 0 ) {
47 ad_fd->adf_off = offset;
49 if (( cc = read( ad_fd->adf_fd, buf, count )) < 0 ) {
52 ad_fd->adf_off += cc;
54 cc = pread(ad_fd->adf_fd, buf, count, offset );
H A Dad_write.c25 ssize_t adf_pwrite(struct ad_fd *ad_fd, const void *buf, size_t count, off_t offset) argument
30 if ( ad_fd->adf_off != offset ) {
31 if ( lseek( ad_fd->adf_fd, offset, SEEK_SET ) < 0 ) {
34 ad_fd->adf_off = offset;
36 cc = write( ad_fd->adf_fd, buf, count );
40 ad_fd->adf_off += cc;
42 cc = pwrite(ad_fd->adf_fd, buf, count, offset );
H A Dad_lock.c82 static void adf_freelock(struct ad_fd *ad, const int i)
126 static void adf_unlock(struct ad_fd *ad, const int fork)
146 static void adf_relockrange(struct ad_fd *ad, int fd,
160 static int adf_findlock(struct ad_fd *ad,
182 static int adf_findxlock(struct ad_fd *ad,
270 struct ad_fd *adf;
416 static int testlock(struct ad_fd *adf, off_t off, off_t len)
451 struct ad_fd *adf;
482 struct ad_fd *adf;
540 struct ad_fd *ad
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/netatalk-2.2.5/include/atalk/
H A Dadouble.h220 struct ad_fd { struct
243 struct ad_fd ad_data_fork, ad_resource_fork, ad_metadata_fork;
244 struct ad_fd *ad_md; /* either ad_resource or ad_metadata */
516 extern ssize_t ad_pread (struct ad_fd *, void *, size_t, off_t);
519 extern ssize_t adf_pread (struct ad_fd *, void *, size_t, off_t);
520 extern ssize_t adf_pwrite (struct ad_fd *, const void *, size_t, off_t);

Completed in 64 milliseconds