~ubuntu-branches/ubuntu/trusty/bash/trusty-security

« back to all changes in this revision

Viewing changes to execute_cmd.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-03-03 22:52:05 UTC
  • mfrom: (1.3.5) (2.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20140303225205-87ltrt5kspeq0g1b
Tags: 4.3-1ubuntu1
* Merge with Debian; remaining changes:
  - skel.bashrc:
    - Run lesspipe.
    - Enable ls aliases.
    - Set options in ll alias to -alF.
    - Define an alert alias.
    - Enabled colored grep aliases.
  - etc.bash.bashrc:
    - Add sudo hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* execute_cmd.h - functions from execute_cmd.c. */
 
2
 
 
3
/* Copyright (C) 1993-2009 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
 
8
   it under the terms of the GNU General Public License as published by
 
9
   the Free Software Foundation, either version 3 of the License, or
 
10
   (at your option) any later version.
 
11
 
 
12
   Bash is distributed in the hope that it will be useful,
 
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
   GNU General Public License for more details.
 
16
 
 
17
   You should have received a copy of the GNU General Public License
 
18
   along with Bash.  If not, see <http://www.gnu.org/licenses/>.
 
19
*/
 
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((int));
 
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 void setup_async_signals __P((void));
 
34
extern void dispose_exec_redirects __P ((void));
 
35
 
 
36
extern int execute_shell_function __P((SHELL_VAR *, WORD_LIST *));
 
37
 
 
38
extern struct coproc *getcoprocbypid __P((pid_t));
 
39
extern struct coproc *getcoprocbyname __P((const char *));
 
40
 
 
41
extern void coproc_init __P((struct coproc *));
 
42
extern struct coproc *coproc_alloc __P((char *, pid_t));
 
43
extern void coproc_dispose __P((struct coproc *));
 
44
extern void coproc_flush __P((void));
 
45
extern void coproc_close __P((struct coproc *));
 
46
extern void coproc_closeall __P((void));
 
47
extern void coproc_reap __P((void));
 
48
 
 
49
extern void coproc_rclose __P((struct coproc *, int));
 
50
extern void coproc_wclose __P((struct coproc *, int));
 
51
extern void coproc_fdclose __P((struct coproc *, int));
 
52
 
 
53
extern void coproc_checkfd __P((struct coproc *, int));
 
54
extern void coproc_fdchk __P((int));
 
55
 
 
56
extern void coproc_pidchk __P((pid_t, int));
 
57
 
 
58
extern void coproc_fdsave __P((struct coproc *));
 
59
extern void coproc_fdrestore __P((struct coproc *));
 
60
 
 
61
extern void coproc_setvars __P((struct coproc *));
 
62
extern void coproc_unsetvars __P((struct coproc *));
 
63
 
 
64
#if defined (PROCESS_SUBSTITUTION)
 
65
extern void close_all_files __P((void));
 
66
#endif
 
67
 
 
68
#endif /* _EXECUTE_CMD_H_ */