begin quote from Dave Mitchell:
> Perl5's perl.h seems to have a bunch of stuff to handle this.
I've added this to platforms/generic.h:
#ifndef S_ISREG
# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
#endif
(Anyone know if that's the right place for it?)
--
void russian_roulette(void) { char *
Simon Cozens <[EMAIL PROTECTED]> wrote:
> begin quote from Joe Yates:
> > if (!S_ISREG(file_stat.st_mode)) {
> > As far as I can tell, "S_ISREG" is gcc specific.
>
> My fault, but I'm sure it's POSIX. Oh well, problem, anyway. Anyone got a
> more-portable-than-POSIX way of saying this
begin quote from Joe Yates:
> if (!S_ISREG(file_stat.st_mode)) {
> As far as I can tell, "S_ISREG" is gcc specific.
My fault, but I'm sure it's POSIX. Oh well, problem, anyway. Anyone got a
more-portable-than-POSIX way of saying this?
--
This week I will definitely have passed the A