Searched refs:ad (Results 1 - 25 of 419) sorted by relevance

1234567891011>>

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/netatalk-3.0.5/libatalk/adouble/
H A Dad_size.c17 off_t ad_size(const struct adouble *ad, const uint32_t eid) argument
22 if (ad->ad_data_fork.adf_syml)
23 return strlen(ad->ad_data_fork.adf_syml);
25 if (fstat(ad_data_fileno(ad), &st) < 0)
30 return ad_getentrylen(ad, eid);
32 return ad->ad_rlen;
H A Dad_flush.c54 * Prepare ad->ad_data buffer from struct adouble for writing on disk
56 int ad_rebuild_adouble_header_v2(struct adouble *ad) argument
65 buf = ad->ad_data;
67 temp = htonl( ad->ad_magic );
71 temp = htonl( ad->ad_version );
75 buf += sizeof( ad->ad_filler );
80 if (ad->ad_eid[ eid ].ade_off == 0)
86 temp = htonl( ad->ad_eid[ eid ].ade_off );
90 temp = htonl( ad->ad_eid[ eid ].ade_len );
98 return ad_getentryoff(ad, ADEID_RFOR
101 ad_rebuild_adouble_header_ea(struct adouble *ad) argument
149 ad_rebuild_adouble_header_osx(struct adouble *ad, char *adbuf) argument
247 ad_flush_hf(struct adouble *ad) argument
319 ad_flush_rf(struct adouble *ad) argument
350 ad_flush(struct adouble *ad) argument
368 ad_data_closefd(struct adouble *ad) argument
386 ad_close(struct adouble *ad, int adflags) argument
[all...]
H A Dad_open.c70 /* ad:v2 */
85 /* ad:ea */
108 static int ad_header_read(const char *path, struct adouble *ad, const struct stat *hst);
109 static int ad_header_upgrade(struct adouble *ad, const char *name);
114 static int ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst);
115 static int ad_header_upgrade_ea(struct adouble *ad, const char *name);
116 off_t ad_reso_size(const char *path, int adflags, struct adouble *ad);
318 int ad_init_offsets(struct adouble *ad) argument
322 if (ad->ad_magic == AD_MAGIC)
325 ad
350 new_ad_header(struct adouble *ad, const char *path, struct stat *stp, int adflags) argument
393 parse_entries(struct adouble *ad, char *buf, uint16_t nentries) argument
430 ad_header_read(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
552 ad_header_read_osx(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
621 ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst _U_) argument
794 ad_error(struct adouble *ad, int adflags) argument
816 ad2openflags(const struct adouble *ad, int adfile, int adflags) argument
845 ad_open_df(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
929 ad_open_hf_v2(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
1061 ad_open_hf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1151 ad_open_hf(const char *path, int adflags, int mode, struct adouble *ad) argument
1180 ad_reso_size(const char *path, int adflags, struct adouble *ad) argument
1221 ad_open_rf_v2(const char *path, int adflags, int mode, struct adouble *ad) argument
1242 ad_open_rf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1387 ad_open_rf(const char *path, int adflags, int mode, struct adouble *ad) argument
1410 ad_getentryoff(const struct adouble *ad, int eid) argument
1611 ad_init_func(struct adouble *ad) argument
1637 ad_init_old(struct adouble *ad, int flags, int options) argument
1645 ad_init(struct adouble *ad, const struct vol * restrict vol) argument
1697 ad_open(struct adouble *ad, const char *path, int adflags, ...) argument
1843 ad_refresh(const char *path, struct adouble *ad) argument
1889 ad_openat(struct adouble *ad, int dirfd, const char *path, int adflags, ...) argument
[all...]
H A Dad_mmap.c29 void *ad_mmapread(struct adouble *ad, const u_int32_t eid, argument
34 if ( lseek( ad->ad_df.adf_fd, 0, SEEK_SET ) < 0 ) {
38 ad->ad_df.adf_off = 0;
40 ad->ad_df.adf_fd, off);
45 if ( lseek( ad->ad_hf.adf_fd, 0, SEEK_SET ) < 0 ) {
49 ad->ad_hf.adf_off = 0;
51 ad->ad_hf.adf_fd, ad->ad_eid[eid].ade_off + off);
58 void *ad_mmapwrite(struct adouble *ad, const u_int32_t eid, argument
65 if ( fstat( ad
[all...]
H A Dad_date.c9 int ad_setdate(struct adouble *ad, argument
18 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
23 memcpy(ad_entry(ad, ADEID_FILEDATESI) + dateoff, &date, sizeof(date));
28 int ad_getdate(const struct adouble *ad, argument
34 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
39 memcpy(date, ad_entry(ad, ADEID_FILEDATESI) + dateoff, sizeof(uint32_t));
H A Dad_read.c62 ssize_t ad_read( struct adouble *ad, const uint32_t eid, off_t off, char *buf, const size_t buflen) argument
70 if (ad->ad_data_fork.adf_syml !=0 ) {
72 cc = strlen(ad->ad_data_fork.adf_syml);
76 memcpy(buf, ad->ad_data_fork.adf_syml, cc);
78 cc = adf_pread(&ad->ad_data_fork, buf, buflen, off);
81 if (! AD_RSRC_OPEN(ad))
85 if (ad->ad_vers == AD_VERSION_EA) {
92 r_off = ad_getentryoff(ad, eid) + off;
95 if (( cc = adf_pread( &ad->ad_resource_fork, buf, buflen, r_off )) < 0 )
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/netatalk-3.0.5/libatalk/adouble/
H A Dad_size.c17 off_t ad_size(const struct adouble *ad, const uint32_t eid) argument
22 if (ad->ad_data_fork.adf_syml)
23 return strlen(ad->ad_data_fork.adf_syml);
25 if (fstat(ad_data_fileno(ad), &st) < 0)
30 return ad_getentrylen(ad, eid);
32 return ad->ad_rlen;
H A Dad_flush.c54 * Prepare ad->ad_data buffer from struct adouble for writing on disk
56 int ad_rebuild_adouble_header_v2(struct adouble *ad) argument
65 buf = ad->ad_data;
67 temp = htonl( ad->ad_magic );
71 temp = htonl( ad->ad_version );
75 buf += sizeof( ad->ad_filler );
80 if (ad->ad_eid[ eid ].ade_off == 0)
86 temp = htonl( ad->ad_eid[ eid ].ade_off );
90 temp = htonl( ad->ad_eid[ eid ].ade_len );
98 return ad_getentryoff(ad, ADEID_RFOR
101 ad_rebuild_adouble_header_ea(struct adouble *ad) argument
149 ad_rebuild_adouble_header_osx(struct adouble *ad, char *adbuf) argument
247 ad_flush_hf(struct adouble *ad) argument
319 ad_flush_rf(struct adouble *ad) argument
350 ad_flush(struct adouble *ad) argument
368 ad_data_closefd(struct adouble *ad) argument
386 ad_close(struct adouble *ad, int adflags) argument
[all...]
H A Dad_open.c70 /* ad:v2 */
85 /* ad:ea */
108 static int ad_header_read(const char *path, struct adouble *ad, const struct stat *hst);
109 static int ad_header_upgrade(struct adouble *ad, const char *name);
114 static int ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst);
115 static int ad_header_upgrade_ea(struct adouble *ad, const char *name);
116 off_t ad_reso_size(const char *path, int adflags, struct adouble *ad);
318 int ad_init_offsets(struct adouble *ad) argument
322 if (ad->ad_magic == AD_MAGIC)
325 ad
350 new_ad_header(struct adouble *ad, const char *path, struct stat *stp, int adflags) argument
393 parse_entries(struct adouble *ad, char *buf, uint16_t nentries) argument
430 ad_header_read(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
552 ad_header_read_osx(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
621 ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst _U_) argument
794 ad_error(struct adouble *ad, int adflags) argument
816 ad2openflags(const struct adouble *ad, int adfile, int adflags) argument
845 ad_open_df(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
929 ad_open_hf_v2(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
1061 ad_open_hf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1151 ad_open_hf(const char *path, int adflags, int mode, struct adouble *ad) argument
1180 ad_reso_size(const char *path, int adflags, struct adouble *ad) argument
1221 ad_open_rf_v2(const char *path, int adflags, int mode, struct adouble *ad) argument
1242 ad_open_rf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1387 ad_open_rf(const char *path, int adflags, int mode, struct adouble *ad) argument
1410 ad_getentryoff(const struct adouble *ad, int eid) argument
1611 ad_init_func(struct adouble *ad) argument
1637 ad_init_old(struct adouble *ad, int flags, int options) argument
1645 ad_init(struct adouble *ad, const struct vol * restrict vol) argument
1697 ad_open(struct adouble *ad, const char *path, int adflags, ...) argument
1843 ad_refresh(const char *path, struct adouble *ad) argument
1889 ad_openat(struct adouble *ad, int dirfd, const char *path, int adflags, ...) argument
[all...]
H A Dad_mmap.c29 void *ad_mmapread(struct adouble *ad, const u_int32_t eid, argument
34 if ( lseek( ad->ad_df.adf_fd, 0, SEEK_SET ) < 0 ) {
38 ad->ad_df.adf_off = 0;
40 ad->ad_df.adf_fd, off);
45 if ( lseek( ad->ad_hf.adf_fd, 0, SEEK_SET ) < 0 ) {
49 ad->ad_hf.adf_off = 0;
51 ad->ad_hf.adf_fd, ad->ad_eid[eid].ade_off + off);
58 void *ad_mmapwrite(struct adouble *ad, const u_int32_t eid, argument
65 if ( fstat( ad
[all...]
H A Dad_date.c9 int ad_setdate(struct adouble *ad, argument
18 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
23 memcpy(ad_entry(ad, ADEID_FILEDATESI) + dateoff, &date, sizeof(date));
28 int ad_getdate(const struct adouble *ad, argument
34 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
39 memcpy(date, ad_entry(ad, ADEID_FILEDATESI) + dateoff, sizeof(uint32_t));
H A Dad_read.c62 ssize_t ad_read( struct adouble *ad, const uint32_t eid, off_t off, char *buf, const size_t buflen) argument
70 if (ad->ad_data_fork.adf_syml !=0 ) {
72 cc = strlen(ad->ad_data_fork.adf_syml);
76 memcpy(buf, ad->ad_data_fork.adf_syml, cc);
78 cc = adf_pread(&ad->ad_data_fork, buf, buflen, off);
81 if (! AD_RSRC_OPEN(ad))
85 if (ad->ad_vers == AD_VERSION_EA) {
92 r_off = ad_getentryoff(ad, eid) + off;
95 if (( cc = adf_pread( &ad->ad_resource_fork, buf, buflen, r_off )) < 0 )
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/netatalk-3.0.5/libatalk/adouble/
H A Dad_size.c17 off_t ad_size(const struct adouble *ad, const uint32_t eid) argument
22 if (ad->ad_data_fork.adf_syml)
23 return strlen(ad->ad_data_fork.adf_syml);
25 if (fstat(ad_data_fileno(ad), &st) < 0)
30 return ad_getentrylen(ad, eid);
32 return ad->ad_rlen;
H A Dad_flush.c54 * Prepare ad->ad_data buffer from struct adouble for writing on disk
56 int ad_rebuild_adouble_header_v2(struct adouble *ad) argument
65 buf = ad->ad_data;
67 temp = htonl( ad->ad_magic );
71 temp = htonl( ad->ad_version );
75 buf += sizeof( ad->ad_filler );
80 if (ad->ad_eid[ eid ].ade_off == 0)
86 temp = htonl( ad->ad_eid[ eid ].ade_off );
90 temp = htonl( ad->ad_eid[ eid ].ade_len );
98 return ad_getentryoff(ad, ADEID_RFOR
101 ad_rebuild_adouble_header_ea(struct adouble *ad) argument
149 ad_rebuild_adouble_header_osx(struct adouble *ad, char *adbuf) argument
247 ad_flush_hf(struct adouble *ad) argument
319 ad_flush_rf(struct adouble *ad) argument
350 ad_flush(struct adouble *ad) argument
368 ad_data_closefd(struct adouble *ad) argument
386 ad_close(struct adouble *ad, int adflags) argument
[all...]
H A Dad_open.c70 /* ad:v2 */
85 /* ad:ea */
108 static int ad_header_read(const char *path, struct adouble *ad, const struct stat *hst);
109 static int ad_header_upgrade(struct adouble *ad, const char *name);
114 static int ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst);
115 static int ad_header_upgrade_ea(struct adouble *ad, const char *name);
116 off_t ad_reso_size(const char *path, int adflags, struct adouble *ad);
318 int ad_init_offsets(struct adouble *ad) argument
322 if (ad->ad_magic == AD_MAGIC)
325 ad
350 new_ad_header(struct adouble *ad, const char *path, struct stat *stp, int adflags) argument
393 parse_entries(struct adouble *ad, char *buf, uint16_t nentries) argument
430 ad_header_read(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
552 ad_header_read_osx(const char *path _U_, struct adouble *ad, const struct stat *hst) argument
621 ad_header_read_ea(const char *path, struct adouble *ad, const struct stat *hst _U_) argument
794 ad_error(struct adouble *ad, int adflags) argument
816 ad2openflags(const struct adouble *ad, int adfile, int adflags) argument
845 ad_open_df(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
929 ad_open_hf_v2(const char *path, int adflags, mode_t mode, struct adouble *ad) argument
1061 ad_open_hf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1151 ad_open_hf(const char *path, int adflags, int mode, struct adouble *ad) argument
1180 ad_reso_size(const char *path, int adflags, struct adouble *ad) argument
1221 ad_open_rf_v2(const char *path, int adflags, int mode, struct adouble *ad) argument
1242 ad_open_rf_ea(const char *path, int adflags, int mode, struct adouble *ad) argument
1387 ad_open_rf(const char *path, int adflags, int mode, struct adouble *ad) argument
1410 ad_getentryoff(const struct adouble *ad, int eid) argument
1611 ad_init_func(struct adouble *ad) argument
1637 ad_init_old(struct adouble *ad, int flags, int options) argument
1645 ad_init(struct adouble *ad, const struct vol * restrict vol) argument
1697 ad_open(struct adouble *ad, const char *path, int adflags, ...) argument
1843 ad_refresh(const char *path, struct adouble *ad) argument
1889 ad_openat(struct adouble *ad, int dirfd, const char *path, int adflags, ...) argument
[all...]
H A Dad_mmap.c29 void *ad_mmapread(struct adouble *ad, const u_int32_t eid, argument
34 if ( lseek( ad->ad_df.adf_fd, 0, SEEK_SET ) < 0 ) {
38 ad->ad_df.adf_off = 0;
40 ad->ad_df.adf_fd, off);
45 if ( lseek( ad->ad_hf.adf_fd, 0, SEEK_SET ) < 0 ) {
49 ad->ad_hf.adf_off = 0;
51 ad->ad_hf.adf_fd, ad->ad_eid[eid].ade_off + off);
58 void *ad_mmapwrite(struct adouble *ad, const u_int32_t eid, argument
65 if ( fstat( ad
[all...]
H A Dad_date.c9 int ad_setdate(struct adouble *ad, argument
18 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
23 memcpy(ad_entry(ad, ADEID_FILEDATESI) + dateoff, &date, sizeof(date));
28 int ad_getdate(const struct adouble *ad, argument
34 if (!ad_getentryoff(ad, ADEID_FILEDATESI))
39 memcpy(date, ad_entry(ad, ADEID_FILEDATESI) + dateoff, sizeof(uint32_t));
H A Dad_read.c62 ssize_t ad_read( struct adouble *ad, const uint32_t eid, off_t off, char *buf, const size_t buflen) argument
70 if (ad->ad_data_fork.adf_syml !=0 ) {
72 cc = strlen(ad->ad_data_fork.adf_syml);
76 memcpy(buf, ad->ad_data_fork.adf_syml, cc);
78 cc = adf_pread(&ad->ad_data_fork, buf, buflen, off);
81 if (! AD_RSRC_OPEN(ad))
85 if (ad->ad_vers == AD_VERSION_EA) {
92 r_off = ad_getentryoff(ad, eid) + off;
95 if (( cc = adf_pread( &ad->ad_resource_fork, buf, buflen, r_off )) < 0 )
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/netatalk-3.0.5/bin/ad/
H A DMakefile.am1 # Makefile.am for bin/ad/
3 noinst_HEADERS = ad.h
6 bin_PROGRAMS = ad
9 ad.c \
18 ad_CFLAGS = -D_PATH_AD=\"$(bindir)/ad\"
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/netatalk-3.0.5/bin/ad/
H A DMakefile.am1 # Makefile.am for bin/ad/
3 noinst_HEADERS = ad.h
6 bin_PROGRAMS = ad
9 ad.c \
18 ad_CFLAGS = -D_PATH_AD=\"$(bindir)/ad\"
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/netatalk-3.0.5/bin/ad/
H A DMakefile.am1 # Makefile.am for bin/ad/
3 noinst_HEADERS = ad.h
6 bin_PROGRAMS = ad
9 ad.c \
18 ad_CFLAGS = -D_PATH_AD=\"$(bindir)/ad\"
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/netatalk-3.0.5/bin/
H A DMakefile.am6 SUBDIRS += ad
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/netatalk-3.0.5/bin/
H A DMakefile.am6 SUBDIRS += ad
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/netatalk-3.0.5/bin/
H A DMakefile.am6 SUBDIRS += ad
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/netatalk-3.0.5/man/man1/
H A DMakefile.am4 ad.1 \

Completed in 203 milliseconds

1234567891011>>