improved IEEE 1003.1 mkdir, rmdir for UNIX System V

Doug Gwyn gwyn at brl-smoke.ARPA
Tue Jul 8 14:09:34 AEST 1986


In article <438 at meccts.UUCP> ahby at meccts.UUCP (Shane P. McCarron) writes:
-In article <1981 at brl-smoke.ARPA> gwyn at BRL.ARPA writes:
->This function is compatible with the definition in the
->IEEE 1003.1
-Since this standard is not finished, and has only been published in a
-Trial Use Document, is this compatible with the trial use, or with the
-in progress document being developed by the working committee.

Trial use, but I expect this interface won't change much.
Note that it is not a precisely conforming implementation,
since it cheats on some of the error conditions.  If
/bin/mkdir and /bin/rmdir return distinct exit status for
different failure modes, this could be improved.

Also note that, as Chris Torek pointed out, it would be
better to move the SIGCLD reset to before the fork().

I have a similar rename() implementation if anyone needs it
and can't figure out how to modify rmdir.c to get it.



More information about the Comp.unix mailing list