1/* $NetBSD$ */ 2 3#ifndef _SPAWN_COMMAND_H_INCLUDED_ 4#define _SPAWN_COMMAND_H_INCLUDED_ 5 6/*++ 7/* NAME 8/* spawn_command 3h 9/* SUMMARY 10/* run external command 11/* SYNOPSIS 12/* #include <spawn_command.h> 13/* DESCRIPTION 14/* .nf 15 16 /* 17 * Request arguments. 18 */ 19#define SPAWN_CMD_END 0 /* terminator */ 20#define SPAWN_CMD_ARGV 1 /* command is array */ 21#define SPAWN_CMD_COMMAND 2 /* command is string */ 22#define SPAWN_CMD_STDIN 3 /* mail_copy() flags */ 23#define SPAWN_CMD_STDOUT 4 /* mail_copy() sender */ 24#define SPAWN_CMD_STDERR 5 /* mail_copy() recipient */ 25#define SPAWN_CMD_UID 6 /* privileges */ 26#define SPAWN_CMD_GID 7 /* privileges */ 27#define SPAWN_CMD_TIME_LIMIT 8 /* time limit */ 28#define SPAWN_CMD_ENV 9 /* extra environment */ 29#define SPAWN_CMD_SHELL 10 /* alternative shell */ 30#define SPAWN_CMD_EXPORT 11 /* exportable parameters */ 31 32extern WAIT_STATUS_T spawn_command(int,...); 33 34/* LICENSE 35/* .ad 36/* .fi 37/* The Secure Mailer license must be distributed with this software. 38/* AUTHOR(S) 39/* Wietse Venema 40/* IBM T.J. Watson Research 41/* P.O. Box 704 42/* Yorktown Heights, NY 10598, USA 43/*--*/ 44 45#endif 46