From 6a11e51e2c560d592d60298b24c48e82f8cb9653 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 4 Apr 1997 15:29:23 +0000 Subject: [PATCH] Add declaration for glob_pattern_p. --- posix/glob.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/posix/glob.h b/posix/glob.h index 778bb602a48..49a7b7cfe6b 100644 --- a/posix/glob.h +++ b/posix/glob.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. @@ -104,6 +104,16 @@ extern int glob __P ((const char *__pattern, int __flags, extern void globfree __P ((glob_t *__pglob)); +#ifdef _GNU_SOURCE +/* Return nonzero if PATTERN contains any metacharacters. + Metacharacters can be quoted with backslashes if QUOTE is nonzero. + + This function is not part of the interface specified by POSIX.2 + but several programs want to use it. */ +extern int __glob_pattern_p __P ((__const char *__pattern, int __quote)); +extern int glob_pattern_p __P ((__const char *__pattern, int __quote)); +#endif + #ifdef __cplusplus } #endif -- 2.47.2