Sprinkle some __restrict into <glob.h>.

This commit is contained in:
kleink 2001-10-27 15:35:19 +00:00
parent 546b6e4434
commit e281efeeaa
2 changed files with 8 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: glob.h,v 1.13 2001/03/16 21:02:42 christos Exp $ */
/* $NetBSD: glob.h,v 1.14 2001/10/27 15:35:19 kleink Exp $ */
/*
* Copyright (c) 1989, 1993
@ -99,10 +99,12 @@ typedef struct {
__BEGIN_DECLS
#ifdef __LIBC12_SOURCE__
int glob __P((const char *, int, int (*)(const char *, int), glob_t *));
int glob __P((const char * __restrict, int,
int (* __restrict)(const char *, int), glob_t * __restrict));
void globfree __P((glob_t *));
#else
int glob __P((const char *, int, int (*)(const char *, int), glob_t *))
int glob __P((const char * __restrict, int,
int (* __restrict)(const char *, int), glob_t * __restrict))
__RENAME(__glob13);
void globfree __P((glob_t *)) __RENAME(__globfree13);
#endif

View File

@ -1,4 +1,4 @@
.\" $NetBSD: glob.3,v 1.19 2001/09/16 02:57:04 wiz Exp $
.\" $NetBSD: glob.3,v 1.20 2001/10/27 15:35:19 kleink Exp $
.\"
.\" Copyright (c) 1989, 1991, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
@ -35,7 +35,7 @@
.\"
.\" @(#)glob.3 8.3 (Berkeley) 4/16/94
.\"
.Dd March 31, 1998
.Dd October 27, 2001
.Dt GLOB 3
.Os
.Sh NAME
@ -47,7 +47,7 @@
.Sh SYNOPSIS
.Fd #include <glob.h>
.Ft int
.Fn glob "const char *pattern" "int flags" "const int (*errfunc)(const char *, int)" "glob_t *pglob"
.Fn glob "const char * restrict pattern" "int flags" "const int (* restrict errfunc)(const char *, int)" "glob_t * restrict pglob"
.Ft void
.Fn globfree "glob_t *pglob"
.Sh DESCRIPTION