*** /home/phil/min1.5ref/test/test1.c	Wed Nov 14 00:06:32 1990
--- test/test1.c	Thu Nov 15 00:58:07 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 1 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #include <stdio.h>
  
*** /home/phil/min1.5ref/test/test3.c	Wed Nov 14 00:06:32 1990
--- test/test3.c	Thu Nov 15 00:58:08 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 3 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #include <stdio.h>
  
*** /home/phil/min1.5ref/test/test5.c	Wed Nov 14 00:06:33 1990
--- test/test5.c	Thu Nov 15 00:58:09 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 5 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #include <errno.h>
  #include <stdio.h>
*** /home/phil/min1.5ref/test/test7.c	Wed Nov 14 00:06:33 1990
--- test/test7.c	Thu Nov 15 00:58:09 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 7 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #define MAX_ERROR 4
  
*** /home/phil/min1.5ref/test/test9.c	Wed Nov 14 00:06:33 1990
--- test/test9.c	Thu Nov 15 00:58:09 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* Test 9 setjmp with register variables.		Author: Ceriel Jacobs */
  
+ #include <sys/types.h>
  #include <setjmp.h>
  #include <signal.h>
  #include <stdio.h>
*** /home/phil/min1.5ref/test/test21.c	Wed Nov 14 00:06:40 1990
--- test/test21.c	Thu Nov 15 00:58:08 1990
***************
*** 297,311 ****
    if (mkdir("D1/D2", 0777) != 0) e(2);
    if (mkdir("./D1/D3", 0777) != 0) e(3);
    if (mkdir("././D1/D4", 0777) != 0) e(4);
!   if ( (fd1 = creat("D1/D2/x")) < 0) e(5);
!   if ( (fd2 = creat("D1/D2/y")) < 0) e(6);
!   if ( (fd3 = creat("D1/D2/z")) < 0) e(7);
!   if ( (fd4 = creat("D1/D3/x")) < 0) e(8);
!   if ( (fd5 = creat("D1/D3/y")) < 0) e(9);
!   if ( (fd6 = creat("D1/D3/z")) < 0) e(10);
!   if ( (fd7 = creat("D1/D4/x")) < 0) e(11);
!   if ( (fd8 = creat("D1/D4/y")) < 0) e(12);
!   if ( (fd9 = creat("D1/D4/z")) < 0) e(13);
    if (unlink("D1/D2/z") != 0) e(14);
    if (unlink("D1/D2/y") != 0) e(15);
    if (unlink("D1/D2/x") != 0) e(16);
--- 297,311 ----
    if (mkdir("D1/D2", 0777) != 0) e(2);
    if (mkdir("./D1/D3", 0777) != 0) e(3);
    if (mkdir("././D1/D4", 0777) != 0) e(4);
!   if ( (fd1 = creat("D1/D2/x",0777)) < 0) e(5);
!   if ( (fd2 = creat("D1/D2/y",0777)) < 0) e(6);
!   if ( (fd3 = creat("D1/D2/z",0777)) < 0) e(7);
!   if ( (fd4 = creat("D1/D3/x",0777)) < 0) e(8);
!   if ( (fd5 = creat("D1/D3/y",0777)) < 0) e(9);
!   if ( (fd6 = creat("D1/D3/z",0777)) < 0) e(10);
!   if ( (fd7 = creat("D1/D4/x",0777)) < 0) e(11);
!   if ( (fd8 = creat("D1/D4/y",0777)) < 0) e(12);
!   if ( (fd9 = creat("D1/D4/z",0777)) < 0) e(13);
    if (unlink("D1/D2/z") != 0) e(14);
    if (unlink("D1/D2/y") != 0) e(15);
    if (unlink("D1/D2/x") != 0) e(16);
***************
*** 357,363 ****
    if (rmdir("D1/ABCDEFGHIJKLMNOPQ") != 0) e(12);
    if (access("D1/ABCDEFGHIJKLMN", 7 ) != -1) e(13);
    errno = 0;
