• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/netatalk-2.2.0/etc/afpd/

Lines Matching refs:c1

127 static struct scrit c1, c2;          /* search criteria */
271 if (!c1.dbitmap)
275 if (!c1.fbitmap)
309 if ((c1.rbitmap & (1<<DIRPBIT_LNAME))) {
313 if ((c1.rbitmap & (1<<CATPBIT_PARTIAL))) {
314 if (strcasestr_w( (ucs2_t*) convbuf, (ucs2_t*) c1.lname) == NULL)
317 if (strcasecmp_w((ucs2_t*) convbuf, (ucs2_t*) c1.lname) != 0)
321 if ((c1.rbitmap & (1<<FILPBIT_PDINFO))) {
326 if (c1.rbitmap & (1<<CATPBIT_PARTIAL)) {
327 if (strcasestr_w((ucs2_t *) convbuf, (ucs2_t*)c1.utf8name) == NULL)
330 if (strcasecmp_w((ucs2_t *)convbuf, (ucs2_t*)c1.utf8name) != 0)
344 if ((c1.rbitmap & (1<<DIRPBIT_MDATE))) {
345 if (path->st.st_mtime < c1.mdate || path->st.st_mtime > c2.mdate)
350 if ((c1.rbitmap & (1<<DIRPBIT_CDATE))) {
356 if (c_date < c1.cdate || c_date > c2.cdate)
361 if ((c1.rbitmap & (1<<DIRPBIT_BDATE))) {
367 if (b_date < c1.bdate || b_date > c2.bdate)
372 if ((c1.rbitmap & (1<<DIRPBIT_ATTR)) && c2.attr != 0) {
375 if ((attr & c2.attr) != c1.attr)
382 if ((c1.rbitmap & (1<<DIRPBIT_FINFO)) && c2.finfo.f_type != 0) {
384 if (finfo->f_type != c1.finfo.f_type)
389 if ((c1.rbitmap & (1<<DIRPBIT_FINFO)) && c2.finfo.creator != 0) {
393 if (finfo->creator != c1.finfo.creator)
398 if ((c1.rbitmap & (1<<DIRPBIT_FINFO)) && c2.finfo.attrs != 0) {
403 if ((finfo->attrs & c2.finfo.attrs) != c1.finfo.attrs)
408 if ((c1.rbitmap & (1<<DIRPBIT_FINFO)) && c2.finfo.label != 0) {
412 if ((finfo->label & c2.finfo.label) != c1.finfo.label)
449 ret = getdirparams(vol, c1.dbitmap, path, path->d_dir, p , &tbuf );
453 ret = getfilparams ( vol, c1.fbitmap, path, path->d_dir, p, &tbuf);
484 * Uses globals c1, c2, the search criteria
691 * Uses globals c1, c2, the search criteria
864 memset(&c1, 0, sizeof(c1));
885 memcpy(&c1.fbitmap, ibuf, sizeof(c1.fbitmap));
886 c1.fbitmap = c2.fbitmap = ntohs(c1.fbitmap);
887 ibuf += sizeof(c1.fbitmap);
889 memcpy(&c1.dbitmap, ibuf, sizeof(c1.dbitmap));
890 c1.dbitmap = c2.dbitmap = ntohs(c1.dbitmap);
891 ibuf += sizeof(c1.dbitmap);
893 memcpy(&c1.rbitmap, ibuf, sizeof(c1.rbitmap));
894 c1.rbitmap = c2.rbitmap = ntohl(c1.rbitmap);
895 ibuf += sizeof(c1.rbitmap);
897 if (! (c1.fbitmap || c1.dbitmap)) {
907 c1.fbitmap &= (1<<FILPBIT_LNAME) | (1<<FILPBIT_PDID);
908 c1.dbitmap &= (1<<DIRPBIT_LNAME) | (1<<DIRPBIT_PDID);
922 if (c1.rbitmap & (1 << FILPBIT_ATTR)) {
923 memcpy(&c1.attr, spec1, sizeof(c1.attr));
924 spec1 += sizeof(c1.attr);
926 spec2 += sizeof(c1.attr);
930 if (c1.rbitmap & (1 << FILPBIT_PDID)) {
931 memcpy(&c1.pdid, spec1, sizeof(pdid));
932 spec1 += sizeof(c1.pdid);
938 if (c1.rbitmap & (1 << FILPBIT_CDATE)) {
939 memcpy(&c1.cdate, spec1, sizeof(c1.cdate));
940 spec1 += sizeof(c1.cdate);
941 c1.cdate = AD_DATE_TO_UNIX(c1.cdate);
943 spec2 += sizeof(c1.cdate);
944 ibuf += sizeof(c1.cdate);;
949 if (c1.rbitmap & (1 << FILPBIT_MDATE)) {
950 memcpy(&c1.mdate, spec1, sizeof(c1.mdate));
951 c1.mdate = AD_DATE_TO_UNIX(c1.mdate);
952 spec1 += sizeof(c1.mdate);
955 spec2 += sizeof(c1.mdate);
959 if (c1.rbitmap & (1 << FILPBIT_BDATE)) {
960 memcpy(&c1.bdate, spec1, sizeof(c1.bdate));
961 spec1 += sizeof(c1.bdate);
962 c1.bdate = AD_DATE_TO_UNIX(c1.bdate);
965 c1.bdate = AD_DATE_TO_UNIX(c2.bdate);
969 if (c1.rbitmap & (1 << FILPBIT_FINFO)) {
973 unpack_buffer(&c1.finfo, buf);
981 if ((c1.rbitmap & (1 << DIRPBIT_OFFCNT)) != 0) {
983 if (c1.fbitmap == 0) {
984 memcpy(&c1.offcnt, spec1, sizeof(c1.offcnt));
985 spec1 += sizeof(c1.offcnt);
986 c1.offcnt = ntohs(c1.offcnt);
991 else if (c1.dbitmap == 0) {
1000 if (c1.rbitmap & (1 << FILPBIT_LNAME)) {
1004 len = convert_string ( vol->v_maccharset, CH_UCS2, tmppath, -1, c1.lname, sizeof(c1.lname));
1015 if (c1.rbitmap & (1 << FILPBIT_PDINFO)) {
1029 memcpy (c1.utf8name, spec1+2, namelen);
1030 c1.utf8name[namelen] = 0;
1031 if ((uname = mtoupath(vol, c1.utf8name, 0, utf8_encoding())) == NULL)
1036 len = convert_charset(CH_UTF8_MAC, CH_UCS2, CH_UTF8, c1.utf8name, namelen, c1.utf8name, 512, &flags);
1043 if ((c1.rbitmap & (1 << FILPBIT_PDINFO))
1055 c1.fbitmap = htons(c1.fbitmap);
1056 memcpy(rbuf, &c1.fbitmap, sizeof(c1.fbitmap));
1057 rbuf += sizeof(c1.fbitmap);
1059 c1.dbitmap = htons(c1.dbitmap);
1060 memcpy(rbuf, &c1.dbitmap, sizeof(c1.dbitmap));
1061 rbuf += sizeof(c1.dbitmap);