Age | Commit message (Collapse) | Author |
|
|
|
(cherry picked from commit 4749a0058b27274a95c5a798e339c7299cdf890e)
Conflicts:
ChangeLog
|
|
|
|
|
|
fopen should set the FD_CLOEXEC flag if requested evenif the kernel does
not support an aotmic operation.
freopen should reuse the file descriptor for the stream. This is
especially important for calls to change the standard streams (stin,
stdout, stderr).
|
|
The code is also cleaned up to avoid inefficiencies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The getcwd syscall (so far?) can only handle path up to one page
in size. There is no limit about directory hierarchy depth, though,
and the POSIX getcwd is supposed to handle this. In that case fall
back to the generic getcwd.
Additionally, optimize the generic getcwd to use openat when possible
to change the asymptotic performance from O(N^2) to O(n).
|
|
Don't call fcntl(F_SETFD) unnecessarily.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fnstenv on x86-64 seems to clear the state. Work around.
|
|
|
|
iconv modules
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|