From: Keith Bostic Date: Fri, 8 Mar 1991 12:27:58 +0000 (-0800) Subject: date and time created 91/03/07 20:27:58 by bostic X-Git-Tag: BSD-4_3_Net_2-Snapshot-Development~735 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/deaa0514ab87138affe19dc6e4fccab9ab67bee5 date and time created 91/03/07 20:27:58 by bostic SCCS-vsn: bin/sh/redir.h 5.1 --- diff --git a/usr/src/bin/sh/redir.h b/usr/src/bin/sh/redir.h new file mode 100644 index 0000000000..313b22b444 --- /dev/null +++ b/usr/src/bin/sh/redir.h @@ -0,0 +1,28 @@ +/*- + * Copyright (c) 1991 The Regents of the University of California. + * All rights reserved. + * + * This code is derived from software contributed to Berkeley by + * Kenneth Almquist. + * + * %sccs.include.redist.c% + * + * @(#)redir.h 5.1 (Berkeley) %G% + */ + +/* flags passed to redirect */ +#define REDIR_PUSH 01 /* save previous values of file descriptors */ +#define REDIR_BACKQ 02 /* save the command output in memory */ + +#ifdef __STDC__ +union node; +void redirect(union node *, int); +void popredir(void); +void clearredir(void); +int copyfd(int, int); +#else +void redirect(); +void popredir(); +void clearredir(); +int copyfd(); +#endif