SYS V unlink() call

Steven J. McDowall sjm at dayton.UUCP
Wed Feb 19 00:40:36 AEST 1986


In article <4980 at alice.uUCp> ark at alice.UucP (Andrew Koenig) writes:
>
>Why can't you believe this is what is really meant?
>

Ok ok.. As the original author:

1)  I believe! I believe!
2)  It seemed to me (still does) that this restriction is
    a hinder to developing major systems that uses directories
    for structuring information. 
3)  Yes, I know* that I can do a system() call to issue either
    a mkdir or rmdir.. My point is that, if a program can
    perform the that function (via system) then it would seem
    logical for the OS to provide the service w/o the overhead
    of invoking the system call. (system() is pretty expensive, 
    isn't it?)

    Anyway, thanks for the answers.. It does* make sense that
    you can't arbitrarily delete directories, thought I would
    have thought that if unlink() (I do like BSD's rmdir, mkdir)
    would allow us to remove directories, it would take care of
    all the checking for us..Same of course if we could
    do a mkdir()....


-- 
Steven J. McDowall	
Dayton-Hudson Dept. Store. Co.		UUCP: ihnp4!rosevax!dayton!sjm
700 on the Mall				ATT:  1 612 375 2816
Mpls, Mn. 55408



More information about the Comp.unix.wizards mailing list