diff options
author | cf46844 <none@none> | 2007-01-31 14:03:34 -0800 |
---|---|---|
committer | cf46844 <none@none> | 2007-01-31 14:03:34 -0800 |
commit | 68a94df11c9810ff7f455e0638cc865a474bd586 (patch) | |
tree | 035779972909ad75d549ef8613b66751a6293371 /usr/src/head | |
parent | 3589885c9209c38b62ac67c0611bac09f7dd008f (diff) | |
download | illumos-gate-68a94df11c9810ff7f455e0638cc865a474bd586.tar.gz |
PSARC/2006/403 Add two new private interfaces to nftw() for 'find' command
5078524 *find* find is not POSIX.1-2001 compliant
6450771 ftw() fails when it descends to a path that exceeds PATH_MAX
Diffstat (limited to 'usr/src/head')
-rw-r--r-- | usr/src/head/ftw.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/head/ftw.h b/usr/src/head/ftw.h index ba6f535dd7..2ff6c4a243 100644 --- a/usr/src/head/ftw.h +++ b/usr/src/head/ftw.h @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -43,8 +42,7 @@ extern "C" { #endif /* - * Codes for the third argument to the user-supplied function - * which is passed as the second argument to ftwalk + * Codes for the third argument to the user-supplied function. */ #define FTW_F 0 /* file */ @@ -54,9 +52,10 @@ extern "C" { #define FTW_SL 4 /* symbolic link */ #define FTW_DP 6 /* directory */ #define FTW_SLN 7 /* symbolic link that points to nonexistent file */ +#define FTW_DL 8 /* private interface for find utility */ /* - * Codes for the fourth argument to ftwalk. You can specify the + * Codes for the fourth argument to nftw. You can specify the * union of these flags. */ @@ -66,6 +65,7 @@ extern "C" { #define FTW_DEPTH 010 /* call descendents before calling the parent */ #define FTW_ANYERR 020 /* return FTW_NS on any stat failure */ #define FTW_HOPTION 040 /* private interface for find utility */ +#define FTW_NOLOOP 0100 /* private interface for find utility */ #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE) || defined(_XPG4_2) struct FTW |