lkml.org 
[lkml]   [1998]   [Jan]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: open problem
From
Date
Jason Watts <khg@m-net.arbornet.org> writes:

> Hi!
>
> If a dir is nothing but a file with dir entries, with its own
> inode etc., why wasn't an open system call implemented for directories?
>
> How exectly does the opendir libr. routine work?

There was once a time when people did use open() to read directories.
Then BSD changed what was in directories (14 character filenames were
a major bummer), and broke a lot of code that knew what was in
directories. So now everyone uses opendir() and doesn't worry about
what is in directories.

Joe Buehler

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