Mike Barcroft
68cd9bedfb
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
Tom Rhodes
bd8dfc819e
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 Davies
9d99e59872
Grammatical fixup: s/be the -1/be -1/
...
MFC after: 1 day
2002-12-19 21:48:43 +00:00
Tim J. Robbins
c0dd63a8a8
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
Tim J. Robbins
37d2356335
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
Tim J. Robbins
a207a8e3f1
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
Ruslan Ermilov
2efeeba554
mdoc(7) police: "The .Fa argument.".
2002-12-19 09:40:28 +00:00
Ruslan Ermilov
3ca4c01eea
mdoc(7) police: Fixed a few .Fa abuses.
2002-12-19 09:33:34 +00:00
Ruslan Ermilov
454e286809
mdoc(7) police: excessive quotes.
2002-12-19 08:13:27 +00:00
Mike Barcroft
5a98f074e6
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
Ruslan Ermilov
5c564bae0a
mdoc(7) police: Fixed abuses of the .Ar and .Em macros.
2002-12-18 13:33:04 +00:00
Ruslan Ermilov
1fae73b137
mdoc(7) police: "The .Fn function".
2002-12-18 12:45:11 +00:00
Ruslan Ermilov
a0ce78ec1d
mdoc(7) police: "The .Fn system call".
2002-12-18 12:39:25 +00:00
Ruslan Ermilov
95f4226b27
mdoc(7) police: "The .Fn function".
2002-12-18 10:13:54 +00:00
Ruslan Ermilov
b92cc9b878
mdoc(7) police: Fixed the .Nm abuse.
2002-12-18 10:10:32 +00:00
Ruslan Ermilov
2faeeff4c9
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
Tim J. Robbins
e4ceb70f7a
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
Martin Blapp
fb4c80619a
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 Konovalov
a61f5b202b
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
Matthew Dillon
92da00bb24
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 Konovalov
04e30a1ce6
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
Ruslan Ermilov
0fcfb0df3a
mdoc(7) police: markup overhaul.
2002-12-14 15:29:27 +00:00
Bill Fenner
43ac5a2340
Add an implementation of the POSIX.1 sockatmark(3).
2002-12-13 22:22:55 +00:00
Ruslan Ermilov
c8d40b7d34
mdoc(7) police: sort xrefs in SEE ALSO.
2002-12-13 16:53:51 +00:00
Tom Rhodes
6883c2e5ae
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
Ruslan Ermilov
8d5d039f80
Uniformly refer to a file system as "file system".
...
Approved by: re
2002-12-12 17:26:04 +00:00
Ruslan Ermilov
051bb54bd3
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
Ruslan Ermilov
8416165a24
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
Ruslan Ermilov
a9a15f3ea4
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:11:37 +00:00
Ruslan Ermilov
fd779e0181
mdoc(7) police: tiny nits.
...
Approved by: re
2002-12-09 14:04:05 +00:00
Ruslan Ermilov
187f61df61
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-09 13:54:29 +00:00
Ruslan Ermilov
142de08d3a
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 13:14:15 +00:00
Ruslan Ermilov
60849ee115
mdoc(7) police: nits.
...
Approved by: re
2002-12-09 12:47:18 +00:00
Peter Wemm
878c9687ec
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
Ruslan Ermilov
db8993ce9e
Capitalize ASCII code names.
...
Approved by: re
2002-12-05 08:50:00 +00:00
Ruslan Ermilov
ae82896268
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
Ruslan Ermilov
898f520da8
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 17:49:15 +00:00
Ruslan Ermilov
3b29692060
mdoc(7) police: markup overhaul.
...
Approved by: re
2002-12-04 16:28:45 +00:00
Ruslan Ermilov
304d1f73fe
mdoc(7) police: overhaul.
...
Approved by: re
2002-12-04 15:47:41 +00:00
Peter Grehan
8238b87b55
Minimal libc for PowerPC.
...
Reviewed by: benno
Approved by: re (blanket)
2002-12-04 07:25:14 +00:00
Peter Wemm
a5bf4e71ef
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
Ruslan Ermilov
279062fae1
mdoc(7) police: sweep.
2002-11-29 17:35:09 +00:00
Ruslan Ermilov
92b1f2f7a3
mdoc(7) police: sweep.
2002-11-29 16:42:23 +00:00
Ruslan Ermilov
1798791d24
mdoc(7) police: formatting nits.
...
Approved by: re
2002-11-29 15:57:50 +00:00
Hajimu UMEMOTO
c86d6b6cb7
try SIOCGIFINDEX 1st to be able to use network aliasing.
...
Submitted by: jlemon
Approved by: re
2002-11-28 17:46:40 +00:00
Archie Cobbs
e804e4b013
Describe newly added fields in the KSE and thread mailboxes.
...
Approved by: re
2002-11-22 23:48:38 +00:00
Ruslan Ermilov
c51d717f0c
libc_r wasn't so tied to libc for 22 months.
2002-11-18 09:50:57 +00:00
Marcel Moolenaar
ed7ba3cfc2
This file has reincarnated as src/include/uuid.h with a whole new
...
future ahead of it.
2002-11-18 08:06:39 +00:00
Marcel Moolenaar
c544e42bcf
libc header files are normally in src/include. Therefore, uuid.h has
...
been repo-copied from src/lib/libc/uuid to src/include. Update the
makefiles.
While in src/include/Makefile, reformat and resort INCS. Reverting
the functional change only involves removing uuid.h.
Pompted by: ru
2002-11-18 07:34:56 +00:00
Mike Barcroft
4624c61c2d
Update SYNOPSIS to reflect the standardized header. Add STANDARDS
...
section.
PR: 43270
2002-11-17 16:34:07 +00:00