aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/redir.c
Commit message (Expand)AuthorAgeFilesLines
* bin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-3/+0
* bin: Remove ancient SCCS tags.Warner Losh2023-11-271-3/+0
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
* sh: Don't allocate a redirtab if there are no redirections.Jilles Tjoelker2016-01-301-7/+22
* sh: Eliminate some gotos.Jilles Tjoelker2014-10-051-15/+14
* sh: Fix possible memory leaks and double frees with unexpected SIGINT.Jilles Tjoelker2014-03-261-10/+11
* sh: Add some consts.Jilles Tjoelker2014-03-141-2/+2
* sh: Make <&0 disable the </dev/null implicit in a background command.Jilles Tjoelker2013-11-241-4/+5
* sh: Remove unnecessary reset functions.Jilles Tjoelker2013-08-161-12/+0
* sh: Remove #define MKINIT.Jilles Tjoelker2013-07-251-2/+1
* sh: Remove mkinit.Jilles Tjoelker2013-07-251-6/+3
* sh: Use O_CLOEXEC and F_DUPFD_CLOEXEC instead of separate fcntl() call.Jilles Tjoelker2013-05-051-3/+2
* sh: Write as much into the heredoc pipe as possible, to avoid forking.Jilles Tjoelker2013-04-021-5/+13
* sh: Expand here documents in the current process.Jilles Tjoelker2013-02-031-10/+12
* sh: Remove special code for shell scripts without magic number.Jilles Tjoelker2011-02-041-4/+0
* sh: Check if dup2 for redirection from/to a file succeeds.Jilles Tjoelker2010-12-311-1/+6
* sh: Check whether dup2 was successful for >&FD and <&FD.Jilles Tjoelker2010-10-241-2/+5
* In the spirit of r90111, depend on c89 and remove the "STATIC" macroDavid E. O'Brien2010-10-131-4/+4
* Consistently use "STATIC" for all functions in order to be able to setDavid E. O'Brien2010-10-131-1/+1
* Fix some cases where file descriptors from redirections leak to programs.Jilles Tjoelker2009-11-291-15/+7
* Fix various things about SIGINT handling:Jilles Tjoelker2009-11-221-2/+5
* Fix race condition in noclobber option.Jilles Tjoelker2009-06-201-7/+19
* Remove clause 3 from the UCB licenses.Mark Murray2004-04-061-4/+0
* Replace home-grown dup2() implementation with actual dup2() calls. ThisDag-Erling Smørgrav2004-01-211-32/+8
* Changes following CScout analysis:Diomidis Spinellis2003-07-051-1/+1
* Remove dead code which supported systems without O_APPEND, O_CREAT or SIGTSTP.Tim J. Robbins2002-09-291-30/+0
* Convert the remaining callers of errmsg() to use strerror(), and removeTim J. Robbins2002-09-291-11/+11
* Don't assume file descriptors fit in a short, use an int instead.Tim J. Robbins2002-07-181-1/+1
* Close file descriptors when [n]>&- and [n]<&- redirections are used.Tim J. Robbins2002-07-091-1/+2
* Consistently use FBSDIDDavid E. O'Brien2002-06-301-2/+2
* Implement the -C (-o noclobber) option, which prevents existing regularTim J. Robbins2002-05-191-0/+11
* o __P has been reovedWarner Losh2002-02-021-19/+15
* The fix for >/dev/stdout, including Tor Egge's fix for the bug in theSergey Babkin2002-01-131-4/+4
* backout rev 1.14, it's breaking things.Alfred Perlstein2001-12-241-1/+3
* Added ability to do ">/dev/stdout". The apsfilter people are anxiousSergey Babkin2001-12-221-3/+1
* Implement the <> redirection operator.Brian Somers2000-10-031-0/+21
* Include strerror(errno) in error messages after failed system calls.Martin Cracauer1999-11-291-1/+1
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
* Add rcsid. Spelling.Philippe Charnier1998-05-181-3/+5
* Fix redirection of unopened file descriptors and nuke registerSteve Price1997-04-281-9/+27
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
* Merge in NetBSD mods and -Wall cleaning.Steve Price1996-12-141-9/+11
* Merge of 4.4-Lite2 sh source, plus some gcc -Wall cleaning. This is aPeter Wemm1996-09-011-18/+18
* o rename ulimit -p into ulimit -u, so we are in agreement with bashJoerg Wunsch1995-10-211-1/+6
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-3/+3
* Added $Id$David Greenman1994-09-241-0/+2
* BSD 4.4 Lite bin SourcesRodney W. Grimes1994-05-261-0/+343