Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git] / execute_cmd.h
1 /* execute_cmd.h - functions from execute_cmd.c. */
2
3 /* Copyright (C) 1993 Free Software Foundation, Inc.
4
5    This file is part of GNU Bash, the Bourne Again SHell.
6
7    Bash is free software; you can redistribute it and/or modify it under
8    the terms of the GNU General Public License as published by the Free
9    Software Foundation; either version 2, or (at your option) any later
10    version.
11
12    Bash is distributed in the hope that it will be useful, but WITHOUT ANY
13    WARRANTY; without even the implied warranty of MERCHANTABILITY or
14    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15    for more details.
16
17    You should have received a copy of the GNU General Public License along
18    with Bash; see the file COPYING.  If not, write to the Free Software
19    Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
20
21 #if !defined (_EXECUTE_CMD_H_)
22 #define _EXECUTE_CMD_H_
23
24 #include "stdc.h"
25
26 extern struct fd_bitmap *new_fd_bitmap __P((long));
27 extern void dispose_fd_bitmap __P((struct fd_bitmap *));
28 extern void close_fd_bitmap __P((struct fd_bitmap *));
29 extern int executing_line_number __P((void));
30 extern int execute_command __P((COMMAND *));
31 extern int execute_command_internal __P((COMMAND *, int, int, int, struct fd_bitmap *));
32 extern int shell_execve __P((char *, char **, char **));
33 extern char *redirection_expand __P((WORD_DESC *));
34 extern int file_status __P((char *));
35 extern int executable_file __P((char *));
36 extern int is_directory __P((char *));
37 extern char *search_for_command __P((char *));
38 extern char *find_user_command __P((char *));
39 extern char *find_path_file __P((char *));
40 extern char *user_command_matches __P((char *, int, int));
41 extern void setup_async_signals __P((void));
42
43 #if defined (PROCESS_SUBSTITUTION)
44 extern void close_all_files __P((void));
45 #endif
46
47 #endif /* _EXECUTE_CMD_H_ */