| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
Submitted by: bde and Hartmut Brandt <brandt@fokus.gmd.de> (via PR)
PR: bin/25308
Notes:
svn path=/head/; revision=72976
|
| |
|
|
|
|
|
|
|
| |
This is about to be replaced anyway by initialization explicitly
instead of lazily, and reducing the complexity of it. As it is
now, this will work fine, however.
Notes:
svn path=/head/; revision=72947
|
| |
|
|
|
|
|
| |
work in both the libc only and libc/libc_r case.
Notes:
svn path=/head/; revision=72939
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
while with threaded software in -CURRENT acting very "weird". It has
seemed, for example, in Mozilla that threads attempting to do host
lookups have been locking up. That's exactly the case.
There was a race condition in the implementation of the initialization
of the mutex used to protect FILE operations, first of all: multiple
instances of FLOCKFILE() in libc could occur on the same FILE at
the same time and cause strange behavior by overwriting eachothers'
creation of the mutex and the rest of the file lock.
Secondly, it's not appropriate to test the "validity" of the file
descriptor referenced by the FILE; if the code is calling FLOCKFILE()
or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not
to be locked or unlocked on the condition that _file is >= 0. This
also could quite easily cause leaks by failing to perform the lock or
unlock operation when it actually is needed.
Mozilla now works again on -CURRENT when linked to libc_r.so.5 and
libc.so.5.
Notes:
svn path=/head/; revision=72937
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ABI change. There is some serious evilness here to work around some
gcc weaknesses. We need to know the sizeof(FILE) manually until __sF
goes away in the next major bump. We have the size for Alpha and i386,
missing is ia64, ppc and sparc* (and i386 with 64 bit longs).
At some point down the track we can change the stdin etc #defines to
stop hard coding the size of FILE into application binaries.
Lots of head scratching and ideas and testing by: green, imp
Notes:
svn path=/head/; revision=72732
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72706
|
| |
|
|
|
|
|
|
|
| |
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mews is known. Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.
Notes:
svn path=/head/; revision=72693
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72686
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72640
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72619
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72568
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72561
|
| |
|
|
|
|
|
|
|
|
|
| |
causing some versions of as to dump core. This survived make
buildworld/installworld and the building gettext port afterwards.
Submitted by: <nnd@mail.nsk.ru> "N.Dudorov"
Reviewed by: "Daniel M. Eischen" <eischen@vigrid.com>
Notes:
svn path=/head/; revision=72550
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Back out the __std* stuff. Can't figure out how to do this right now,
so we'll save it for late.
o use _up as a pointer for extra fields that we need to access.
o back out the libc major version bump.
Submitted by: green
reviewed by: peter, imp, green, obrien (to varying degrees).
We'll fix the "how do we stop encoding sizeof(FILE) in binaries" part
later.
Notes:
svn path=/head/; revision=72529
|
| |
|
|
|
|
|
| |
Reviewed by: deischen
Notes:
svn path=/head/; revision=72524
|
| |
|
|
|
|
|
|
|
|
|
| |
Change __dtoa to not free the string it allocated the previous time it was
called. The caller now frees the string after usage if appropiate.
PR: 15070
Reviewed by: deischen
Notes:
svn path=/head/; revision=72523
|
| |
|
|
|
|
|
| |
Reviewed by: itojun
Notes:
svn path=/head/; revision=72510
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72496
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72475
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bikeshed in -arch. It isn't quite over, but it has been well established
that this can be adjusted or refined. But we do seem to have consensis
on a major bump of some sort. After this, it should reasonably safe
to build world again.
This change is to get rid of __sF[] and use seperate __stdin/out/err
handles. This means we can pad on extra bits onto the end of FILE
at will without going through this all over again. __sF[] was evil
because it compiled the sizeof(FILE) into every stdio using program.
Asbestos suit on: check!
Peril sensitive sunglasses on: check!
*gulp!*
Notes:
svn path=/head/; revision=72472
|
| |
|
|
|
|
|
| |
Approved by: phantom
Notes:
svn path=/head/; revision=72469
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72443
|
| |
|
|
|
|
|
|
|
| |
to check two sizes per one function invocation now.
Suggested by: ache
Notes:
svn path=/head/; revision=72442
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72414
|
| |
|
|
|
|
|
|
|
| |
Suggested by: bde
General mdoc(7) cleanup.
Notes:
svn path=/head/; revision=72409
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72408
|
| |
|
|
|
|
|
| |
Make comparsions more clear (per style(9))
Notes:
svn path=/head/; revision=72407
|
| |
|
|
|
|
|
| |
Reviewed by: ache
Notes:
svn path=/head/; revision=72406
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72404
|
| |
|
|
|
|
|
|
| |
number, and then placed in alphabetical order and comma separated.",
mdoc.samples(7) said.
Notes:
svn path=/head/; revision=72401
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72400
|
| |
|
|
|
|
|
|
| |
FILE *buffer = stdout;
so back it out for now.
Notes:
svn path=/head/; revision=72394
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
try a hopefully more robust stdin/stdout/stderr. This costs an indirect
pointer fetch, but saves us from changes in 'FILE'. The __stdin stuff
is there to not pollute application name space if the application does
not use <stdio.h> and also in case something depended on the current
behavior where stdin etc was a #define.
Reviewed by: eischen, dillon
Notes:
svn path=/head/; revision=72391
|
| |
|
|
|
|
|
|
|
| |
inclusion of stddef.h.
Reviewed by: peter
Notes:
svn path=/head/; revision=72390
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a lock to FILE. flockfile and friends are now implemented
(for the most part) in libc. flockfile_debug is implemented in
libc_r; I suppose it's about time to kill it but will do it in
a future commit.
Fix a potential deadlock in _fwalk in a threaded environment.
A file flag (__SIGN) was added to stdio.h that, when set, tells
_fwalk to ignore it in its walk. This seemed to be needed in
refill.c because each file needs to be locked when flushing.
Add a stub for pthread_self in libc. This is needed by flockfile
which is allowed by POSIX to be recursive.
Make fgetpos() error return value (-1) match man page.
Remove recursive calls to locked functions (stdio); I think I've
got them all, but I may have missed a couple.
A few K&R -> ANSI conversions along with removal of a few instances
of "register".
$Id$ -> $FreeBSD$ in libc/stdio/rget.c
Not objected to: -arch, a few months ago
Notes:
svn path=/head/; revision=72373
|
| |
|
|
|
|
|
| |
Pointed out by: kris
Notes:
svn path=/head/; revision=72370
|
| |
|
|
|
|
|
| |
Reviewed by: hackers
Notes:
svn path=/head/; revision=72369
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72368
|
| |
|
|
|
|
|
|
|
| |
in the .Nd.
Reviewed by: hackers
Notes:
svn path=/head/; revision=72367
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
it in.
Some review from -hackers (some time ago), and I think the best way to
get this improved (if it needs improving) or updating, is to bring it in.
PR: docs/12557
Submitted by: Tim Singletary <tsingle@triana.gsfc.nasa.gov>
Notes:
svn path=/head/; revision=72365
|
| |
|
|
|
|
|
| |
dynamic)
Notes:
svn path=/head/; revision=72360
|
| |
|
|
|
|
|
|
|
| |
was explicitly specified.
Submitted by: ache
Notes:
svn path=/head/; revision=72359
|
| |
|
|
|
|
|
| |
not only one-digit number
Notes:
svn path=/head/; revision=72333
|
| |
|
|
|
|
|
| |
Requested by: deischen
Notes:
svn path=/head/; revision=72331
|
| |
|
|
|
|
|
|
|
| |
LC_NUMERIC::grouping) values.
. Always set __XXX_changed flags then loading numeric & monetary locale
categories to allow localeconv() to use C locale also.
Notes:
svn path=/head/; revision=72321
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72314
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72313
|
| |
|
|
|
|
|
|
| |
PR: docs/24961
Submmitted by: Tony Finch <dot@dotat.at>
Notes:
svn path=/head/; revision=72311
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72301
|
| |
|
|
| |
Notes:
svn path=/head/; revision=72297
|