Commit Graph

4454 Commits

Author SHA1 Message Date
imp
5e10e50b59 Fix the current libc breakage in current:
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.
2001-02-16 06:11:22 +00:00
tegge
2793a9d7f9 Don't depend on lcl_mutex being a recursive mutex.
Reviewed by:	deischen
2001-02-15 22:17:04 +00:00
tegge
38ec42f445 Remove freelists managed by Balloc/Bfree.
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
2001-02-15 22:12:50 +00:00
ume
eec882b4a9 Correct 2nd argument of getnameinfo(3) to socklen_t.
Reviewed by:	itojun
2001-02-15 10:35:55 +00:00
peter
bcdb9042a1 List the SA_RESTART flag rather than burying it in another paragraph. 2001-02-14 21:46:07 +00:00
obrien
5afa43af2c Only build the compat libs appropiate for the target machine. 2001-02-14 20:49:54 +00:00
guido
42fc95c997 Add include <sys/time.h> because kevent uses struct timespec 2001-02-14 08:48:35 +00:00
peter
24e8063c2f Commit a libc fix going by the current state of the version numbering
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!*
2001-02-14 05:00:20 +00:00
ache
ece65e7270 Return {YES,NO}STR from locale
Approved by:	phantom
2001-02-13 23:32:48 +00:00
phantom
54fd7f1296 catch up to __part_load_locale() interface change 2001-02-13 15:32:21 +00:00
phantom
81a77b6514 add additional function parameter: bufsize_min. it's possible
to check two sizes per one function invocation now.

Suggested by: ache
2001-02-13 15:29:39 +00:00
ru
3c855faf04 mdoc(7) cleanup. 2001-02-12 15:16:24 +00:00
ru
4667e814ee Sort PROT_* and MAP_* lists, logically and alphabetically respectively.
Suggested by:	bde

General mdoc(7) cleanup.
2001-02-12 10:14:15 +00:00
phantom
a4b1c7adbd Make comparsions more clear (per style(9)) 2001-02-12 08:56:39 +00:00
phantom
72ac52b3f2 Assume that "" passed as parameter also means "no grouping"
Make comparsions more clear (per style(9))
2001-02-12 08:55:12 +00:00
phantom
44694affa1 Rewrite __time_load_locale() using ldpart.c::__part_load_locale()
Reviewed by:	ache
2001-02-12 08:53:33 +00:00
phantom
e6d5dad61e Use .Rv macro instead of hardcoded message 2001-02-12 08:42:56 +00:00
ru
7a05da09bb "Cross references in the SEE ALSO section should be sorted by section
number, and then placed in alphabetical order and comma separated.",
mdoc.samples(7) said.
2001-02-12 08:30:22 +00:00
ru
65c172fed6 mmap(3) -> mmap(2). 2001-02-12 08:27:06 +00:00
peter
33f81fe871 It sounded like a good idea at the time. The previous change breaks
FILE *buffer = stdout;
so back it out for now.
2001-02-12 03:31:23 +00:00
peter
261071ecad Take advantage of the current libc sizeof(FILE) breakage (__sF[]) and
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
2001-02-12 02:50:30 +00:00
rwatson
74e79517a9 o Fix build of libc broken in revision 1.2. offsetof() requires the
inclusion of stddef.h.

Reviewed by:	peter
2001-02-12 02:44:33 +00:00
jake
9437320062 Catch up to new priority interface. 2001-02-12 00:21:38 +00:00
deischen
2d14e39d36 Remove (int) file descriptor locking. It should be up to the
application to provide locking for I/O operations.  This doesn't
break any of my tests, but the old behavior can be restored by
compiling with _FDLOCKS_ENABLED.  This will eventually be removed
when it is obvious it does not cause any problems.

Remove most of flockfile implementation, with the exception of
flockfile_debug.

