/* SPDX-License-Identifier: GPL-2.0-only */ /* * This file is part of mars_nwe. * * Copyright (C) 1993-2000 Martin Stover, Marburg, Germany * Copyright (C) 2026 Mario Fetka * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 only. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ /* extpipe.h 31-Jul-98 */ #ifndef _EXTPIPE_H_ #define _EXTPIPE_H_ /* enhanced pipe handling */ typedef struct { int fds[3]; /* filedescriptor to 0,1,2 of new process */ int command_pid; /* pid of piped command */ int flags; /* special flags */ } FILE_PIPE; extern int ext_pclose(FILE_PIPE *fp); extern FILE_PIPE *ext_popen(char *command, int uid, int gid, int flags); #endif