4.104.114.84.95
Last change
on this file since efec4b0 was
efec4b0,
checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/27/05 at 13:32:25
|
2005-01-27 Ralf Corsepius <ralf.corsepius@…>
- libcsupport/src/lstat.c, libcsupport/src/readdir_r.c:
Include config.h.
|
-
Property mode set to
100644
|
File size:
443 bytes
|
Line | |
---|
1 | /* |
---|
2 | * readdir_r - reentrant version of readdir() |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | #if HAVE_CONFIG_H |
---|
8 | #include "config.h" |
---|
9 | #endif |
---|
10 | |
---|
11 | #include <sys/types.h> |
---|
12 | #include <dirent.h> |
---|
13 | #include <errno.h> |
---|
14 | #include <stdio.h> |
---|
15 | |
---|
16 | /* |
---|
17 | * The RTEMS version of readdir is already thread-safe. |
---|
18 | */ |
---|
19 | |
---|
20 | int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result) |
---|
21 | { |
---|
22 | *result = readdir(dirp); |
---|
23 | if (*result) |
---|
24 | *entry = **result; |
---|
25 | return *result ? 0 : errno; |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.