9 date 92.12.15.00.20.22; author jromine; state Exp;
14 date 90.04.05.15.31.28; author sources; state Exp;
19 date 90.04.05.14.45.48; author sources; state Exp;
24 date 90.02.05.14.39.39; author sources; state Exp;
29 date 90.02.05.14.38.59; author sources; state Exp;
43 @/* remdir.c - remove a directory */
45 static char ident[] = "@@(#)$Id: remdir.c,v 1.4 1990/04/05 15:31:28 sources Exp jromine $";
55 #if !defined (BSD42) && !defined (SYS5DIR)
57 #endif /* not BSD42 and not SYS5DIR */
60 (void) fflush (stdout);
62 #if !defined (BSD42) && !defined (SYS5DIR)
63 switch (pid = vfork ()) {
65 advise ("fork", "unable to");
69 execl ("/bin/rmdir", "rmdir", dir, NULLCP);
70 execl ("/usr/bin/rmdir", "rmdir", dir, NULLCP);
71 fprintf (stderr, "unable to exec ");
76 if (pidXwait (pid, "rmdir"))
80 #else /* BSD42 or SYS5DIR */
81 if (rmdir (dir) == NOTOK) {
82 admonish (dir, "unable to remove directory");
85 #endif /* BSD42 or SYS5DIR */
99 static char ident[] = "@@(#)$Id:$";
102 #endif not BSD42 and not SYS5DIR
105 #else BSD42 or SYS5DIR
108 #endif BSD42 or SYS5DIR
119 static char ident[] = "$Id:";