jmallett
785e008f9b
Fix style (no space after return, twice-too-big continuation) and
...
cast (casting long to a void pointer, rather than intptr_t to a
void pointer) bogons.
Reviewed by: bde
2002-12-22 03:20:16 +00:00
bbraun
d025aceb5b
Reduce libc's memory footprint by lazily allocating memory used internally
...
by setproctitle().
Reviewed by: jkh
2002-12-21 22:04:50 +00:00
bbraun
6e7d1bfe4c
Reduce libc.so's memory footprint by lazily allocating memory used internally
...
by basename() and dirname().
Reviewed by: eric
2002-12-21 07:12:35 +00:00
tjr
4d5ffd6782
Import newer versions of div() and ldiv() from NetBSD which handle
...
the -fpcc-struct-return calling convention properly instead of
returning garbage. This may break backwards compatibility with some old
binaries that were compiled when -fno-pcc-struct-return was the default.
2002-12-21 05:11:39 +00:00
tjr
08218617f4
Document the fact that the printf() family of functions return negative
...
values (EOF in our case) on error, and some of the possible errno values
in an Errors section.
PR: 39257
2002-12-20 08:28:10 +00:00
tjr
9b26000e8d
C99 standardised the vscanf() family of functions, update Standards
...
section to reflect this.
2002-12-20 07:46:01 +00:00
mike
dd4db7d1b4
Stylistic changes:
...
o Fix an English error (comma splice) and poorly worded sentence.
o Fix KNF ordering of variables (pointers come before arithmetic types).
o Restore hand-optimization of sizeof()-1, instead of strlen().
o Remove unneeded local variables in strerror_r().
Test by: strerror regression test
Requested by: bde
Reviewed by: bde
2002-12-20 05:26:10 +00:00
trhodes
71621c649c
Document what really occurs when we obtain an error.
...
PR: 43357
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
2002-12-20 01:01:24 +00:00
ceri
c32581acae
Grammatical fixup: s/be the -1/be -1/
...
MFC after: 1 day
2002-12-19 21:48:43 +00:00
tjr
8d1bd25993
Add back the Standards section claiming conformance to 1003.1-2001 and
...
C99 now that all known standards-related bugs have been fixed.
2002-12-19 10:24:52 +00:00
tjr
80abd67f59
Write the message to stderr, not file descriptor 2, so that perror()
...
writes to the correct stream if stderr has been redirected with freopen().
2002-12-19 09:53:26 +00:00
tjr
93b0a6ff83
Use strerror_r() to format the error message so that strerror()'s static
...
buffer does not get clobbered.
ISO/IEC 9899:1999 7.21.6.2 3:
"The implementation shall behave as if no library function calls the
strerror function."
2002-12-19 09:50:10 +00:00
ru
51fe7c1a88
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
ru
3424a53ebe
mdoc(7) police: Fixed a few .Fa abuses.
2002-12-19 09:33:34 +00:00
ru
51ba8864ca
mdoc(7) police: excessive quotes.
2002-12-19 08:13:27 +00:00
mike
91ae3fa45d
Rearrange strerror() so that its itoa procedure can be used with
...
strerror_r(). Doing this allows us to ensure that strerror_r() always
fills the supplied buffer regardless of EINVAL or ERANGE errors.
strerror()'s semantics have changed slightly such that an argument of
0 is now considered invalid and errno is set to EINVAL.
Remove internal regression test for strerror() and strerror_r(). This
will be reincarnated in src/tools/regression/lib/libc/string.
In strerror(3), add a comment about strerror()'s bogus return type.
PR: 44356
2002-12-18 16:53:31 +00:00
ru
863465c1ab
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
2002-12-18 13:33:04 +00:00
ru
8746d263e1
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
ru
1310701709
mdoc(7) police: "The .Fn system call".
2002-12-18 12:39:25 +00:00
ru
d0db69d964
mdoc(7) police: "The .Fn function".
2002-12-18 10:13:54 +00:00
ru
af6f15fd34
mdoc(7) police: Fixed the .Nm abuse.
2002-12-18 10:10:32 +00:00
ru
a4b155d7a2
mdoc(7) police: Tidy up the syscall language.
...
Stop calling system calls "function calls".
Use "The .Fn system call" a-la "The .Nm utility".
When referring to a non-BSD implementation in
the HISTORY section, call syscall a function,
to be safe.
2002-12-18 09:22:32 +00:00
tjr
2e8159ab8c
Document what happens when the format string contains insufficient
...
conversion specifications to completely specify the resulting struct tm.
PR: 46331
Submitted by: Christian S.J. Peron
MFC after: 2 weeks
2002-12-18 05:00:54 +00:00
mbr
d975ae88c1
Change the name for the local unix-socket based protocol
...
from "unix" back to "local". Add some compat stuff so both
ways work for some time.
Reviewed by: phk
Approved by: imp (UPDATING)
Requested by: iedowse, lukem@netbsd.org
2002-12-16 22:24:26 +00:00
maxim
8f9af30b0c
o getsockopt(2) 'level' argument should be 0, not SOCK_STREAM. It
...
does not hurt anything because uipc_ctloutput() does not check
sopt->sopt_level.
Pointed out by: ru
MFC after: 1 week
2002-12-16 13:42:13 +00:00
dillon
b43fb3e920
This is David Schultz's swapoff code which I am finally able to commit.
...
This should be considered highly experimental for the moment.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 3 weeks
2002-12-15 19:17:57 +00:00
maxim
c2efb986aa
o Fix bogus getsockopt(2) call: swap SOCK_STREAM and LOCAL_PEERCRED.
...
The bug does not affect anything because SOCK_STREAM == LOCAL_PEERCRED == 0x1.
PR: bin/46165
Submitted by: Alain Thivillon <at@rominet.net>
Reviewed by: dd
MFC after: 1 week
2002-12-15 09:37:54 +00:00
ru
ad42bf1099
mdoc(7) police: markup overhaul.
2002-12-14 15:29:27 +00:00
fenner
7435be9a24
Add an implementation of the POSIX.1 sockatmark(3).
2002-12-13 22:22:55 +00:00
ru
311f3f3656
mdoc(7) police: sort xrefs in SEE ALSO.
2002-12-13 16:53:51 +00:00
trhodes
eb277a30c8
Fix the HISTORY to match reality. They were never MFC'ed to 4.X.
...
Submitted by: R. Imura <imura@ryu16.org>
Approved by: re (murray)
2002-12-12 22:22:51 +00:00
ru
041d1287e8
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
ru
2a1141d1d9
mdoc(7) police: Added the missing .Os call; it's not strictly
...
necessary nowadays, but is documented as "required", and may
become so again in the future.
Approved by: re
2002-12-11 15:55:29 +00:00
ru
40d653afff
Fixed the parameter's name.
...
PR: docs/46183
Submitted by: Dirk Gouders <gouders@et.bocholt.fh-ge.de>
Approved by: re
2002-12-11 14:04:37 +00:00
ru
c3c9add94c
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:11:37 +00:00
ru
3ae151638f
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:04:05 +00:00
ru
bd8413493a
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-09 13:54:29 +00:00
ru
6ab573ad83
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 13:14:15 +00:00
ru
fe879635b2
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 12:47:18 +00:00
peter
1a6ee38c52
Do not guarantee an overflow of tm_year when doing the binary search in
...
localtime/mktime/tmcomp and friends on ia64.
Approved by: re
2002-12-05 19:54:47 +00:00
ru
4b97577172
Capitalize ASCII code names.
...
Approved by: re
2002-12-05 08:50:00 +00:00
ru
ea13b9803b
Consistently mark std(in|out|err) with .Dv, because that's how they
...
are marked up in stdio(3), and because they are defined expressions
of type "FILE *".
Approved by: re
2002-12-04 18:57:46 +00:00
ru
a4483b8cb5
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 17:49:15 +00:00
ru
e8b4d1412a
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 16:28:45 +00:00
ru
4e841ec498
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-04 15:47:41 +00:00
grehan
16182748bd
Minimal libc for PowerPC.
...
Reviewed by: benno
Approved by: re (blanket)
2002-12-04 07:25:14 +00:00
peter
86b5d0d658
Replace rev 1.33 with a real fix. The problem was integer overflows
...
when trying to store the year in a signed int. The maximum time_t on ia64
is around 292 billion years in the future, but 'int' and struct tm.tm_year
can only represent then ext 2.1 billion years or so.
This solves the problem of mktime/localtime looping on ia64. Unfortunately,
the standards say that tm_year is an 'int', so we are still stuck with a
y2147483647 bug. bash2's configure script looks for bugs in mktime() and
fails on ia64 because of this. However, mktime() on FreeBSD fails the test
normally anyway so this is no big loss.
This change does not affect any other platforms besides ia64.
Approved by: re
2002-12-02 01:05:08 +00:00
ru
ec73cae726
mdoc(7) police: sweep.
2002-11-29 17:35:09 +00:00
ru
ecf768b1cc
mdoc(7) police: sweep.
2002-11-29 16:42:23 +00:00
ru
3f859aa2ab
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00