Make error messages more informational (submitted by Mike Heffner
<spock@techfour.net>, who's now known as mikeh@FreeBSD.org).
2001-02-11 22:07:32 +00:00
deischen
bf10167082 libc MT-safety, part 2.
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
2001-02-11 22:06:43 +00:00
nik
06a2f1b109 Mention PROT_NONE in the list of possible protections.
Pointed out by:	kris
2001-02-11 19:30:41 +00:00
nik
fcd90bc751 Include mmap(2) in the list of memory allocation functions.
Reviewed by:	hackers
2001-02-11 19:28:36 +00:00
nik
958d489b0f .Xr to mmap. 2001-02-11 18:53:50 +00:00
nik
2b76ec25ed Note that mmap(2) can allocate memory, as well as mapping existing files,
in the .Nd.

Reviewed by:	hackers
2001-02-11 18:51:17 +00:00
nik
061878a62c Add a man page for the dbm_* functions, and update the Makefile to link
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>
2001-02-11 17:24:25 +00:00
phantom
ac10647302 Don't use hardcoded struct size, use offsetof() instead (make size calculations
dynamic)
2001-02-11 15:09:31 +00:00
phantom
ab85419d42 Don't try to convert grouping strings in case if C or POSIX locale
was explicitly specified.

Submitted by:	ache
2001-02-11 15:07:26 +00:00
phantom
92d7c2b389 make it possible to specify grouping number from range 0..CHAR_MAX,
not only one-digit number
2001-02-10 20:22:45 +00:00
phantom
41acb133d9 Use "namespace.h" and "un-namespace.h"
Requested by:	deischen
2001-02-10 19:57:26 +00:00
phantom
2df9db1d04 . Fix semantics of grouping (LC_MONETARY::mon_grouping,
LC_NUMERIC::grouping) values.
. Always set __XXX_changed flags then loading numeric & monetary locale
  categories to allow localeconv() to use C locale also.
2001-02-10 15:36:46 +00:00
nyan
2a3692f18f Use ${MACHINE_ARCH} instead of ${MACHINE} to support pc98. 2001-02-10 13:11:02 +00:00
ru
fe82b1f4d3 mdoc(7) police: polishing. 2001-02-10 10:51:39 +00:00
ru
88f1741804 mdoc(7) police: mark LC_NUMERIC with .Dv. 2001-02-10 10:26:52 +00:00
nik
cbbe2c7314 Improve language and code examples.
PR:             docs/24961
Submmitted by:  Tony Finch <dot@dotat.at>
2001-02-10 07:48:01 +00:00
obrien
fc70ad10bb There are now compat libs for the Alpha too. 2001-02-10 07:07:09 +00:00
obrien
d37cf74ffa The compat[34]x dists need to have their machine arch appended. 2001-02-10 07:06:40 +00:00
obrien
f5928d97c9 Add 4x compat libs for Alpha.
These come from the live FS of the BSDi FreeBSD/AXP 4.2 disc set.

Forgotten by:	non-Alpha person
2001-02-10 07:00:26 +00:00
obrien
be13498bb4 Look to the future and make this easier to add libs to. 2001-02-10 06:53:31 +00:00
obrien
486cc7e34c Reformat the lib list. 2001-02-10 06:44:18 +00:00
ache
88e0ba5ec8 Note that decimal point taken from locale 2001-02-10 06:42:32 +00:00
obrien
247d96fbb4 Add more 3.5.1 libs that don't exist in 5-CURRENT.
These are: libalias.so.3 libfetch.so.1 libperl.so.3 libss.so.2 libvgl.so.1
2001-02-10 06:41:59 +00:00
ache
c0bd992a1a Note that decimal point taken from locale (SUSv2) 2001-02-10 06:32:03 +00:00
obrien
af4a58c15f Reformat the lib list. 2001-02-10 06:32:02 +00:00
obrien
6e4907023f libc_r.so was bumped between 3.4 and 3.5[.1], so we need libc_r.so.4 also. 2001-02-10 06:29:53 +00:00
obrien
fa6aebd2a1 Update the i386 compat3x dist to the FreeBSD 3.5.1 libs.
I had moved on to FreeBSD 4.0 before 3.5-R and had forgotten to keep this
collection up to date.
2001-02-10 06:25:45 +00:00