/*************************************************************************** * * * LIBDSK: General floppy and diskimage access library * * Copyright (C) 2001,2005 John Elliott <jce@seasip.demon.co.uk> * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Library General Public * * License as published by the Free Software Foundation; either * * version 2 of the License, or (at your option) any later version. * * * * This library 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 * * Library General Public License for more details. * * * * You should have received a copy of the GNU Library General Public * * License along with this library; if not, write to the Free * * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * * MA 02111-1307, USA * * * ***************************************************************************/ #ifdef HAVE_FORK #ifdef HAVE_FCNTL_H #include <fcntl.h> #endif typedef struct fork_remote_data { REMOTE_DATA super; int infd; int outfd; pid_t pidchild; char *filename; } FORK_REMOTE_DATA; extern REMOTE_CLASS rpc_fork; dsk_err_t fork_open(DSK_PDRIVER pDriver, const char *name, char *nameout); dsk_err_t fork_close(DSK_PDRIVER pDriver); dsk_err_t fork_call(DSK_PDRIVER pDriver, unsigned char *input, int inp_len, unsigned char *output, int *out_len); #endif /* def HAVE_FORK */