Commit Graph

4995 Commits

Author SHA1 Message Date
wiz 1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
wiz 4824190751 transmission, not transmition. 2003-01-06 13:17:01 +00:00
wiz 6d8cbf7e43 descriptor with a c. 2003-01-06 12:14:26 +00:00
kristerw a505fc7826 Fix two bugs:
1. snprintf(foo, 0. "XXX") is guaranteed not to write in foo by the
   standard (ISO/IEC 9899 7.19.6.5) but our implementation handles this
   as if the buffer has a size of (size_t)-1.

2. snprintf(NULL, 0, "XXX") leaks memory since cantwrite() allocates
   memory if _bf._base == NULL, and this buffer is never freed
   (PR 16483).
2003-01-05 11:05:47 +00:00
wiz 1388941754 free's -> frees, from PR 19652. 2003-01-04 00:40:20 +00:00
mjl 71b7c0b242 Fix typos (from PR 19650) 2003-01-03 21:41:28 +00:00
wiz e3594b05a2 Drop trailing spaces; sort SEE ALSO. 2003-01-02 09:39:34 +00:00
wiz e2c6da385c Drop trailing spaces. 2003-01-02 09:38:34 +00:00
jschauma 432d470724 Fix typos pointed out by Igor Sobrado in PR misc/19621. 2003-01-02 00:22:29 +00:00
jschauma 708eed1953 Fix typos pointed out by Igor Sobrado in PR misc/19632
rpc(3)             - addres (address)
rpc_reg(3)         - truct (struct, in struct rpc_msg)
rpcb_getaddr(3)    - Copyright: Sun Microsystems (not Microsystem's)
			All Rights Reserved (not Right's)
2003-01-01 22:24:29 +00:00
yamt a7e4d902d4 - handle s==NULL case of wcrtomb.
- add a comment about it.

fix rest of PR 18269 by wurlitzer.
2003-01-01 15:57:12 +00:00
yamt 6a7521b053 - add missing _CEI_TO_EI/_TO_CEI.
- don't use 'cl' before assert it's non NULL.
2003-01-01 15:25:54 +00:00
yamt 13820b1f52 - add missing _CEI_TO_EI/_TO_CEI.
- add missing _STATE_NEEDS_EXPLICIT_INIT checks.
- more comment.
2003-01-01 15:04:01 +00:00
yamt 26baecb89a in _RESTART_BEGIN macro, don't use external variable directly. 2003-01-01 14:45:13 +00:00
yamt 1e35b17a10 when s==0, wctomb should initialize its internal state and return if
encodings have state dependency or not.

a patch provided with PR 18269 by wurlitzer.
modified by me.

fix part of PR 18269.
2003-01-01 14:34:27 +00:00
yamt dec2654840 mbsrtowcs_priv template:
n == 0 is not an error. it's a valid input.
_citrus_NONE_ctype_mbsrtowcs:
	fix a typo that causes SEGV.

while i'm here, make them similar each other.

fix PR 19620.
2003-01-01 13:29:45 +00:00
sommerfeld 2a819818a1 In EINTR description, add a crossreference to sigaction(2).
Put reference to "slow device" back in since filesystem & disk I/O, doesn't get
EINTR while pipes, sockets, ttys, etc., can.
2002-12-30 12:38:59 +00:00
grant 9fdbbfc8ba add EINTR.
From Kevin P. Neal in PR bin/19402.
2002-12-30 05:45:41 +00:00
grant 43fecd8fa4 clarify EINTR.
From Kevin P. Neal in PR misc/19603.
2002-12-30 05:42:18 +00:00
uebayasi 1e0907fb9a Typos in comments. 2002-12-26 07:58:19 +00:00
kleink ac7290d7c2 Add a sysconf(3) knob for {ATEXIT_MAX}. 2002-12-19 23:31:54 +00:00
wiz 09f7a7aee7 new sentence, new line. 2002-12-18 20:17:43 +00:00
wiz 90ad988049 exec lives in section 3, not 2. 2002-12-18 20:13:06 +00:00
wiz 667e9783e6 Fn arguments do not need (empty) braces. 2002-12-18 19:34:53 +00:00
fvdl 50683c0ce9 The fast syscall path clobbers 2 registers. Which is fine for a plain
system call, as long as the stub knows about it. However, it's bad
for sigreturn. Hence, use the old entry point for sigreturn. XXX
2002-12-13 17:43:02 +00:00
christos 14c54c3327 Only allow BSIZE to 1^16 - 1:
- fix off by one error
    - limit the default from the filesystem
2002-12-11 21:20:15 +00:00
jdolecek 5fd22809a5 Add kern.forkfsleep sysctl - set/get time (in miliseconds) for which
process would be forced to sleep in fork() if it hits either global
or user maxproc limit. Default is zero (no forced sleep).
Maximum is 20 seconds.
2002-12-11 19:14:34 +00:00
scw 39a5a9dc76 Add two sysctls: kern.labelsector and kern.labeloffset.
These are of use to userland code which previously depended on the
hard-coded values of LABELSECTOR and LABELOFFSET to figure out the
location of the disklabel for a particular platform.

With the introduction of umbrella ports such as evbarm, evbmips, etc,
the location of the disklabel may vary between kernels for the same
MACHINE. This sysctl will allow userland programs to remain independent
of the particular flavour of MACHINE in such cases.
2002-12-11 12:59:29 +00:00
chris 5e606f5b98 Add a couple of missing THREAD_UNLOCK's, for the error exit path.
No functional change on Mainline, however SA branch probably needs this.
2002-12-09 14:14:59 +00:00
scw 94932a0f44 SH5 asm versions of some low-level libc routines.
Most of these copied from libkern.
2002-12-08 09:48:36 +00:00
jdolecek 015545ffb2 Add description of struct netconfig.
This adresses PR lib/18501 by Benedikt Meurer

While here, finish mdocifying of the manpage. There is no .B, .I, .SB
in mdoc, and some items were missing in output due to that.
2002-12-07 12:21:45 +00:00
christos 9ae526c1f6 Provide O_NOFOLLOW with compatibility with the joneses. 2002-12-06 22:39:54 +00:00
grant 5872a250a6 fix typo in comment. 2002-12-04 13:08:35 +00:00
jmmv 989484665d Replace "Fichero" words with "Archivo" that were missed in the last update.
Approved by skrll.
2002-12-04 10:18:19 +00:00
skrll decf95c8e0 Improve and update from Julio Merino in PR 19202. 2002-12-04 09:39:33 +00:00
lukem b1e79510cf - Migrate fparseln(3) from libutil to libc, where it should have been in
the first place...
- Bump libutil major (to 7.0) and libc minor (to 12.91).
2002-11-30 03:04:44 +00:00
wiz 454f40b755 a <-> an fixes. 2002-11-29 19:19:39 +00:00
lukem 6ca5b5bb68 add strsuftoll(3) and strsuftollx(3) - parse a string for a number
with an optional suffix, product (two numbers separated by `x'), and
provide range checking
2002-11-29 12:58:14 +00:00
thorpej 06edae0ff4 Need <stdlib.h> for abort() prototype. 2002-11-26 21:14:04 +00:00
christos 39f2f97867 lib/19176: Onno van der Linden: execl is called with too few arguments. 2002-11-26 16:52:07 +00:00
fvdl 370e22c9fd Enable ELF32 nlist (as well as ELF64) for x86-64. 2002-11-23 19:28:45 +00:00
chris 0caaced5a9 Add arm asm version of memcmp, basically it's strncmp.S without the
check for *src != 0
2002-11-23 14:26:04 +00:00
chris 35c74e8cc5 Add an asm version of strncmp, based on strcmp.
Add RCSID to strcmp, also use numeric label, rather than named label for
loop.
2002-11-23 03:10:27 +00:00
itohy 6cde54195b Assembly version of string functions.
Originally from SHIMIZU Ryo.
2002-11-20 14:23:54 +00:00
junyoung 30893a62d9 "namespace.h" should precede all included headers other than <sys/cdefs.h>. 2002-11-19 12:58:15 +00:00
junyoung cbf285d8cd Include <sys/types.h> for u_char instead of a local definition of it. 2002-11-19 06:53:17 +00:00
itojun 233424cdc2 make sure to bound string operation by strlcpy
(there are bunch of "strcpy is safe" comments, i think we should change them
to strlcpy as much as possible)
2002-11-17 20:49:33 +00:00
itojun ca7918fced whitespace 2002-11-17 20:48:44 +00:00
itojun b3399f001e KNF 2002-11-17 20:40:59 +00:00
itojun 9134efabd0 use strlcpy where it is more appropriate. 2002-11-17 01:51:24 +00:00