[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Problem with fstatat on AIX 7.1

From: Kevin Brott
Subject: Re: [Bug-tar] Problem with fstatat on AIX 7.1
Date: Sat, 3 Sep 2011 11:52:15 -0700

On Sat, Sep 3, 2011 at 11:44, Paul Eggert <address@hidden> wrote:
Hmm, this makes it appear that fstatat always fails
if its flags argument is zero, which makes the AIX bug
worse than what we thought.  Can you please test this
guess by trying the following test program and seeing
what its exit status is?

 #include <fcntl.h>
 #include <sys/stat.h>

 main (void)
   struct stat a;
   int fd = open (".", O_RDONLY);
   if (fd < 0)
     return 1;
   if (fstatat (fd, ".", &a, 0) != 0)
     return 2;
   return 0;

$ vi flagtest.c
$ xlc -o flagtest flagtest.c
$ ./flagtest ; echo $?

# include <stddisclaimer.h>
/* Kevin  Brott <address@hidden> */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]