rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit c065d5875b8467f0ad81c1d05c4ffda57ddb380d
parent 061386e5f31da451257235b3a24a3f00e427fe02
Author: tjg <tjg>
Date:   Fri,  8 Feb 2002 14:48:47 +0000

  Bug: yet more wrongly ordered header file includes.

Diffstat:
MChangeLog | 2++
Mexecve.c | 3++-
Minput.c | 3++-
Msystem-bsd.c | 3++-
Mwait.c | 3++-
5 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -765,4 +765,6 @@ Changes since rc-1.5b2 2002-02-08 + Bug: yet more wrongly ordered header file includes. + Release: rc-1.6c6. diff --git a/execve.c b/execve.c @@ -5,9 +5,10 @@ spots before av[][] so that execve does not have to call malloc. */ -#include <errno.h> #include "rc.h" +#include <errno.h> + #define giveupif(x) { if (x) goto fail; } extern int rc_execve(char *path, char **av, char **ev) { diff --git a/input.c b/input.c @@ -1,8 +1,9 @@ /* input.c: i/o routines for files and pseudo-files (strings) */ +#include "rc.h" + #include <errno.h> -#include "rc.h" #include "jbwrap.h" /* diff --git a/system-bsd.c b/system-bsd.c @@ -1,9 +1,10 @@ /* signal-safe read and write (for BSD slow devices). writeall() also allows partial writes */ +#include "rc.h" + #include <errno.h> -#include "rc.h" #include "jbwrap.h" #include "wait.h" diff --git a/wait.c b/wait.c @@ -1,6 +1,7 @@ +#include "rc.h" + #include <errno.h> -#include "rc.h" #include "wait.h" bool forked = FALSE;