Changeset 2424 for trunk/src/emx/include


Ignore:
Timestamp:
Oct 26, 2005, 11:32:29 PM (20 years ago)
Author:
bird
Message:

Implemented getdirents().

Location:
trunk/src/emx/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    r2423 r2424  
    447447 */
    448448int __libc_Back_ioFileSizeSet(int fh, __off_t cbFile, int fZero);
     449
     450/**
     451 * Reads directory entries from an open directory.
     452 *
     453 * @returns Number of bytes read.
     454 * @returns Negative error code (errno.h) on failure.
     455 *
     456 * @param   fh      The file handle of an open directory.
     457 * @param   pvBuf   Where to store the directory entries.
     458 *                  The returned data is a series of dirent structs with
     459 *                  variable name size. d_reclen must be used the offset
     460 *                  to the next struct (from the start of the current one).
     461 * @param   cbBuf   Size of the buffer.
     462 * @param   poff    Where to store the lseek offset of the first entry.
     463 *
     464 */
     465ssize_t __libc_Back_ioDirGetEntries(int fh, void *pvBuf, size_t cbBuf, __off_t *poff);
    449466
    450467/**
  • trunk/src/emx/include/dirent.h

    r2423 r2424  
    128128/** @todo DIR   *__opendir2(const char *, int); */
    129129/** @todo int    alphasort(const void *, const void *); */
    130 /** @todo int    getdents(int, char *, int); */
    131 /** @todo int    getdirentries(int, char *, int, long *); */
     130int      getdents(int, char *, int);
     131int      getdirentries(int, char *, int, long *);
    132132#endif
    133133DIR     *opendir(const char *);
Note: See TracChangeset for help on using the changeset viewer.