bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wrong documentation of netfs_get_dirents()


From: Steven Keuchel
Subject: wrong documentation of netfs_get_dirents()
Date: Mon, 23 Aug 2004 11:00:12 +0000
User-agent: KMail/1.7

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: pgpYDApUrdqH0.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]