Return to test-fts.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
version 1.2, 2014/08/11 02:05:54 | version 1.3, 2015/10/06 18:32:20 | ||
---|---|---|---|
|
|
||
if (ftsp == NULL) { | if (ftsp == NULL) { | ||
perror("fts_open"); | perror("fts_open"); | ||
return(1); | return 1; | ||
} | } | ||
entry = fts_read(ftsp); | entry = fts_read(ftsp); | ||
if (entry == NULL) { | if (entry == NULL) { | ||
perror("fts_read"); | perror("fts_read"); | ||
return(1); | return 1; | ||
} | } | ||
if (fts_set(ftsp, entry, FTS_SKIP) != 0) { | if (fts_set(ftsp, entry, FTS_SKIP) != 0) { | ||
perror("fts_set"); | perror("fts_set"); | ||
return(1); | return 1; | ||
} | } | ||
if (fts_close(ftsp) != 0) { | if (fts_close(ftsp) != 0) { | ||
perror("fts_close"); | perror("fts_close"); | ||
return(1); | return 1; | ||
} | } | ||
return(0); | return 0; | ||
} | } |