From 5f524c1ebcc5e0dec0de8940d34f9adb3c7887a1 Mon Sep 17 00:00:00 2001 From: Harsh Prateek Bora Date: Wed, 18 May 2011 17:23:00 +0530 Subject: use readdir_r instead of readdir for reentrancy Signed-off-by: Harsh Prateek Bora Signed-off-by: Aneesh Kumar K.V --- fsdev/file-op-9p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsdev') diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h index af9daf797f..1eda342f69 100644 --- a/fsdev/file-op-9p.h +++ b/fsdev/file-op-9p.h @@ -78,7 +78,7 @@ typedef struct FileOperations int (*open2)(FsContext *, const char *, int, FsCred *); void (*rewinddir)(FsContext *, DIR *); off_t (*telldir)(FsContext *, DIR *); - struct dirent *(*readdir)(FsContext *, DIR *); + int (*readdir_r)(FsContext *, DIR *, struct dirent *, struct dirent **); void (*seekdir)(FsContext *, DIR *, off_t); ssize_t (*preadv)(FsContext *, int, const struct iovec *, int, off_t); ssize_t (*pwritev)(FsContext *, int, const struct iovec *, int, off_t); -- cgit v1.2.3