PR/33124: Murray Armfield: readdir_r is missing a restrict qualifier.

http://www.opengroup.org/onlinepubs/000095399/basedefs/dirent.h.html
This commit is contained in:
christos 2006-03-26 18:22:40 +00:00
parent 3b6811d33b
commit fb11ba2dc5
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dirent.h,v 1.27 2006/01/24 19:33:35 christos Exp $ */
/* $NetBSD: dirent.h,v 1.28 2006/03/26 18:22:40 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -89,7 +89,7 @@ void rewinddir(DIR *);
#ifndef __LIBC12_SOURCE__
DIR *opendir(const char *) __RENAME(__opendir30);
struct dirent *readdir(DIR *) __RENAME(__readdir30);
int readdir_r(DIR *, struct dirent * __restrict,
int readdir_r(DIR * __restrict, struct dirent * __restrict,
struct dirent ** __restrict) __RENAME(__readdir_r30);
#endif
#if defined(_XOPEN_SOURCE) || defined(_NETBSD_SOURCE)

View File

@ -1,4 +1,4 @@
/* $NetBSD: dirent.h,v 1.4 2006/01/24 19:33:10 christos Exp $ */
/* $NetBSD: dirent.h,v 1.5 2006/03/26 18:22:40 christos Exp $ */
/*-
* Copyright (c) 1989, 1993
@ -43,7 +43,7 @@ DIR *__opendir30(const char *);
int readdir_r(DIR *, struct dirent12 * __restrict,
struct dirent12 ** __restrict);
int __readdir_r30(DIR *, struct dirent * __restrict,
int __readdir_r30(DIR * __restrict, struct dirent * __restrict,
struct dirent ** __restrict);
struct dirent12 *readdir(DIR *);