Back to index

glibc  2.9
Defines | Functions
bug-ftw5.c File Reference
#include <errno.h>
#include <ftw.h>
#include <stdio.h>
#include "../test-skeleton.c"

Go to the source code of this file.


#define TEST_FUNCTION   do_test ()


static int fn (const char *file, const struct stat *sb, int flag, struct FTW *s)
static int do_test (void)

Define Documentation

#define TEST_FUNCTION   do_test ()

Definition at line 24 of file bug-ftw5.c.

Function Documentation

static int do_test ( void  ) [static]

Definition at line 13 of file bug-ftw5.c.

  if (nftw ("/", fn, 0, FTW_CHDIR | FTW_ACTIONRETVAL) < 0)
      printf ("nftw / FTW_CHDIR: %m\n");
      return 1;

  return 0;

Here is the call graph for this function:

static int fn ( const char *  file,
const struct stat sb,
int  flag,
struct FTW *  s 
) [static]

Definition at line 6 of file bug-ftw5.c.

  puts (file);
  return FTW_STOP;

Here is the call graph for this function: