freebsd-skq/lib/libc/gen
peadar ea85333e1c The FTS_NOSTAT option is an optimisation that reduces the number
of stat(2) calls by keeping an eye of the number of links a directory
has. It assumes that each subdirectory will have a hard link to its
parent, to represent the ".." node, and stops calling stat(2) when
all links are accounted for in a given directory.

This assumption is really only valid for UNIX-like filesystems: A
concrete example is NTFS. The NTFS "i-node" does contain a link
count, but most/all directories have a link count between 0 and 2
inclusive. The end result is that find on an NTFS volume won't
actually traverse the entire hierarchy of the directories passed
to it. (Those with a link count of two are not traversed at all)

The fix checks the "UFSness" of the filesystem before enabling the
optimisation.

Reviewed By: Tim Kientzle (kientzle@)
2004-05-08 15:09:02 +00:00
..
__xuname.c
_pthread_stubs.c Argh, change declaration of two-dimensional array so that it actually 2002-11-13 21:55:22 +00:00
_rand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
_spinlock_stub.c - Define a _spinunlock() function so that threading implementations may do 2003-03-26 04:02:24 +00:00
_thread_init.c
alarm.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
alarm.c
arc4random.3 The upper end of the range of arc4random(3) is 2**32-1, not 2**31-1. 2003-07-31 06:18:24 +00:00
arc4random.c Add locking so that arc4random(3) functions are all reentrant for 2004-03-24 14:44:57 +00:00
assert.c
basename.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
basename.c Fix LP64 architectures and especially ia64. Functions that return 2002-12-30 01:41:14 +00:00
check_utility_compat.3 mdoc(7) police: overhaul. 2002-12-04 15:47:41 +00:00
check_utility_compat.c Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
clock.3
clock.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
closedir.c
confstr.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
confstr.c Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
crypt.c Oops. Also provide a lint-compatible unused argument warning killer. 2002-10-18 16:24:20 +00:00
ctermid.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
ctermid.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
daemon.3 Remove ',' accidentally added after ".Xr fork 2". 2003-11-10 22:04:51 +00:00
daemon.c Prevent abnormal termination of a child daemon process when created 2003-11-10 22:01:42 +00:00
devname.3 mdoc(7): Fix common mistakes made in the SEE ALSO section. 2003-09-12 21:54:11 +00:00
devname.c Add devname_r(3) which takes a buffer as argument. 2003-06-20 09:52:27 +00:00
directory.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
dirname.3 english(4) police. 2002-12-27 12:15:40 +00:00
dirname.c Fix LP64 architectures and especially ia64. Functions that return 2002-12-30 01:41:14 +00:00
disklabel.c Fix libc build breakage by defining FSTYPENAMES before including 2002-08-16 15:33:20 +00:00
dladdr.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
dlfcn.c Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
dlfunc.c Add `restrict' type-qualifier. 2002-09-11 05:05:48 +00:00
dlinfo.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
dllockinit.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
dlopen.3 Mention that dlerror() is also applicable to retrieve error message after 2003-02-21 13:43:41 +00:00
drand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
erand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
err.3 Implement POSIX.1-2001 (XSI)'s fmtmsg(3). 2002-08-05 06:49:58 +00:00
err.c Do not use __progname directly (except in [gs]etprogname(3)). 2002-03-29 22:43:43 +00:00
errlst.c Drop almost 3k from /bin/sync by moving errno to a seperate file 2002-10-09 08:04:24 +00:00
errno.c Drop almost 3k from /bin/sync by moving errno to a seperate file 2002-10-09 08:04:24 +00:00
exec.3 mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
exec.c Fixed some style bugs. 2003-07-01 12:30:03 +00:00
fmtcheck.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
fmtcheck.c When *printf() and *scanf() are compiled without floating-point 2004-05-02 10:55:05 +00:00
fmtmsg.3 Consistently mark std(in|out|err) with .Dv, because that's how they 2002-12-04 18:57:46 +00:00
fmtmsg.c Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
fnmatch.3 Rephrase .Nd description to contain the key 2003-11-06 00:52:37 +00:00
fnmatch.c
fpclassify.3 Assorted mdoc(7) fixes. 2003-06-01 19:19:59 +00:00
fpclassify.c Implement fpclassify(): 2003-02-08 20:37:55 +00:00
frexp.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
fstab.c - Add setfstab() and getfstab(). 2003-04-07 12:55:00 +00:00
ftok.3 The ftok() function has not been in libcompat for quite a while. 2002-10-19 13:33:12 +00:00
ftok.c
fts-compat.c The FTS_NOSTAT option is an optimisation that reduces the number 2004-05-08 15:09:02 +00:00
fts-compat.h The FTS_NOSTAT option is an optimisation that reduces the number 2004-05-08 15:09:02 +00:00
fts.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
fts.c The FTS_NOSTAT option is an optimisation that reduces the number 2004-05-08 15:09:02 +00:00
getbootfile.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
getbootfile.c Return "/boot/kernel/kernel" instead of "/kernel" if the sysctl() call 2003-04-11 13:54:28 +00:00
getbsize.3 Back out the s/int */size_t */ commit. 2002-12-30 11:12:16 +00:00
getbsize.c Back out the s/int */size_t */ commit. 2002-12-30 11:12:16 +00:00
getcap.3 Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
getcap.c In cgetmatch(3), return -1 if a NULL or 0-length name parameter is used. 2003-01-02 10:19:43 +00:00
getcontext.3 mdoc(7) police: overhaul. 2002-12-04 15:47:41 +00:00
getcwd.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getcwd.c Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
getdiskbyname.3
getdomainname.3 mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
getdomainname.c
getfsent.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getgrent.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getgrent.c Back out the `hiding' of strlcpy and strlcat. Several people 2003-05-01 19:03:14 +00:00
getgrouplist.3
getgrouplist.c Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). 2003-02-16 17:29:11 +00:00
gethostname.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
gethostname.c Add a kluge suggested by Marcel to paper over the difference between 2003-08-19 23:01:46 +00:00
getloadavg.3
getloadavg.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
getlogin.c Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
getmntinfo.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
getmntinfo.c
getnetgrent.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
getnetgrent.c #include <ctype.h> for isspace()'s prototype (or a macro version). 2003-01-03 23:55:58 +00:00
getobjformat.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
getobjformat.c Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
getosreldate.3 Fixed copyright. 2003-02-24 22:55:33 +00:00
getosreldate.c Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
getpagesize.3 english(4) police. 2002-12-27 12:15:40 +00:00
getpagesize.c
getpass.3
getpeereid.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
getpeereid.c o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It 2002-12-16 13:42:13 +00:00
getprogname.3
getprogname.c Do not use __progname directly (except in [gs]etprogname(3)). 2002-03-29 22:43:43 +00:00
getpwent.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
getpwent.c Fix a bug that could result in getpw*() incorrectly returning NULL when NIS 2004-04-21 21:15:08 +00:00
getttyent.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
getttyent.c
getusershell.3
getusershell.c Catch up with nsdispatch.c: nsdispatch(3) is now `hidden' by 2003-04-24 20:16:21 +00:00
getvfsbyname.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
getvfsbyname.c Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
glob.3 mdoc(7): Properly mark C headers. 2003-09-10 19:24:35 +00:00
glob.c Remove incomplete support for running FreeBSD userland on old NetBSD kernels 2003-10-29 10:45:01 +00:00
initgroups.3
initgroups.c Fix problem where initgroups would silently truncate groups with 2003-11-19 15:51:26 +00:00
isatty.c
isgreater.3 Assorted mdoc(7) fixes. 2003-06-01 19:19:59 +00:00
jrand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
lcong48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ldexp.3
lockf.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
lockf.c
lrand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
makecontext.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
Makefile.inc Belatedly remove the getvfsent(3) API. All the consumers have been 2004-04-11 21:36:31 +00:00
modf.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
mrand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
msgctl.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
msgget.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
msgrcv.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
msgsnd.3 Add const qualifier to data argument for msgsnd. 2003-01-26 20:09:34 +00:00
nice.3
nice.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
nlist.3
nlist.c Eliminate 19 warnings in libc (at level WARNS=2) of the 2003-02-27 13:40:01 +00:00
nrand48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
ntp_gettime.c
opendir.c Make sure we initialise dirp->dd_size if we aren't reading a unionfs 2003-12-26 12:00:46 +00:00
pause.3
pause.c
pmadvise.c Add the POSIX 1003.1-2001 posix_madvise() interface. 2003-08-09 03:23:24 +00:00
popen.3 Add or correct section number in .Xr. Use .Vt or .Fn 2003-06-08 10:01:52 +00:00
popen.c Remove unused variable: omask. 2003-01-04 00:15:15 +00:00
posixshm.c
pselect.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
pselect.c Add restrict type-qualifier. 2002-10-12 16:13:41 +00:00
psignal.3 Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/ 2002-12-30 21:18:15 +00:00
psignal.c
pw_scan.c add missing endusershell() call. Original version was incorrect. 2004-01-18 21:33:25 +00:00
pw_scan.h Fix the style of the SCM ID's. 2002-03-22 23:42:05 +00:00
pwcache.3 Make user_from_uid and group_from_gid return const char *, just like 2002-03-22 02:35:47 +00:00
pwcache.c Make user_from_uid and group_from_gid return const char *, just like 2002-03-22 02:35:47 +00:00
raise.3
raise.c Make raise and _raise as weak symbols, so they can be overriden by 2003-07-19 05:22:56 +00:00
rand48.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
rand48.h
readdir.c use _GENERIC_DIRSIZ(dp) to avoid copying too much of the dirent over 2002-02-26 21:39:32 +00:00
readpassphrase.3 english(4) police. 2002-12-27 12:15:40 +00:00
readpassphrase.c Fix build. I commented out getpass() in readpassphrase.c because the 2002-03-09 03:16:41 +00:00
rewinddir.c
rfork_thread.3 Replace the return value of rfork_thread(3) in its manual page 2003-04-27 21:07:27 +00:00
scandir.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
scandir.c
seed48.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
seekdir.c
sem_destroy.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem_getvalue.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem_init.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem_open.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem_post.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem_wait.3 - libc/sys/sem.c was repocopied to libc/gen/sem.c. 2004-01-14 20:54:16 +00:00
sem.c Prevent memory leak on sem_destroy() by destroying the semaphore's 2004-02-06 15:15:44 +00:00
semctl.c Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). 2003-02-16 17:29:11 +00:00
setdomainname.c
sethostname.c Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
setjmp.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
setjmperr.c
setmode.3
setmode.c More changes from NetBSD: 2003-02-23 00:24:03 +00:00
setproctitle.3 mdoc(7) police: "The .Fn function". 2002-12-18 10:13:54 +00:00
setproctitle.c Don't segfault if setproctitle(3) is called with NULL initially. 2003-07-01 09:45:35 +00:00
setprogname.c Do not use __progname directly (except in [gs]etprogname(3)). 2002-03-29 22:43:43 +00:00
shm_open.3
siginterrupt.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
siginterrupt.c
siglist.c Two arrays were born from the same seeds, both grew into complementary sets 2002-09-07 08:14:19 +00:00
signal.3 Markup nit. 2004-04-27 09:18:49 +00:00
signal.c
signbit.3 mdoc(7) police: Scheduled sweep. 2003-02-24 22:53:26 +00:00
signbit.c Implement C99's signbit() macro. 2003-02-11 21:56:21 +00:00
sigsetops.3 Supplement the cross-references section with those to sigpending(2) 2003-06-24 15:27:31 +00:00
sigsetops.c
sleep.3
sleep.c
srand48.c
statvfs.3 Add or correct section number in .Xr. Use .Vt or .Fn 2003-06-08 10:01:52 +00:00
statvfs.c Style: One space between "restrict" qualifier and "*". 2002-09-06 11:24:06 +00:00
stringlist.3 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
stringlist.c Sync with NetBSD -- sl_add() now returns an int. 2003-01-19 01:16:01 +00:00
strtofflags.3
strtofflags.c Support the snapshot file flag, so that tools like 'ls -ol' work 2002-04-16 11:03:22 +00:00
swapcontext.c Don't peek into MD structures from MI code. The getcontext(3) and 2002-09-20 08:13:21 +00:00
sysconf.3 Back out previous commit due to incorrect content. 2003-12-23 18:42:55 +00:00
sysconf.c goto break; != break; 2002-11-17 08:54:29 +00:00
sysctl.3 Document the existence of NET_RT_IFMALIST. 2004-03-25 10:08:46 +00:00
sysctl.c Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). 2003-02-16 17:29:11 +00:00
sysctlbyname.c
sysctlnametomib.c #include <string.h> for strlen()'s prototype. 2003-01-04 00:11:11 +00:00
syslog.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
syslog.c Handle %%m properly in syslog format string. Previously it would expand 2003-02-10 08:31:28 +00:00
tcgetpgrp.3
tcsendbreak.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
tcsetattr.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
tcsetpgrp.3
telldir.c
telldir.h
termios.c Assume __STDC__, remove non-__STDC__ code. 2002-05-28 17:03:12 +00:00
time.3 Rewrite to reflect slight change in semantics for C99, and note a bug 2003-07-19 03:19:59 +00:00
time.c C99 compliance: time() always sets its return value in both places 2003-07-19 02:53:46 +00:00
times.3
times.c
timezone.3 mdoc(7) police: "The .Fa argument.". 2002-12-19 09:40:28 +00:00
timezone.c
ttyname.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
ttyname.c Remove unused variables and function declarations. Add missing headers. 2004-01-06 18:26:15 +00:00
ttyslot.c
tzset.3 Add or correct section number in .Xr. Use .Vt or .Fn 2003-06-08 10:01:52 +00:00
ualarm.3 Use useconds_t' instead of u_int' or `unsigned int' where appropriate. 2002-12-29 00:59:09 +00:00
ualarm.c Use useconds_t' instead of u_int' or `unsigned int' where appropriate. 2002-12-29 00:59:09 +00:00
ucontext.3 mdoc(7) police: overhaul. 2002-12-04 15:47:41 +00:00
ulimit.3 Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are 2003-01-04 01:11:49 +00:00
ulimit.c Rename UL_GETSIZE to UL_GETFSIZE and UL_SETSIZE to UL_SETFSIZE; these are 2003-01-04 01:11:49 +00:00
uname.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
uname.c
unvis.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
unvis.c Eliminate 61 warnings emitted at WARNS=2 (leaving 53 to go). 2003-02-16 17:29:11 +00:00
usleep.3 Use useconds_t' instead of u_int' or `unsigned int' where appropriate. 2002-12-29 00:59:09 +00:00
usleep.c Use useconds_t' instead of u_int' or `unsigned int' where appropriate. 2002-12-29 00:59:09 +00:00
utime.3 Note that <sys/types.h> in no longer a prerequisite for <utime.h> and 2002-08-24 00:39:43 +00:00
utime.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
valloc.3 mdoc(7) police: Fixed abuses of the .Ar and .Em macros. 2002-12-18 13:33:04 +00:00
valloc.c Fix the style of the SCM ID's. 2002-03-22 21:53:29 +00:00
vis.3 Document incorrect handling of multibyte characters. 2004-03-21 11:31:37 +00:00
vis.c Add '#' to the characters VIS_GLOB encodes. This fixes a bug in mtree. 2003-10-30 12:41:50 +00:00
wait3.c
wait.c
waitpid.c
wordexp.3 mdoc(7): Use the new feature of the .In macro. 2003-09-08 19:57:22 +00:00
wordexp.c Terminate execl()'s argument list with a null pointer instead of a 2004-04-09 11:32:32 +00:00