Hi list,

from what i've seen from other translators the documentation of 
netfs_get_dirents() seems to be wrong.

In libnetfs/netfs.h:287

/* The user must define this function.  Fill the array *DATA of size
   BUFSIZE with up to NENTRIES dirents from DIR (which is locked)
   starting with entry ENTRY for user CRED.  The number of entries in
   the array is stored in *AMT and the number of bytes in *DATACNT.
   If the supplied buffer is not large enough to hold the data, it
   should be grown.  */
error_t netfs_get_dirents (struct iouser *cred, struct node *dir,
                           int entry, int nentries, char **data,
                           mach_msg_type_number_t *datacnt,
                           vm_size_t bufsize, int *amt);

IMO the size of *DATA is initially stored in *DATACNT. And BUFSIZE determins 
the maximum number of bytes (or no max if BUFSIZE==0) the function should 
return. Please have a look at this.

Best regards,
   Steven Keuchel

Attachment: pgpS7JNXhQHCB.pgp
Description: PGP signature

_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to