| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
detour through getc().
Notes:
svn path=/head/; revision=126804
|
| |
|
|
|
|
|
| |
__srefill() to do it.
Notes:
svn path=/head/; revision=126802
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126800
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126765
|
| |
|
|
|
|
|
|
|
|
|
|
| |
structure and call stdio functions. In 5.X this was broken when FILE
locking was introduced into libc.
This change makes most (relevant) stdio functions work again when the
_extra file in FILE isn't initialised (and can't be without a libc
function to do it since the __sFILEX structure is private to libc).
Notes:
svn path=/head/; revision=126760
|
| |
|
|
|
|
|
|
|
| |
done before the first call, even if this is a malloc(0) call.
PR: 62859
Notes:
svn path=/head/; revision=126727
|
| |
|
|
|
|
|
| |
cleanup, add more sections, better explanation, declaration
Notes:
svn path=/head/; revision=126697
|
| |
|
|
|
|
|
|
|
|
|
| |
cleanups, handling 'ls -l-', handling '--*'
Note this is in the same time back out of our v1.3
"Don't print an error message if the bad option is '?'"
because it directly violates POSIX.
Notes:
svn path=/head/; revision=126696
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126693
|
| |
|
|
|
|
|
| |
single '-' in command line and '-' (non-first) in options
Notes:
svn path=/head/; revision=126692
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that this provokes. "Wherever possible" means "In the kernel OR NOT
C++" (implying C).
There are places where (void *) pointers are not valid, such as for
function pointers, but in the special case of (void *)0, agreement
settles on it being OK.
Most of the fixes were NULL where an integer zero was needed; many
of the fixes were NULL where ascii <nul> ('\0') was needed, and a
few were just "other".
Tested on: i386 sparc64
Notes:
svn path=/head/; revision=126643
|
| |
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=126553
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126535
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126518
|
| |
|
|
|
|
|
|
|
|
| |
in order to get SUSv2 conformant behavior in higher level calls like
fputs() and puts().
Reviewed by: bde
Notes:
svn path=/head/; revision=126506
|
| |
|
|
|
|
|
| |
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
Notes:
svn path=/head/; revision=126475
|
| |
|
|
|
|
|
|
|
|
| |
define for it.
Don't catch POSIXLY_CORRECT env. into static variable, it can be changed
on the fly by program.
Use P1003.2 standartized illoptchar[]
Notes:
svn path=/head/; revision=126452
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126440
|
| |
|
|
|
|
|
|
| |
in favour of GNU instead of NetBSD, because configure's use us and
expect GNU.
Notes:
svn path=/head/; revision=126439
|
| |
|
|
|
|
|
|
| |
in favour of GNU instead of NetBSD, because configure's use us and
expect GNU.
Notes:
svn path=/head/; revision=126438
|
| |
|
|
|
|
|
|
|
| |
- Fix syntax
- Remove the (slightly wrong) duplicate explanation of the error condition
- Change reference to invalid multibyte character into invalid wide character
Notes:
svn path=/head/; revision=126313
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The getaddrinfo(3), getipnodebyname(3) and resolver(3) can coincide now
with what should be totally reentrant, and h_errno values will now
be preserved correctly, but this does not affect interfaces such as
gethostbyname(3) which are still mostly non-reentrant.
In all of these relevant functions, the thread-safety has been pushed
down as far as it seems possible right now. This means that operations
that are selected via nsdispatch(3) (i.e. files, yp, dns) are protected
still under global locks that getaddrinfo(3) defines, but where possible
the locking is greatly reduced. The most noticeable improvement is
that multiple DNS lookups can now be run at the same time, and this
shows major improvement in performance of DNS-lookup threaded programs,
and solves the "Mozilla tab serialization" problem.
No single-threaded applications need to be recompiled. Multi-threaded
applications that reference "_res" to change resolver(3) options will
need to be recompiled, and ones which reference "h_errno" will also
if they desire the correct h_errno values. If the applications already
understood that _res and h_errno were not thread-safe and had their own
locking, they will see no performance improvement but will not
actually break in any way.
Please note that when NSS modules are used, or when nsdispatch(3)
defaults to adding any lookups of its own to the individual libc
_nsdispatch() calls, those MUST be reentrant as well.
Notes:
svn path=/head/; revision=126243
|
| |
|
|
|
|
|
|
| |
PR: 63173
Submitted by: Marius Strobl <marius@alchemy.franken.de>
Notes:
svn path=/head/; revision=126189
|
| |
|
|
|
|
|
|
| |
Submitted by: "Christian S.J. Peron" <maneo@bsdpro.com>
PR: bin/63283
Notes:
svn path=/head/; revision=126180
|
| |
|
|
|
|
|
|
|
|
| |
Approved by: simon(mentor)
Reviewed by: ru
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
PR: docs/60044
Notes:
svn path=/head/; revision=126164
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126143
|
| |
|
|
|
|
|
| |
not in <unistd.h>
Notes:
svn path=/head/; revision=126139
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126138
|
| |
|
|
|
|
|
| |
will assume that syscalls will succeed rather than fail.
Notes:
svn path=/head/; revision=126107
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
through a realloc like function.
Make the malloc_active variable a local static to this new function.
Don't warn about recursion more than once per base call.
constify malloc_func.
Notes:
svn path=/head/; revision=126061
|
| |
|
|
|
|
|
|
|
|
|
|
| |
has been hit, this makes it cover more cases.
Call the message function directly rather than fiddle with flag-saving
when we find an unknown character in our options.
The 'A' flag should not trigger on legal out of memory conditions.
Notes:
svn path=/head/; revision=126060
|
| |
|
|
|
|
|
|
| |
though getipnodebyname(3) is obsoleted api, some major applications
such as Mozilla are still using it. so, it will help ipv4 users.
Notes:
svn path=/head/; revision=126052
|
| |
|
|
|
|
|
| |
<gnuregex.h>.
Notes:
svn path=/head/; revision=126039
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126034
|
| |
|
|
|
|
|
| |
and fix a typo in the !__GNUC__ case.
Notes:
svn path=/head/; revision=125867
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125866
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125865
|
| |
|
|
|
|
|
|
| |
Submitted by: Suleiman Souhlal <refugee@segfaulted.com>
Obtained from: NetBSD
Notes:
svn path=/head/; revision=125733
|
| |
|
|
|
|
|
|
|
|
|
| |
These files had tags after teh copyright notice,
inside the comment block (incorrect, removed),
and outside the comment block (correct).
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=125669
|
| |
|
|
|
|
|
|
|
|
|
| |
These files had tags after the copyright notice,
inside the comment block (incorrect, removed),
and outside the comment block (correct).
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=125668
|
| |
|
|
|
|
|
|
|
|
|
| |
These files had tags at the start of the file
(incorrect, removed), and after the copyright
notices (correct).
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=125667
|
| |
|
|
|
|
|
| |
this from looking at code generated by gcc.
Notes:
svn path=/head/; revision=125600
|
| |
|
|
|
|
|
|
|
|
| |
checks that the code actually performs. Judging from the 4.2BSD
release notes, the docs have only been out of date for 20 years.
PR: 29844
Notes:
svn path=/head/; revision=125592
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125587
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125562
|
| |
|
|
|
|
|
|
|
|
| |
Do not choke on malformed network addresses.
Return n_name in static space, not on the function's stack.
MFC after: 1 week
Notes:
svn path=/head/; revision=125555
|
| |
|
|
|
|
|
| |
internal mutex and CV.
Notes:
svn path=/head/; revision=125521
|
| |
|
|
|
|
|
|
|
| |
Don't decrement it twice when it is taken.
Reported by: kris
Notes:
svn path=/head/; revision=125518
|
| |
|
|
|
|
|
| |
Reported by: kris
Notes:
svn path=/head/; revision=125509
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125502
|