aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.h
diff options
context:
space:
mode:
authorGravatar stew <stew@vireo.org>2006-08-22 11:24:51 +1000
committerGravatar stew <stew@vireo.org>2006-08-22 11:24:51 +1000
commitdfe3dc142982cf8c7ca0b9041a91d04cc88a714a (patch)
treeb3e3ce70096c8915c0a492a8469ee9a1f0b05469 /proc.h
parent2ea00ce444d326d11ef64bff3c81636aff624855 (diff)
fish_pager_via_stdin
darcs-hash:20060822012451-2edb7-d8939fab708d8c605d2c7d0683c71f11db659bc9.gz
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/proc.h b/proc.h
index 7dbe02ad..626188f5 100644
--- a/proc.h
+++ b/proc.h
@@ -45,6 +45,11 @@ enum
The exec builtin
*/
INTERNAL_EXEC,
+ /**
+ A buffer
+ */
+ INTERNAL_BUFFER,
+
}
;
@@ -66,7 +71,7 @@ enum
be the result of an exec command. The role of this process_t is
determined by the type field, which can be one of EXTERNAL,
INTERNAL_BUILTIN, INTERNAL_FUNCTION, INTERNAL_BLOCK and
- INTERNAL_EXEC.
+ INTERNAL_EXEC, INTERNAL_BUFFER
The process_t contains information on how the process should be
started, such as command name and arguments, as well as runtime
@@ -79,13 +84,13 @@ enum
argument array and actual_cmd is the absolute path of the command
to execute.
- If the process is of type ITERNAL_BUILTIN, argv is the argument
+ If the process is of type INTERNAL_BUILTIN, argv is the argument
vector, and argv[0] is the name of the builtin command.
- If the process is of type ITERNAL_FUNCTION, argv is the argument
+ If the process is of type INTERNAL_FUNCTION, argv is the argument
vector, and argv[0] is the name of the shellscript function.
- If the process is of type ITERNAL_BLOCK, argv has exactly one
+ If the process is of type INTERNAL_BLOCK, argv has exactly one
element, which is the block of commands to execute.
*/
@@ -93,8 +98,8 @@ typedef struct process
{
/**
Type of process. Can be one of \c EXTERNAL, \c
- INTERNAL_BUILTIN, \c INTERNAL_FUNCTION, \c INTERNAL_BLOCK or
- INTERNAL_EXEC
+ INTERNAL_BUILTIN, \c INTERNAL_FUNCTION, \c INTERNAL_BLOCK,
+ INTERNAL_EXEC, or INTERNAL_BUFFER
*/
int type;
/** argv parameter for for execv, builtin_run, etc. */