| 1 |
/* $OpenBSD: ftree.c,v 1.26 2005/04/21 21:47:18 beck Exp $ */ |
/* $OpenBSD: ftree.c,v 1.27 2006/12/26 20:58:25 otto Exp $ */ |
| 2 |
/* $NetBSD: ftree.c,v 1.4 1995/03/21 09:07:21 cgd Exp $ */ |
/* $NetBSD: ftree.c,v 1.4 1995/03/21 09:07:21 cgd Exp $ */ |
| 3 |
|
|
| 4 |
/*- |
/*- |
| 48 |
#include "extern.h" |
#include "extern.h" |
| 49 |
|
|
| 50 |
__SCCSID("@(#)ftree.c 8.2 (Berkeley) 4/18/94"); |
__SCCSID("@(#)ftree.c 8.2 (Berkeley) 4/18/94"); |
| 51 |
__RCSID("$MirOS: src/bin/pax/ftree.c,v 1.2 2007/02/17 04:52:40 tg Exp $"); |
__RCSID("$MirOS: src/bin/pax/ftree.c,v 1.3 2007/10/23 20:07:42 tg Exp $"); |
| 52 |
|
|
| 53 |
/* |
/* |
| 54 |
* routines to interface with the fts library function. |
* routines to interface with the fts library function. |
| 349 |
*/ |
*/ |
| 350 |
for (;;) { |
for (;;) { |
| 351 |
if ((ftent = fts_read(ftsp)) == NULL) { |
if ((ftent = fts_read(ftsp)) == NULL) { |
| 352 |
|
if (errno) |
| 353 |
|
syswarn(1, errno, "next_file"); |
| 354 |
/* |
/* |
| 355 |
* out of files in this tree, go to next arg, if none |
* out of files in this tree, go to next arg, if none |
| 356 |
* we are done |
* we are done |