freebsd-dev/lib/libc/gen
Konstantin Belousov 90c68c1799 Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by:	Marc Balmer <mbalmer at openbsd org>
Obtained from:	OpenBSD
MFC after:	2 weeks
2008-05-05 14:05:23 +00:00
..
__getosreldate.c Change the C wrappers for mmap/lseek/pread/pwrite/truncate/ftruncate to 2007-07-04 23:27:38 +00:00
__xuname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
_pthread_stubs.c Add some more pthread stubs so that librt can use them. 2006-03-05 18:10:28 +00:00
_rand48.c
_spinlock_stub.c Remove 3rd clause, renumber, ok per email 2007-01-12 07:31:30 +00:00
_thread_init.c
alarm.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
alarm.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
arc4random.3
arc4random.c ANSIfy function definitions, reduces diff against OpenBSD. 2007-05-25 10:40:33 +00:00
assert.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
basename.3 More accurately document the implementation details of internal storage. 2006-10-12 14:31:17 +00:00
basename.c
check_utility_compat.3 Sort sections. 2005-01-20 09:17:07 +00:00
check_utility_compat.c
clock.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
clock.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
closedir.c Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are no 2007-12-03 14:33:51 +00:00
confstr.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
confstr.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
crypt.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ctermid.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ctermid.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
daemon.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
daemon.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
devname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
devname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
directory.3 Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part 2008-04-16 18:59:36 +00:00
dirname.3 More accurately document the implementation details of internal storage. 2006-10-12 14:31:17 +00:00
dirname.c
disklabel.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
dladdr.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
dlfcn.c Add stub for dl_iterate_phdr. 2007-04-03 18:35:20 +00:00
dlfunc.c
dlinfo.3 Sort sections. 2005-01-20 09:17:07 +00:00
dllockinit.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
dlopen.3 Fix the ordering in the description of the dlsym() lookup procedure to 2004-06-03 10:13:26 +00:00
drand48.c
erand48.c
err.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
err.c Minor style(9) nit: move to using ANSI definition of functions. 2008-04-03 20:36:44 +00:00
errlst.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
errno.c
exec.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
exec.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
feature_present.3 Add a feature_present(3) function which checks to see if a named kernel 2008-01-10 22:11:21 +00:00
feature_present.c Add a feature_present(3) function which checks to see if a named kernel 2008-01-10 22:11:21 +00:00
fmtcheck.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
fmtcheck.c Teach fmtcheck() about the ' (thousands separator) flag. 2005-03-21 08:00:55 +00:00
fmtmsg.3
fmtmsg.c
fnmatch.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
fnmatch.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
fpclassify.3 - Move the functions presently described in in ieee(3) to their own 2005-01-27 05:46:17 +00:00
fpclassify.c Update my email address. 2005-02-06 03:23:31 +00:00
frexp.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
frexp.c Replace seven nominally MD implementations of frexp() that are broken 2004-07-18 21:23:39 +00:00
fstab.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ftok.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
ftok.c Change the signature of ftok from (const char *, char) to (const char *, int) 2004-06-01 06:53:07 +00:00
fts-compat.c Our fts(3) API, as inherited from 4.4BSD, suffers from integer 2008-01-26 17:09:40 +00:00
fts-compat.h Our fts(3) API, as inherited from 4.4BSD, suffers from integer 2008-01-26 17:09:40 +00:00
fts.3 Our fts(3) API, as inherited from 4.4BSD, suffers from integer 2008-01-26 17:09:40 +00:00
fts.c Our fts(3) API, as inherited from 4.4BSD, suffers from integer 2008-01-26 17:09:40 +00:00
ftw.3 Make SYNOPSIS compile. 2005-11-23 15:41:36 +00:00
ftw.c Replace the current implementations of ftw() and nftw() with the OpenBSD 2004-08-24 13:00:55 +00:00
getbootfile.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getbootfile.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getbsize.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getbsize.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getcap.3 o s/cgetseq/cgetset/ 2007-02-11 18:14:49 +00:00
getcap.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getcontext.3 Fix description: the argument to setcontext(3) must have been previously 2004-12-03 14:10:04 +00:00
getcwd.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getcwd.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getdiskbyname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getdomainname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getdomainname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getfsent.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getgrent.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getgrent.c Implementing 'fallback' nsswitch source. 'fallback' source is used 2007-12-12 10:08:03 +00:00
getgrouplist.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getgrouplist.c Implementing 'fallback' nsswitch source. 'fallback' source is used 2007-12-12 10:08:03 +00:00
gethostname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
gethostname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getloadavg.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getloadavg.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getlogin.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getmntinfo.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getmntinfo.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getnetgrent.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getnetgrent.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getosreldate.3 Switch BUILD_ARCH in Makefile to use uname -p suggested by ru. 2005-12-03 05:11:07 +00:00
getosreldate.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getpagesize.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getpagesize.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getpass.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getpeereid.3
getpeereid.c
getprogname.3
getprogname.c
getpwent.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getpwent.c - Extend the nsswitch to support Services, Protocols and Rpc 2006-04-28 12:03:38 +00:00
getttyent.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getttyent.c In getttyent(3), if /etc/ttys doesn't end in a newline, don't 2008-01-15 06:50:50 +00:00
getusershell.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getusershell.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
getvfsbyname.3 Bump date. 2007-04-05 21:17:52 +00:00
getvfsbyname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
glob.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
glob.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
initgroups.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
initgroups.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
isatty.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
isgreater.3 Update my email address. 2005-02-06 03:23:31 +00:00
isinf.c Unbreak alpha: On alpha a long double is the same as a double and 2004-07-10 15:52:26 +00:00
isnan.c Remove __isnanl() to avoid conflicting with the same function in libm. 2004-09-24 06:33:22 +00:00
jrand48.c
lcong48.c
ldexp.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ldexp.c Replace the ldexp() implementation in libc with a renamed copy of the 2005-01-22 06:03:40 +00:00
lockf.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
lockf.c Add the new kernel-mode NFS Lock Manager. To use it instead of the 2008-03-26 15:23:12 +00:00
lrand48.c
makecontext.3
Makefile.inc Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part 2008-04-16 18:59:36 +00:00
modf.3 Document modff() and modfl(). Technically, modff() and modfl() 2008-03-29 16:19:35 +00:00
mrand48.c
msgctl.3 Fix descriptions of "struct msqid_ds and "struct ipc_perm" to match 2008-04-03 16:21:43 +00:00
msgget.3
msgrcv.3 When IPC_NOWAIT is set and there is no message, msgrcv() fails 2005-06-14 10:56:02 +00:00
msgsnd.3 Document what "msgsz" argument really denotes. [1] 2006-10-12 11:42:41 +00:00
nftw.c Replace the current implementations of ftw() and nftw() with the OpenBSD 2004-08-24 13:00:55 +00:00
nice.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
nice.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
nlist.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
nlist.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
nrand48.c
opendir.c Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part 2008-04-16 18:59:36 +00:00
pause.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pause.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pmadvise.c
popen.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
popen.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pselect.3
pselect.c
psignal.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
psignal.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pw_scan.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pw_scan.h Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pwcache.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
pwcache.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
raise.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
raise.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
rand48.3 Sort sections. 2005-01-20 09:17:07 +00:00
rand48.h
readdir.c Do not read away the target directory entry when encountering deleted 2008-05-05 14:05:23 +00:00
readpassphrase.3 Sort sections. 2005-01-20 09:17:07 +00:00
readpassphrase.c
rewinddir.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
rfork_thread.3
scandir.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
scandir.c scandir(3) previously used st_size to obtain an initial estimate 2008-03-16 19:08:53 +00:00
seed48.c
seekdir.c Since jb@ fixed the type of dd_lock in <dirent.h>, these casts are no 2007-12-03 14:33:51 +00:00
sem_destroy.3 Markup tidying. 2004-07-02 16:45:56 +00:00
sem_getvalue.3 Markup tidying. 2004-07-02 16:45:56 +00:00
sem_init.3 Cross-reference sem_getvalue(3) from several other semaphore-related 2005-07-13 13:15:22 +00:00
sem_open.3 Fix a typo in regards to the ENOENT error. 2007-12-27 21:55:49 +00:00
sem_post.3 Cross-reference sem_getvalue(3) from several other semaphore-related 2005-07-13 13:15:22 +00:00
sem_timedwait.3 Remove trailing whitespace. 2008-03-13 10:26:17 +00:00
sem_wait.3 Add missing section number. 2008-03-13 10:25:30 +00:00
sem.c Make __sem_timedwait() consistent with the sem_timedwait() prototype. 2005-10-18 17:24:03 +00:00
semctl.c
setdomainname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sethostname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
setjmp.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
setjmperr.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
setmode.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
setmode.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
setproctitle.3 Mechanically kill hard sentence breaks. 2004-07-02 23:52:20 +00:00
setproctitle.c
setprogname.c
siginterrupt.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
siginterrupt.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
siglist.c o Remove duplicate includes. 2007-01-20 08:24:02 +00:00
signal.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
signal.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sigsetops.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sigsetops.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sleep.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sleep.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
srand48.c
statvfs.3
statvfs.c
stringlist.3 Expand contractions. 2005-02-13 23:45:54 +00:00
stringlist.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
strtofflags.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
strtofflags.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
swapcontext.c
Symbol.map Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part 2008-04-16 18:59:36 +00:00
sysconf.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sysconf.c stdio is currently limited to file descriptors not greater than 2008-02-27 05:56:57 +00:00
sysctl.3 Removed no longer existing CTL_MACHDEP defines. 2008-03-26 23:02:17 +00:00
sysctl.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
sysctlbyname.c
sysctlnametomib.c
syslog.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
syslog.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tcgetpgrp.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tcgetsid.3 Implement POSIX function tcgetsid() which returns session id. 2008-04-15 08:33:32 +00:00
tcsendbreak.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tcsetattr.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tcsetpgrp.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
telldir.c Do not read away the target directory entry when encountering deleted 2008-05-05 14:05:23 +00:00
telldir.h Do not read away the target directory entry when encountering deleted 2008-05-05 14:05:23 +00:00
termios.c Implement POSIX function tcgetsid() which returns session id. 2008-04-15 08:33:32 +00:00
time.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
time.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
times.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
times.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
timezone.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
timezone.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tls.c o Add MIPS to the list of architectures with defined TLS_TCB_ALIGN 2008-04-29 23:15:23 +00:00
ttyname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ttyname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ttyslot.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
tzset.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ualarm.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ualarm.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
ucontext.3 Eliminate double whitespace. 2004-07-03 22:30:10 +00:00
ulimit.3
ulimit.c
uname.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
uname.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
unvis.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
unvis.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
usleep.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
usleep.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
utime.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
utime.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
valloc.3 Remove extraneous .Ef request. 2007-10-30 15:26:20 +00:00
valloc.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
vis.3 Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
vis.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
wait3.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
wait.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
waitpid.c Per Regents of the University of Calfornia letter, remove advertising 2007-01-09 00:28:16 +00:00
wordexp.3 Correct usage example. 2006-04-18 21:37:24 +00:00
wordexp.c Fix typo: WRDE_DOOFS -> WRDE_DOOFFS. 2004-06-30 13:55:08 +00:00