Deleted Added
full compact
redir.c (216851) redir.c (218306)
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 22 unchanged lines hidden (view full) ---

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)redir.c 8.2 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1991, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Kenneth Almquist.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 22 unchanged lines hidden (view full) ---

31 */
32
33#ifndef lint
34#if 0
35static char sccsid[] = "@(#)redir.c 8.2 (Berkeley) 5/4/95";
36#endif
37#endif /* not lint */
38#include <sys/cdefs.h>
39__FBSDID("$FreeBSD: head/bin/sh/redir.c 216851 2010-12-31 18:20:17Z jilles $");
39__FBSDID("$FreeBSD: head/bin/sh/redir.c 218306 2011-02-04 22:47:55Z jilles $");
40
41#include <sys/types.h>
42#include <sys/stat.h>
43#include <signal.h>
44#include <string.h>
45#include <fcntl.h>
46#include <errno.h>
47#include <unistd.h>

--- 271 unchanged lines hidden (view full) ---

319
320INCLUDE "redir.h"
321
322RESET {
323 while (redirlist)
324 popredir();
325}
326
40
41#include <sys/types.h>
42#include <sys/stat.h>
43#include <signal.h>
44#include <string.h>
45#include <fcntl.h>
46#include <errno.h>
47#include <unistd.h>

--- 271 unchanged lines hidden (view full) ---

319
320INCLUDE "redir.h"
321
322RESET {
323 while (redirlist)
324 popredir();
325}
326
327SHELLPROC {
328 clearredir();
329}
330
331#endif
332
333/* Return true if fd 0 has already been redirected at least once. */
334int
335fd0_redirected_p(void)
336{
337 return fd0_redirected != 0;
338}

--- 20 unchanged lines hidden ---
327#endif
328
329/* Return true if fd 0 has already been redirected at least once. */
330int
331fd0_redirected_p(void)
332{
333 return fd0_redirected != 0;
334}

--- 20 unchanged lines hidden ---