httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: apr_filetype_e
Date Thu, 05 Oct 2000 20:01:37 GMT
Jim Jagielski <jim@jaguNET.com> writes:

> William A. Rowe, Jr. wrote:
> > 
> > > From: Jim Jagielski [mailto:jim@jaguNET.com]
> > > Sent: Thursday, October 05, 2000 2:09 PM
> > > 
> > > Hmmm... I just noticed that it's impossible for a filetype
> > > to be a combination of any 2 or more types... I don't think
> > > we want that.
> > 
> > Yessir... is bad :-)
> > 
> 
> In my particular case (porting the conf directory stuff) it's
> not that bad, just expensive. To get to see if a file is
> a directory but not a symlink, you gotta stat it twice,
> once with apr_stat (to check to see if it's a DIR) and then
> with apr_lstat (for it's symlinkness)...  :/ 

Don't you need a stat+lstat anyway?  I'd like to know the syscall that
tells you the type of the specified "file" as well as the type of the
"file" it links to when the specified file is a symlink :)

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message