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

Lines Matching defs:ibuf

74 int afp_listextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)
91 ibuf += 2;
94 memcpy( &bitmap, ibuf +6, sizeof(bitmap));
97 memcpy( &maxreply, ibuf + 14, sizeof (maxreply));
108 memcpy( &vid, ibuf, sizeof(vid));
109 ibuf += sizeof(vid);
115 memcpy( &did, ibuf, sizeof(did));
116 ibuf += sizeof(did);
125 ibuf += 12;
128 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
237 static char *to_stringz(char *ibuf, uint16_t len)
245 /* we must copy the name as its not 0-terminated and I DONT WANT TO WRITE to ibuf */
246 strlcpy(attrmname, ibuf, len + 1);
250 int afp_getextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)
262 ibuf += 2;
264 memcpy( &vid, ibuf, sizeof(vid));
265 ibuf += sizeof(vid);
271 memcpy( &did, ibuf, sizeof(did));
272 ibuf += sizeof(did);
278 memcpy( &bitmap, ibuf, sizeof(bitmap));
280 ibuf += sizeof(bitmap);
286 ibuf += 16;
289 memcpy(&maxreply, ibuf, sizeof(maxreply));
291 ibuf += sizeof(maxreply);
294 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
299 if ((unsigned long)ibuf & 1)
300 ibuf++;
303 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
305 ibuf += sizeof(attrnamelen);
307 LOG(log_debug, logtype_afpd, "afp_getextattr(%s): EA: %s", s_path->u_name, to_stringz(ibuf, attrnamelen));
310 if ( 0 >= convert_string(CH_UTF8_MAC, obj->options.unixcharset, ibuf, attrnamelen, attruname, 256) )
332 int afp_setextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
344 ibuf += 2;
346 memcpy( &vid, ibuf, sizeof(vid));
347 ibuf += sizeof(vid);
353 memcpy( &did, ibuf, sizeof(did));
354 ibuf += sizeof(did);
360 memcpy( &bitmap, ibuf, sizeof(bitmap));
362 ibuf += sizeof(bitmap);
373 ibuf += 8;
376 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
381 if ((unsigned long)ibuf & 1)
382 ibuf++;
385 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
387 ibuf += sizeof(attrnamelen);
391 attrmname = ibuf;
396 ibuf += attrnamelen;
398 memcpy(&attrsize, ibuf, sizeof(attrsize));
400 ibuf += sizeof(attrsize);
407 ret = vol->vfs->vfs_ea_set(vol, s_path->u_name, attruname, ibuf, attrsize, oflag);
412 int afp_remextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
423 ibuf += 2;
425 memcpy( &vid, ibuf, sizeof(vid));
426 ibuf += sizeof(vid);
432 memcpy( &did, ibuf, sizeof(did));
433 ibuf += sizeof(did);
439 memcpy( &bitmap, ibuf, sizeof(bitmap));
441 ibuf += sizeof(bitmap);
447 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
452 if ((unsigned long)ibuf & 1)
453 ibuf++;
456 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
458 ibuf += sizeof(attrnamelen);
463 if ( 0 >= (convert_string(CH_UTF8_MAC, obj->options.unixcharset,ibuf, attrnamelen, attruname, 256)) )
466 LOG(log_debug, logtype_afpd, "afp_remextattr(%s): EA: %s", s_path->u_name, to_stringz(ibuf, attrnamelen));