lkml.org 
[lkml]   [1996]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: rmdir system call
Date
From

> Traditionally its invalid, but I think POSIX allows it to support
> more stupid programs; therefore "//bin", "/usr//bin", and "/etc/"
> should all be valid directory names; maybe even combinations of
> these.
> While this makes it easier for application programs, it makes it more
> difficult (inefficient) for the kernel (I think).
> ------------
> U

doing a path look up, the kernel should collapse multiple consecutive
slashes into one slash (this is very easy).

I just read a 1988 draft of the posix spec and the gnu libc manual...
I didn't see anything about what happens with a trailing slash (everything
thing I read said it was "a file name"...filenames can't have trailing
slashes, but directory names can...)



--
marty
leisner@sdsp.mc.xerox.com
Member of the League for Programming Freedom




\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.033 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site