(root)/
man-db-2.12.0/
lib/
pathsearch.h
       1  /*
       2   * pathsearch.h: interface to $PATH-searching functions
       3   *
       4   * Copyright (C) 2004 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  #ifndef PATHSEARCH_H
      24  #define PATHSEARCH_H
      25  
      26  #include <stdbool.h>
      27  
      28  /* Return true if NAME is found as an executable regular file on the $PATH,
      29   * otherwise false.
      30   */
      31  bool pathsearch_executable (const char *name);
      32  
      33  /* Return true if DIR matches an entry on the $PATH, otherwise false. */
      34  bool directory_on_path (const char *dir);
      35  
      36  #endif /* PATHSEARCH_H */