!   if (mkdir("D1/D2/x") != -1) e(14);
    if (errno != ENOENT) e(15);
  
    /* A particularly nasty test is when the parent has mode 0.  Although
--- 357,363 ----
    if (rmdir("D1/ABCDEFGHIJKLMNOPQ") != 0) e(12);
    if (access("D1/ABCDEFGHIJKLMN", 7 ) != -1) e(13);
    errno = 0;
!   if (mkdir("D1/D2/x", 0777) != -1) e(14);
    if (errno != ENOENT) e(15);
  
    /* A particularly nasty test is when the parent has mode 0.  Although
*** /home/phil/min1.5ref/test/sh1	Wed Nov 14 00:06:40 1990
--- test/sh1	Thu Nov 15 00:58:07 1990
***************
*** 43,48 ****
--- 43,49 ----
  ar r x.a /bin/cp
  # ar syntax is different for IBM and 68000
  if chip INTEL;  then ar rb p x.a /bin/cat; fi
+ if chip NS32532;  then ar rb p x.a /bin/cat; fi
  if chip M68000; then ar r x.a /bin/cat; fi
  rm p q
  mv r R
*** /home/phil/min1.5ref/test/test17.c	Wed Nov 14 00:06:40 1990
--- test/test17.c	Thu Nov 15 00:58:08 1990
***************
*** 1198,1203 ****
--- 1198,1224 ----
  *                          MAKE_AND_FILL_DIRS                                *
  *                                                                            *
  *****************************************************************************/
+ put_file_in_dir(dirname, mode)
+ char *dirname;
+ int mode;
+  /* Fill directory 'dirname' with file with mode 'mode'.   */
+ {
+   int nr;
+ 
+ 
+   if (chdir(dirname) != OK)
+ 	err(5, CHDIR, "to dirname (put_f_in_dir)");
+   else {
+ 	/* Creat the file */
+ 	if ((nr = creat(fnames[mode], mode * 0100)) < 0)
+ 		err(13, CREAT, fnames[mode]);
+ 	else
+ 		try_close(nr, fnames[mode]);
+ 
+ 	if (chdir("..") != OK)
+ 		err(5, CHDIR, "to previous dir (put_f_in_dir)");
+   }
+ }				/* put_file_in_dir */
  
  make_and_fill_dirs()
   /* Create 8 dir.'s: "d---", "d--x", "d-w-", "d-wx", "dr--", "dr-x",     *
***************
*** 1243,1270 ****
  
  
  
- put_file_in_dir(dirname, mode)
- char *dirname;
- int mode;
-  /* Fill directory 'dirname' with file with mode 'mode'.   */
- {
-   int nr;
- 
- 
-   if (chdir(dirname) != OK)
- 	err(5, CHDIR, "to dirname (put_f_in_dir)");
-   else {
- 	/* Creat the file */
- 	if ((nr = creat(fnames[mode], mode * 0100, 0)) < 0)
- 		err(13, CREAT, fnames[mode]);
- 	else
- 		try_close(nr, fnames[mode]);
- 
- 	if (chdir("..") != OK)
- 		err(5, CHDIR, "to previous dir (put_f_in_dir)");
-   }
- }				/* put_file_in_dir */
- 
  
  /*****************************************************************************
  *                                                                            *
--- 1264,1269 ----
*** /home/phil/min1.5ref/test/test16.c	Wed Nov 14 00:06:41 1990
--- test/test16.c	Thu Nov 15 00:58:07 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 16 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #include <errno.h>
  #include <stdio.h>
*** /home/phil/min1.5ref/test/test18.c	Wed Nov 14 00:06:42 1990
--- test/test18.c	Thu Nov 15 00:58:08 1990
***************
*** 1046,1052 ****
  	err(5, CHDIR, "to dirname (put_f_in_dir)");
    else {
  	/* Creat the file */
! 	if ((nr = creat(fnames[mode], mode * 0100, 0)) < 0)
  		err(13, CREAT, fnames[mode]);
  	else
  		try_close(nr, fnames[mode]);
--- 1046,1052 ----
  	err(5, CHDIR, "to dirname (put_f_in_dir)");
    else {
  	/* Creat the file */
! 	if ((nr = creat(fnames[mode], mode * 0100)) < 0)
  		err(13, CREAT, fnames[mode]);
  	else
  		try_close(nr, fnames[mode]);
*** /home/phil/min1.5ref/test/test19.c	Wed Nov 14 00:06:42 1990
--- test/test19.c	Thu Nov 15 00:58:08 1990
***************
*** 1,5 ****
--- 1,6 ----
  /* test 19 */
  
+ #include <sys/types.h>
  #include <signal.h>
  #include <errno.h>
  #include <stdio.h>
