Interpreting os.lstat()

Sion Arrowsmith siona at
Fri Jul 20 14:53:10 CEST 2007

=?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?=  <martin at> wrote:
>> (a) Running 'stat' is *not the same* as a system call.
>Why do you say that? It is *exactly* the same [ ... ]

Maybe if stat were implemented as

int main(int argc, char** argv) {
    struct stat so_what_am_I_supposed_to_do_with_this;
    return stat(argv[1], &so_what_am_I_supposed_to_do_with_this);

But it obviously does a lot of other stuff, including formatting
the results of the system call for display. Since what it really
at issue here is presentation of the results, I'd say that the
stat system call and the stat program wrapping it are very
different things.

\S -- siona at --
   "Frankly I have no feelings towards penguins one way or the other"
        -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump

More information about the Python-list mailing list