• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/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 )) ) {
249 static char *to_stringz(char *ibuf, uint16_t len)
257 /* we must copy the name as its not 0-terminated and I DONT WANT TO WRITE to ibuf */
258 strlcpy(attrmname, ibuf, len + 1);
262 int afp_getextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf, size_t *rbuflen)
274 ibuf += 2;
276 memcpy( &vid, ibuf, sizeof(vid));
277 ibuf += sizeof(vid);
283 memcpy( &did, ibuf, sizeof(did));
284 ibuf += sizeof(did);
290 memcpy( &bitmap, ibuf, sizeof(bitmap));
292 ibuf += sizeof(bitmap);
298 ibuf += 16;
301 memcpy(&maxreply, ibuf, sizeof(maxreply));
303 ibuf += sizeof(maxreply);
306 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
311 if ((unsigned long)ibuf & 1)
312 ibuf++;
315 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
317 ibuf += sizeof(attrnamelen);
319 LOG(log_debug, logtype_afpd, "afp_getextattr(%s): EA: %s", s_path->u_name, to_stringz(ibuf, attrnamelen));
322 if ( 0 >= convert_string(CH_UTF8_MAC, obj->options.unixcharset, ibuf, attrnamelen, attruname, 256) )
344 int afp_setextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
356 ibuf += 2;
358 memcpy( &vid, ibuf, sizeof(vid));
359 ibuf += sizeof(vid);
365 memcpy( &did, ibuf, sizeof(did));
366 ibuf += sizeof(did);
372 memcpy( &bitmap, ibuf, sizeof(bitmap));
374 ibuf += sizeof(bitmap);
385 ibuf += 8;
388 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
393 if ((unsigned long)ibuf & 1)
394 ibuf++;
397 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
399 ibuf += sizeof(attrnamelen);
403 attrmname = ibuf;
408 ibuf += attrnamelen;
410 memcpy(&attrsize, ibuf, sizeof(attrsize));
412 ibuf += sizeof(attrsize);
419 ret = vol->vfs->vfs_ea_set(vol, s_path->u_name, attruname, ibuf, attrsize, oflag);
424 int afp_remextattr(AFPObj *obj _U_, char *ibuf, size_t ibuflen _U_, char *rbuf _U_, size_t *rbuflen)
435 ibuf += 2;
437 memcpy( &vid, ibuf, sizeof(vid));
438 ibuf += sizeof(vid);
444 memcpy( &did, ibuf, sizeof(did));
445 ibuf += sizeof(did);
451 memcpy( &bitmap, ibuf, sizeof(bitmap));
453 ibuf += sizeof(bitmap);
459 if (NULL == ( s_path = cname( vol, dir, &ibuf )) ) {
464 if ((unsigned long)ibuf & 1)
465 ibuf++;
468 memcpy(&attrnamelen, ibuf, sizeof(attrnamelen));
470 ibuf += sizeof(attrnamelen);
475 if ( 0 >= (convert_string(CH_UTF8_MAC, obj->options.unixcharset,ibuf, attrnamelen, attruname, 256)) )
478 LOG(log_debug, logtype_afpd, "afp_remextattr(%s): EA: %s", s_path->u_name, to_stringz(ibuf, attrnamelen));