Return to BSD News archive
Newsgroups: comp.os.linux.development.system,comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!atlas.onthe.net.au!vic.news.telstra.net!news.mira.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!inferno.mpx.com.au!news.mel.aone.net.au!imci4!imci5!pull-feed.internetmci.com!news.internetMCI.com!newsfeed.internetmci.com!gatech!swrinde!howland.reston.ans.net!Germany.EU.net!Hanover.Germany.EU.net!Hamburg.Germany.EU.net!nuki.NetUSE.de!white.schulung.netuse.de!kris From: kris@schulung.netuse.de (=?ISO-8859-1?Q?Kristian_K=F6hntopp?=) Subject: Re: Ideal filesystem Sender: kris@white.schulung.netuse.de (Kristian Koehntopp) Organization: =?ISO-8859-1?Q?entf=E4llt?= Message-ID: <Dp2vD5.3q6@white.schulung.netuse.de> References: <4hptj4$cf4@cville-srv.wam.umd.edu> <3140C968.20699696@netcom.com> <4isubc$ri9@floyd.sw.oz.au> <4itvde$492@narses.hrz.tu-chemnitz.de> <Dos6H1.ED7@white.schulung.netuse.de> <m1spevlzpi.fsf@pippin.jblhome.ping.dk> Mime-Version: 1.0 Date: Sat, 30 Mar 1996 11:17:29 GMT X-Copyright: (C) Copyright 1996 Kristian Koehntopp -- All rights reserved. Lines: 20 Xref: euryale.cc.adfa.oz.au comp.os.linux.development.system:20261 comp.unix.bsd.freebsd.misc:16248 jacob@jblhome.ping.dk (Jacob Lorensen) writes: >ls stat()s all the files if it needs information on whether it is a >file or directory, if it has executable perimissions, who owns it, >etc. etc. It does not, if it does not need to. Do a "strace ls" and "strace ls -l" and compare the output. But you are right. To build the hashtable of a shell you need to stat() the files to check for x-Bits anyway. You could check for additional flags marking "hidden directory executeables" without additional system calls. The shell would have to enter this directory, though, to check for the presence of the needed executeables. Kristian -- Kristian Koehntopp, Wassilystrasse 30, 24113 Kiel, +49 431 688897 Fachbegriffe der Informatik einfach erklaert, Teil 9: "GUI" == "Ein Hintergrundbild und 12 Xterms"