* lstat
@ 1997-01-10 15:00 Zefram
1997-01-11 23:34 ` lstat Zoltan Hidvegi
0 siblings, 1 reply; 2+ messages in thread
From: Zefram @ 1997-01-10 15:00 UTC (permalink / raw)
To: Z Shell workers mailing list
The 3.0.3-test3 patch includes:
>+ #ifdef HAVE_LSTAT
> lstat(fn, &sbuf);
>+ #else
>+ stat(fn, &sbuf);
>+ #endif
but system.h says:
>#ifndef HAVE_LSTAT
># define lstat stat
>#endif
so there is no need for that sort of conditional.
-zefram
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: lstat
1997-01-10 15:00 lstat Zefram
@ 1997-01-11 23:34 ` Zoltan Hidvegi
0 siblings, 0 replies; 2+ messages in thread
From: Zoltan Hidvegi @ 1997-01-11 23:34 UTC (permalink / raw)
To: Zefram; +Cc: zsh-workers
Zefram wrote:
> The 3.0.3-test3 patch includes:
>
> >+ #ifdef HAVE_LSTAT
> > lstat(fn, &sbuf);
> >+ #else
> >+ stat(fn, &sbuf);
> >+ #endif
>
> but system.h says:
>
> >#ifndef HAVE_LSTAT
> ># define lstat stat
> >#endif
>
> so there is no need for that sort of conditional.
I did not notice that. This define is buggy in system.h. Some CPP's require
#define lstat(X,Y) stat(X,Y)
I'll remove those unnecessary conditionals and fix the headers.
Zoltan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-01-12 0:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-01-10 15:00 lstat Zefram
1997-01-11 23:34 ` lstat Zoltan Hidvegi
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).