(root)/
man-db-2.12.0/
src/
globbing.h
       1  /*
       2   * globbing.h: Headers for glob routines
       3   *
       4   * Copyright (C) 2001, 2002, 2007, 2008 Colin Watson.
       5   *
       6   * This file is part of man-db.
       7   *
       8   * man-db is free software; you can redistribute it and/or modify it
       9   * under the terms of the GNU General Public License as published by
      10   * the Free Software Foundation; either version 2 of the License, or
      11   * (at your option) any later version.
      12   *
      13   * man-db is distributed in the hope that it will be useful, but
      14   * WITHOUT ANY WARRANTY; without even the implied warranty of
      15   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      16   * GNU General Public License for more details.
      17   *
      18   * You should have received a copy of the GNU General Public License
      19   * along with man-db; if not, write to the Free Software Foundation,
      20   * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
      21   */
      22  
      23  #include <stdbool.h>
      24  
      25  #include "gl_list.h"
      26  
      27  enum look_for_file_opts {
      28  	LFF_MATCHCASE = 1,
      29  	LFF_REGEX = 2,
      30  	LFF_WILDCARD = 4
      31  };
      32  
      33  /* globbing.c */
      34  extern gl_list_t look_for_file (const char *hier, const char *sec,
      35  				const char *unesc_name, bool cat, int opts);
      36  
      37  /* Expand path with wildcards into list of all existing directories. */
      38  extern gl_list_t expand_path (const char *path);