diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-06-26 18:35:14 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-06-26 18:35:14 +0000 |
commit | 8266dbf611a37e02c83c4da428f21a7d8c5bf801 (patch) | |
tree | ceefafa5cbc273538b74376d0e081cd83be48b84 /include/dirent.h | |
parent | 4f22ff20604dd441c644e14195a64eade733296f (diff) |
Mark various standard library functions with the __bounded__ attribute.
You must have an up-to-date gcc for this!
deraadt@ ok
Diffstat (limited to 'include/dirent.h')
-rw-r--r-- | include/dirent.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/dirent.h b/include/dirent.h index d3fcec67250..8cdf02dcdec 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dirent.h,v 1.10 2003/06/02 19:34:12 millert Exp $ */ +/* $OpenBSD: dirent.h,v 1.11 2003/06/26 18:35:13 avsm Exp $ */ /* $NetBSD: dirent.h,v 1.9 1995/03/26 20:13:37 jtc Exp $ */ /*- @@ -103,7 +103,8 @@ void seekdir(DIR *, long); int scandir(const char *, struct dirent ***, int (*)(struct dirent *), int (*)(const void *, const void *)); int alphasort(const void *, const void *); -int getdirentries(int, char *, int, long *); +int getdirentries(int, char *, int, long *) + __attribute__ ((__bounded__(__string__,2,3))); #endif /* not POSIX */ int readdir_r(DIR *, struct dirent *, struct dirent **); __END_DECLS |