Tim J. Robbins
bd9643b135
Fix computation of the 'n' argument to mbrtowc (through XMBRTOWC) to avoid
...
reading past 'stop' in various places when converting multibyte characters.
Reading too far caused truncation to not be detected when it should have
been, eventually causing regexec() to loop infinitely in with certain
combinations of patterns and strings in multibyte locales.
PR: 74020
MFC after: 4 weeks
2004-11-21 03:14:32 +00:00
Mark Santcroos
15579150a4
Remove ntp_gettime.c which was a wrapper around sysctlbyname(3).
...
This is now a native system call.
Reviewed by: imp, phk, njl, peter
Approved by: njl
2004-11-18 23:59:19 +00:00
Christian S.J. Peron
ca8d7823c6
-Add a note that currently two syntax styles for label element declaration
...
is supported.
-Document the new more preferred syntax
-Add examples for the new syntax
-Add a note that the old syntax will be deprecated in the future.
Reviewed by: rwatson
2004-11-18 15:24:47 +00:00
John Baldwin
d0565c1493
Remove 80386 support from libc.
2004-11-16 21:01:31 +00:00
Yaroslav Tykhiy
49ea9a58a7
Document more fields of struct stat.
...
Note to mdoc(7) police:
The document date has already been touched today.
2004-11-15 14:16:31 +00:00
Yaroslav Tykhiy
502f968bb9
Use .Vt "struct stat" consistently.
2004-11-15 13:58:52 +00:00
Yaroslav Tykhiy
93d7fd123e
Nitpicking on grammar.
2004-11-15 13:55:33 +00:00
Yaroslav Tykhiy
fed4da2585
Improve mdoc(7) markup of the page: add several missing macros,
...
use .Va instead of .Li for struct stat fields.
2004-11-15 13:45:13 +00:00
Yaroslav Tykhiy
b337489271
Document the S_IS*(mode) macros used to test for file types.
...
Bump the document date accordingly.
2004-11-15 13:37:56 +00:00
Bjoern A. Zeeb
6c58990d47
Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
...
If turned on no NIS support and related programs will be built.
Lost parts rediscovered by: Danny Braniss <danny at cs.huji.ac.il>
PR: bin/68303
No objections: des, gshapiro, nectar
Reviewed by: ru
Approved by: rwatson (mentor)
MFC after: 2 weeks
2004-11-13 20:40:32 +00:00
Warner Losh
dfcc91e219
sranddev() is not magic pixie dust. While it gives a good random
...
seed, the random number generator rand(3) still sucks and is unlikely
sufficient for crypto use. Correct what appears to be a cut and paste
error from the srandomdev() man page.
Submitted by: Ben Mesander
2004-11-10 17:25:49 +00:00
Olivier Houchard
31489a9a26
Use the RET macro.
...
For setjmp() and longjmp(), put the signal mask where it's supposed to be,
instead of in the space reserved for fp regs.
2004-11-09 16:49:14 +00:00
Olivier Houchard
904e5ace47
Add a week alias __siglongjmp => siglongjmp.
2004-11-09 16:44:57 +00:00
Olivier Houchard
c67f8f49be
MFKernel: Implement ffs with clz on Xscale.
2004-11-07 16:54:54 +00:00
Peter Wemm
5bc7bd5ff2
When building the custom i386 libraries for use on amd64 kernels, we
...
can't use the i386_set_ldt() family of routines, because they are not
implemented. Instead, use the recently exposed direct access sysarch
routines for setting what %fs and %gs point to.
Use this for the i386 TLS _set_tp() routine, but only when compiling to
run as a 32 bit support binary for amd64 kernels.
2004-11-06 03:28:26 +00:00
Olivier Houchard
5911b52027
Don't define SOFTFLOAT directly in source files, it's now done in the Makefile.
2004-11-05 23:53:54 +00:00
Olivier Houchard
60497154c8
Fix signalcontext and makecontext.
2004-11-05 23:53:02 +00:00
Olivier Houchard
7a06812fe5
Remove getcontext.S, it is not needed.
2004-11-05 23:52:05 +00:00
Olivier Houchard
30f70b49e0
Import a Makefile for arm.
2004-11-05 23:51:24 +00:00
Gleb Smirnoff
240d5a9b1c
Protect against local flooder of /var/run/log. Do not loop forever in
...
syslog(3) if we are a priveleged program (sshd, su, etc.).
- Make syslogd open an additional socket /var/run/logpriv, with 0600
permissions.
- In libc, try to use this socket.
- Do not loop forever if we are using this socket (partial backout of 1.31)
Reviewed by: dwmalone, Andrea Campi <andrea webcom it>
Approved by: julian (mentor)
MFC after: 1 month
2004-11-04 23:09:57 +00:00
Xin LI
d9506686f3
Add glibc-style strftime(3) padding specifiers, namely, -(no padding),
...
_(use space as padding), and 0(zero padding).
These GNU extensions are widely used ones that is worthy for us to
have.
Discussed with: stefanf, roam, -current
Approved by: murray
Prodded by: ports/72722, ports/72723
MFC After: 1 month
2004-11-04 08:34:57 +00:00
Peter Wemm
66e1a311f5
Fix brk(3). The stack was unbalanced when we jumped to cerror. Oops!
...
This causes nasty things like SEGV or a cpu spin when we return.
Submitted by: "James R. Van Artsalen" <james@jrv.org>
2004-10-27 17:11:43 +00:00
Ceri Davies
47c01d89b4
Add necessary whitespace to correct cross references.
...
PR: docs/73193
Submitted by: Jilles Tjoelker <jilles at stack.nl>
2004-10-27 11:26:51 +00:00
Yaroslav Tykhiy
a39fd5061b
Reword the last change a bit, add mdoc(7) markup.
...
Discussed with: bde
2004-10-25 13:35:03 +00:00
Ruslan Ermilov
a35d88931c
For variables that are only checked with defined(), don't provide
...
any fake value.
2004-10-24 15:33:08 +00:00
David E. O'Brien
62f696fcfa
Sync with sys/i386/include/endian.h: use the single instruction 'bswap'.
2004-10-18 17:19:36 +00:00
Yaroslav Tykhiy
017aaf79e1
Since sendfile(2) works on regular files only,
...
which have no negative offsets, "negative" and
"invalid" are equivalent WRT the offset argument.
Suggested by: bde
2004-10-18 10:02:04 +00:00
Andrey A. Chernov
27ecbe8a77
Remove setrunelocale()
2004-10-18 02:06:18 +00:00
Alfred Perlstein
af2e24d782
Document EMSGSIZE return from recvmsg due to insufficient free files
...
when transfering rights (file descriptors.)
2004-10-17 07:13:34 +00:00
Tim J. Robbins
31d330fb2a
Remove the obsolete <rune.h> interface.
2004-10-17 06:51:50 +00:00
Tim J. Robbins
79a3948997
Remove support for the obsolete UTF2 encoding.
2004-10-17 02:29:15 +00:00
Tim J. Robbins
6bc2b4b7db
Bump the libc major version number to 6.
2004-10-17 01:52:48 +00:00
Stefan Farfeleder
df103a1515
Document that the length modifier l is ignored for floating point
...
conversion specifiers (a, A, e, E, f, F, g and G).
2004-10-16 16:00:01 +00:00
Yaroslav Tykhiy
9a0cabd9e4
Explain it is a negative offset that EINVAL may indicate.
...
Now readers won't get an impression that pointing to beyond
the current end of file will result in EINVAL.
MFC after: 1 week
2004-10-16 09:53:35 +00:00
Yaroslav Tykhiy
6def5837f5
Improve mdoc(7) markup.
2004-10-16 09:46:38 +00:00
Yaroslav Tykhiy
fc5cfaae79
Give details on what will happen if the `offset' argument
...
to sendfile(2) falls beyond the end of file.
Touch .Dd.
PR: bin/72649 (in the audit trail)
MFC after: 1 week
2004-10-16 09:39:25 +00:00
David E. O'Brien
a9bdcd3711
Enable building with LIBC_SCCS defined.
...
Bug submitted by: Andrea Campi <andrea+freebsd_current@webcom.it>
2004-10-16 06:32:43 +00:00
David E. O'Brien
a986ef5788
Try to bring some sanity to the SCM ID's.
...
+ spell LIBC_SCCS consistently
+ enable builds with LIBC_SCCS defined to not syntax error
+ minor SCM reformatting to try to have some consistency
2004-10-16 06:11:35 +00:00
Stefan Farfeleder
d749cd6f7c
Remove extra closing parenthesis added in revision 1.4.
...
Noticed by: Andrea Campi
2004-10-14 21:31:42 +00:00
Giorgos Keramidas
4bf94cc1f7
Correctly document the return value of strerror() and strerror_r() and
...
the contents of the returned buffer for unknown error codes.
PR: docs/72578
Submitted by: Jilles Tjoelker <jilles@stack.nl>
MFC after: 3 days
2004-10-12 14:52:52 +00:00
Maxim Konovalov
e2494b93fc
o Backout rev. 1.16, see 1.3 commit log for more info.
...
Requested by: bde
o Remove unneeded sys/types.h and netinet/in.h from the synopsis and
the example.
o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h.
o Mention where AF_* constants defined are.
Educated by: bde
2004-10-09 17:13:58 +00:00
Gleb Smirnoff
2e89951b6f
When send()ing to syslogd return ENOBUFS keep trying until success.
...
This fixes a case, when DoSed syslogd completely loses messages.
PR: bin/72366
Discussed with: dwmalone, millert@OpenBSD.org
Approved by: julian (mentor)
Obtained from: OpenBSD (rev. 1.17, 1.21 by millert)
MFC after: 3 months
2004-10-08 21:15:21 +00:00
Julian Elischer
599e7243d3
Make less wrong for desciptions of signal handling
...
MFC in: 1 week
2004-10-08 20:40:30 +00:00
Joseph Koshy
6febaa3aff
Mutually cross-reference sysexits(3) and err(3). Add text to err(3)
...
recommending that the standard exit codes in sysexits(3) be used.
Reviewed by: ru
2004-10-04 14:04:37 +00:00
Stefan Farfeleder
4c86f66f52
Don't add integers to void pointers.
2004-10-03 15:48:32 +00:00
Stefan Farfeleder
4e8c80e977
Directly include <runetype.h> for _CurrentRuneLocale, <_ctype.h> doesn't
...
include it in all cases.
2004-10-03 15:42:59 +00:00
Maxim Konovalov
796a03f172
Reflect the fact addr2ascii(3) and ascii2addr(3) need sys/socket.h
...
for AF_* constants.
Submitted by: Matthew George
MFC after: 2 weeks
2004-09-29 17:54:30 +00:00
David Schultz
48c8620ae4
Remove __isnanl() to avoid conflicting with the same function in libm.
...
__isnan() and __isnanf() must remain in libc for hysterical raisins.
On the other hand, __isnanl() must live in libm because libm uses it
internally and can't depend on older versions of libc to provide it.
Fortunately, we don't need __isnanl() in both libraries.
Prodded by: ale
PR: 71698
MT5 candidate
2004-09-24 06:33:22 +00:00
Olivier Houchard
9e3a79d517
Arbitraly choose the Variant II for arm.
2004-09-23 23:14:09 +00:00
Olivier Houchard
3d90a3cd91
Make setjmp()/longjmp() use sigprocmask.
2004-09-23 23:13:46 +00:00