1 /******************************************************************************
2 * Copyright (c) 2000-2016 Ericsson Telecom AB
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
12 ******************************************************************************/
13 module PIPEasp_Templates {
15 import from PIPEasp_Types all;
17 template ASP_PKill t_PKill(template integer signo) := {
21 template ASP_PError t_PError(template charstring msg) := {
25 template ASP_PLineMode t_PLineMode(template boolean p_lineMode) := {
26 lineMode := p_lineMode
29 template ASP_PResult t_PResult(
30 template charstring p_stdout,
31 template charstring p_stderr,
32 template integer p_code) := {
38 template ASP_PResultBinary t_PResultBinary(
39 template octetstring p_stdout,
40 template octetstring p_stderr,
41 template integer p_code) := {
47 template ASP_PStdin t_PStdin(
48 template charstring p_stdin) := {
52 template ASP_PStdinBinary t_PStdinBinary(
53 template octetstring p_stdinBinary) := {
54 stdin := p_stdinBinary
57 template ASP_PStdout t_PStdout(
58 template charstring p_stdout) := {
62 template ASP_PStderr t_PStderr(
63 template charstring p_stderr) := {
67 template ASP_PStdoutBinary t_PStdoutBinary(
68 template octetstring p_stdout) := {
72 template ASP_PStderrBinary t_PStderrBinary(
73 template octetstring p_stderr) := {
77 template ASP_PExecuteBackground t_PExecuteBackground(
78 template charstring p_command) := {
82 template ASP_PExit t_PExit(template integer p_code) := {
86 template ASP_PExecute t_PExecute(
87 template charstring p_command, template charstring p_stdin) := {
92 template ASP_PExecuteBinary t_PExecuteBinary(
93 template charstring p_command, template octetstring p_stdin) := {