11bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata/* 21bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * This file is part of ltrace. 31bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * Copyright (C) 2007, 2008, 2012 Petr Machata, Red Hat Inc. 41bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * 51bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * This program is free software; you can redistribute it and/or 61bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * modify it under the terms of the GNU General Public License as 71bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * published by the Free Software Foundation; either version 2 of the 81bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * License, or (at your option) any later version. 91bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * 101bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * This program is distributed in the hope that it will be useful, but 111bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * WITHOUT ANY WARRANTY; without even the implied warranty of 121bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 131bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * General Public License for more details. 141bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * 151bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * You should have received a copy of the GNU General Public License 161bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * along with this program; if not, write to the Free Software 171bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 181bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * 02110-1301 USA 191bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata */ 201bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata 211bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata#ifndef _GLOB_H_ 221bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata#define _GLOB_H_ 231bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata 241bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata#include <sys/types.h> 251bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata#include <regex.h> 261bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata 271bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata/* This is akin to regcomp(3), except it compiles a glob expression 281bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * passed in GLOB. See glob(7) for more information about the syntax 291bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata * supported by globcomp. */ 301bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machataint globcomp(regex_t *preg, const char *glob, int cflags); 311bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata 321bbfbc6c6a7b7706bf4e8bf152d7ffc28453c3bdPetr Machata#endif /* _GLOB_H_ */ 33