| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
permission), try to continue in FTS_DONTCHDIR mode. Of course this
won't work for long paths, but we can't descend more than one pathname
component beyond the directory anyway if we lack search permission.
Here is a transcript demonstrating the change, where oldls is ls(1)
linked with the old fts(3):
das@VARK:~> mkdir t && touch t/{a,b,c} && chmod u-x t
das@VARK:~> oldls t
a b c
das@VARK:~> oldls -l t
das@VARK:~> \ls t
a b c
das@VARK:~> \ls -l t
ls: a: Permission denied
ls: b: Permission denied
ls: c: Permission denied
I had forgotten about this patch until bde reminded me. He reports
using it without problems for over a year.
PR: 45723
|
|
|
|
|
|
| |
since the macro isn't really a predicate, and it has side-effects.
Also, don't set errno if prepwrite() fails, since this is done in
prepwrite() now.
|
|
|
|
| |
since the macro isn't really a predicate, and it has side-effects.
|
|
|
|
|
|
|
|
|
| |
writable. Affected callers include fwrite(), put?(), and *printf().
The issue of whether this is the right errno for funopened streams is
unresolved, but that's an obscure case, and some errno is better than
no errno.
Discussed with: bde, jkh
|
| |
|
| |
|
|
|
|
| |
Reviewed by: ru
|
|
|
|
| |
through ignoring SIGCHLD.
|
|
|
|
|
|
|
|
| |
reflect src/libexec/rtld-elf/rtld.c rev. 1.68 - the globally-loaded
objects (RTLD_GLOBAL) are searched before the local object's DAG's.
PR: 62770
Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>
|
|
|
|
| |
by getipnodebyname().
|
|
|
|
| |
Suggested by: marcel, imp
|
|
|
|
| |
Obtained from: NetBSD (christos)
|
|
|
|
|
| |
Though it breaks RFC 3484, without this change, dest addr selection
doesn't work well under NAT environment.
|
|
|
|
| |
Obtained from: KAME
|
|
|
|
|
|
| |
multibyte representation in conversion state objects, store the
accumulated wide character, set number and number of bytes remaining
to avoid having to derive them every time mbrtowc() is called.
|
|
|
|
|
|
| |
modeled on ethers(3) except that all functions are thread-safe.
Reviewed by: simokawa
|
|
|
|
| |
in the dst == NULL case.
|
|
|
|
| |
putwchar() to reduce function call overhead.
|
|
|
|
| |
__maskrune() instead of one direct call and one through iswprint().
|
|
|
|
|
|
|
| |
through byte by byte with mbrtowc(). In the usual case (buffer is big
enough to contain the multibyte character, character does not straddle
buffer boundary) this results in only one call to mbrtowc() for each
wide character read.
|
|
|
|
|
|
|
|
|
| |
to the initial state when a stream is opened or seeked upon. Use the
stream's conversion state object instead of a freshly-zeroed one in
fgetwc(), fputwc() and ungetwc().
This is only a performance improvement for now, but it would also be
required in order to support state-dependent encodings.
|
|
|
|
| |
Reminded by: ru@
|
| |
|
|
|
|
|
| |
need to compile it with -fno-omit-frame-pointers since the mcount code
depends on that, and by default it omits them without -pg.
|
|
|
|
|
|
|
|
|
| |
of fcntl(2), flock(2), and lockf(3) advisory locks.
Add such a paragraph to the flock(2) manpage for the
sake of consistency.
Reviewed by: Cyrille Lefevre and Kirk McKusick on -arch
MFC after: 2 weeks
|
|
|
|
|
|
| |
Also, clarify the manpage description of when errno is set and
explain that clients should set errno=0 first if they want useful
error information.
|
|
|
|
|
|
|
|
| |
Correct my previous commit and add a comment to the manpage
indicating that the user must set errno to 0 if they wish to
distinguish "no such user" from "error".
Pointed out by: Jacques Vidrine (nectar@)
|
|
|
|
|
|
| |
low bound, and the number of bytes remaining instead of storing the
raw byte sequence and deriving them every time mbrtowc() is called.
This is much faster -- about twice as fast in some crude benchmarks.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It should become useless when gcc 3.4 will be imported, as libgcc from
gcc 3.4 contains this bits for arm.
|
|
|
|
| |
Obtained from: NetBSD
|
| |
|
| |
|
| |
|
|
|
|
|
| |
mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the
trivial "NONE" encoding.
|
|
|
|
|
| |
buffer is non-null when the character is two bytes long, not when
the buffer is two bytes long.
|
|
|
|
|
|
|
|
|
|
| |
Remove "sys/types.h" as "sys/param.h" is already included
Use cast rather than back-pointer to convert from public to private
version of FTS data, and so avoid littering fts.h with any of the
details.
Pointed out By: bde, kientzle
|
|
|
|
|
| |
Submitted by: Michel Lavondes <fox@vader.aacc.cc.md.us>
PR: docs/66576
|
|
|
|
| |
functions directly wherever possible.
|
|
|
|
| |
file to avoid extern'ing them all over the place.
|
|
|
|
| |
the whatis(1) output.
|
|
|
|
|
|
|
| |
returning EPERM if the source address specified in the IP header did
not match the address bound to the prison.
Approved by: bmilekic (mentor)
|
|
|
|
| |
do not appear as anything but the first byte of a multibyte character.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"A trailing newline is added if none is present."
The code in syslogd, stderr, and console output always adds a newline
at the EOL. However, the existing code never actually removed a
trailing newline, and apparently relied on syslogd to convert it
into a space character. Thus, the existing newline was converted
to a trailing space at the EOL by syslogd, while stderr, and console
output resulted in an empty line.
MFC after: 2 weeks
|
|
|
|
| |
inconsistent capitalization in comments).
|
|
|
|
|
|
| |
RuneRange arrays. This is much faster when there are hundreds of
ranges (as is the case in UTF-8 locales) and was inspired by a
similar change made by Apple in Darwin.
|
|
|
|
|
|
|
|
|
| |
o fix grammar nit
PR: 66289 [1]
Submitted by: Michel Lavondès <fox@vader.aacc.cc.md.us>
Obtained from: OpenBSD [1]
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@)
|