diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-25 20:57:49 (GMT) |
commit | d1c4bf158203c4e8ec29fdeb83fd311e36320885 (patch) | |
tree | 15874534e282f67505ce4af5ba805a1ff70ec43e /funtools/util/winprocess.h | |
parent | e19a18e035dc4d0e8e215f9b452bb9ef6f58b9d7 (diff) | |
parent | 339420dd5dd874c41f6bab5808291fb4036dd022 (diff) | |
download | blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.zip blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.gz blt-d1c4bf158203c4e8ec29fdeb83fd311e36320885.tar.bz2 |
Merge commit '339420dd5dd874c41f6bab5808291fb4036dd022' as 'funtools'
Diffstat (limited to 'funtools/util/winprocess.h')
-rw-r--r-- | funtools/util/winprocess.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/funtools/util/winprocess.h b/funtools/util/winprocess.h new file mode 100644 index 0000000..c60a7de --- /dev/null +++ b/funtools/util/winprocess.h @@ -0,0 +1,44 @@ +/* + * Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory + */ + +/* + * + * winprocess.h - include file for the process handling + * + * + */ + +#ifndef __winprocess_h +#define __winprocess_h + +#if HAVE_CONFIG_H +#include "conf.h" +#endif +#include <stdio.h> +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif +#ifdef HAVE_MALLOC_H +#include <malloc.h> +#endif +#ifdef HAVE_STDLIB_H +#include <stdlib.h> +#endif +#include "prsetup.h" + +#if defined(HAVE_CYGWIN) || defined(WIN32) + +_PRbeg + +int WinProcessOpen _PRx((char *cmd, void **ichan, void **ochan, void **pid)); +void *WinProcessRead _PRx((void *fd, void *buf, int maxbytes, int *got)); +int WinProcessWrite _PRx((void *fd, void *buf, int nbytes)); +int WinProcessClose _PRx((void *pid, int *exit_status)); +int WinProcessGetChan _PRx((void *pid, void **ichan, void **ochan)); + +_PRend + +#endif + +#endif /* __winprocess.h */ |