svn commit: r229824 - in stable/8: include lib/libc/gen
Eitan Adler
eadler at FreeBSD.org
Sun Jan 8 21:01:22 UTC 2012
Author: eadler (ports committer)
Date: Sun Jan 8 21:01:21 2012
New Revision: 229824
URL: http://svn.freebsd.org/changeset/base/229824
Log:
MFC r228754:
- Add restrict keyword to glob(3)
PR: kern/161958
Approved by: jilles
Modified:
stable/8/include/glob.h
stable/8/lib/libc/gen/glob.c
Directory Properties:
stable/8/include/ (props changed)
stable/8/lib/libc/ (props changed)
Modified: stable/8/include/glob.h
==============================================================================
--- stable/8/include/glob.h Sun Jan 8 21:00:37 2012 (r229823)
+++ stable/8/include/glob.h Sun Jan 8 21:01:21 2012 (r229824)
@@ -102,7 +102,8 @@ typedef struct {
#endif /* __BSD_VISIBLE */
__BEGIN_DECLS
-int glob(const char *, int, int (*)(const char *, int), glob_t *);
+int glob(const char * __restrict, int,
+ int (*)(const char *, int), glob_t * __restrict);
void globfree(glob_t *);
__END_DECLS
Modified: stable/8/lib/libc/gen/glob.c
==============================================================================
--- stable/8/lib/libc/gen/glob.c Sun Jan 8 21:00:37 2012 (r229823)
+++ stable/8/lib/libc/gen/glob.c Sun Jan 8 21:01:21 2012 (r229824)
@@ -163,7 +163,8 @@ static void qprintf(const char *, Char
#endif
int
-glob(const char *pattern, int flags, int (*errfunc)(const char *, int), glob_t *pglob)
+glob(const char * __restrict pattern, int flags,
+ int (*errfunc)(const char *, int), glob_t * __restrict pglob)
{
const char *patnext;
size_t limit;
More information about the svn-src-all
mailing list