Opened 20 years ago
Closed 20 years ago
#32 closed defect (fixed)
libc: readdir_r returns -1 instead of errno
| Reported by: | bird | Owned by: | bird |
|---|---|---|---|
| Priority: | normal | Milestone: | libc-0.6.1 |
| Component: | libc-frontend | Version: | 0.6 |
| Severity: | normal | Keywords: | libc readdir_r |
| Cc: |
Description
Title says it all.
Change History (2)
comment:1 by , 20 years ago
comment:2 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
There was already a todo comment on the problem. I've just changed it to return 0 instead of -1 when no more files are available. The problem is gone and my testcase works.
Note:
See TracTickets
for help on using tickets.

This typically happens when we're hitting a no-more-file condition. Such a condition should be indicated by setting *ppResult to NULL not by error.