freebsd-dev/lib/libc
Ruslan Ermilov e5fb99b712 Removed excessive _seekdir() call in closedir(). This saves one lseek()
syscall.  Before r5958, seekdir() was called for its side effect of
freeing memory allocated by opendir() for rewinddir(), but that revision
added _reclaim_telldir() that frees all memory allocated by telldir()
calls, making this call redundant.

This introduces a slight change.  If an application duplicated the descriptor
obtained through dirfd(), it can no longer rely on file position to be
reset to the start of file after a call to closedir().  It's believed to
be safe because neither POSIX, nor any other OS I've tested (NetBSD, Linux,
OS X) rewind the file offset pointer on closedir().

Reported by:	Igor Sysoev
2012-03-02 14:05:50 +00:00
..
amd64 Make the sys/ucontext.h self-contained by changing the return type 2012-02-01 13:33:53 +00:00
arm Add __aeabi_read_tp function required for thread-local storage 2012-02-14 00:12:15 +00:00
compat-43 Powerpc is special here. powerpc and powerpc64 use different ABIs, so 2010-08-24 20:54:43 +00:00
db Globally replace u_int*_t from (non-contributed) man pages. 2012-02-12 18:29:56 +00:00
gdtoa Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
gen Removed excessive _seekdir() call in closedir(). This saves one lseek() 2012-03-02 14:05:50 +00:00
gmon Provide 64-bit PowerPC support in libc. 2010-07-10 14:45:03 +00:00
i386 Make the sys/ucontext.h self-contained by changing the return type 2012-02-01 13:33:53 +00:00
ia64 Make the sys/ucontext.h self-contained by changing the return type 2012-02-01 13:33:53 +00:00
iconv Fix a problem whereby a corrupt DNS record can cause named to crash. [11:06] 2011-12-23 15:00:37 +00:00
include Fetch the aux vector for the static libc, and use the entries to 2012-02-17 10:49:29 +00:00
inet
isc
locale Revert r231673 and r231682 for now, until we can run a full make 2012-02-14 21:48:46 +00:00
mips Make the sys/ucontext.h self-contained by changing the return type 2012-02-01 13:33:53 +00:00
nameser
net Globally replace u_int*_t from (non-contributed) man pages. 2012-02-12 18:29:56 +00:00
nls Merge from English r198040: add C message catalogue entries for newer 2010-06-20 06:52:10 +00:00
posix1e Make it possible to use permission sets (full_set, modify_set, read_set 2011-04-09 07:42:25 +00:00
powerpc Replace the assembler macro WEAK_ALIAS with a new macro WEAK_REFERENCE which 2012-02-05 20:04:43 +00:00
powerpc64 Replace the assembler macro WEAK_ALIAS with a new macro WEAK_REFERENCE which 2012-02-05 20:04:43 +00:00
quad Powerpc is special here. powerpc and powerpc64 use different ABIs, so 2010-08-24 20:54:43 +00:00
regex Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
resolv Remove meaningless self-assignment in res_send.c, otherwise clang will 2011-12-15 20:10:12 +00:00
rpc Globally replace u_int*_t from (non-contributed) man pages. 2012-02-12 18:29:56 +00:00
softfloat Conditionalize the __floatunsisf and __floatunsidf functions, added in 2012-01-20 14:44:21 +00:00
sparc64 Make the sys/ucontext.h self-contained by changing the return type 2012-02-01 13:33:53 +00:00
stdio Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
stdlib Add aligned_alloc(3). 2012-01-09 06:36:28 +00:00
stdtime Implement xlocale APIs from Darwin, mainly for use by libc++. This adds a 2011-11-20 14:45:42 +00:00
string Add err(3) to strerror(3) SEE ALSO section 2012-02-16 05:06:07 +00:00
sys Document SO_PROTOCOL socket option. 2012-02-26 13:57:24 +00:00
uuid Note that memory should be freed after uuid_to_string(3) call. 2012-03-01 14:39:01 +00:00
xdr Add a HISTORY section 2011-07-10 06:57:00 +00:00
yp Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
Makefile Merge index() and strchr() together. 2012-01-03 07:14:01 +00:00
Versions.def Add a FBSD_1.3 namespace for FreeBSD 10. 2011-10-10 15:42:33 +00:00