Commit Graph

7701 Commits

Author SHA1 Message Date
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
scw 699eeb228c The temporary asm trampoline code is no longer needed. 2002-12-06 17:06:06 +00:00
scw 098d74e947 Fix the alignment of the MD_SECTION_PROLOGUE. 2002-12-06 17:05:14 +00:00
jdc b055b9db77 Correct cross references. 2002-12-05 19:13:12 +00:00
jdc 0bdde4e185 Add some (useful) debugging to wtouchln(). 2002-12-05 17:23:51 +00:00
jdc ab39ef114a When copying a line from a window, only copy the changed part instead of
the whole line.
This fixes a bug when displaying displaying overlapping windows.
2002-12-05 17:22:13 +00:00
jdc c5f3aee499 Mark lines on new windows unchanged.
Add window to __set_subwin() debug.
2002-12-05 17:14:34 +00:00
jdc d899fbce8b Set LINES and COLS here so that __swflags() sets flags on the initial windows.
Remove no longer useful debug output.
2002-12-05 17:04:25 +00:00
scw 69cddf09e6 Avoid a strict-alias warning. 2002-12-05 16:03:42 +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
jdolecek 66f1feaba3 avoid endless loop in xgets() when line in host access conf file is longer
than BUFSIZ
fixes PR lib/15025 by Trevin Beattie
2002-12-02 22:08:44 +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
pk 3c107f4e1b Don't build normal and profile archives. 2002-11-27 12:06:10 +00:00
blymn 6f2e4ed705 Fix an off by one bug in the scale_menu() function. 2002-11-27 11:53:11 +00:00
thorpej 06edae0ff4 Need <stdlib.h> for abort() prototype. 2002-11-26 21:14:04 +00:00
thorpej f343e6c086 If EXTERNAL_TOOLCHAIN is defined, don't build crtbegin/crtend. 2002-11-26 19:27:09 +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
pk 3fd797268f Add a shared library containing sparc version 8 specific multiply, divide and
remainder functions (i.e. .[u]mul, .[u]div, .[u]rem).
2002-11-26 14:30:53 +00:00
jdc 4da2d0814d Set default colour on windows created after a call to start_color().
(Also noticed by Pooka).
2002-11-25 09:11:26 +00:00
jdc 1cac4d45c4 Don't allow default colour setting to be overwritten in init_pair().
(Also noticed by Pooka).
2002-11-25 09:11:18 +00:00
fvdl 370e22c9fd Enable ELF32 nlist (as well as ELF64) for x86-64. 2002-11-23 19:28:45 +00:00
thorpej df201a40b9 Correct a comment. 2002-11-23 17:23:51 +00:00
thorpej 5df3ea5331 Oops, the _init() and _fini() entry points need to be in the .init
and .fini sections, respectively (same as the {init,fini}_fallthru
stubs).

This is needed on PowerPC, where otherwise the linker would be unhappy
with the relocation records for the fallthru stubs when building a
shared library.
2002-11-23 17:21:22 +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
thorpej bc4956ce1c Fix the _init and _fini function prologues for ABICALLS. Make sure
the functions are aligned to a 32-bit boundary, otherwise some pretty
colorful lossage can result.
2002-11-23 01:44:13 +00:00
thorpej 6a088e4e31 Fix typo. 2002-11-22 16:47:20 +00:00
thorpej 6dba3a7439 Split crtbegin/crtend into crti/crtbegin/crtend/crtn. NetBSD-specific
things like the .note.netbsd.ident section are provided by crti/crtn.
crti/crtn also provide the _init() and _fini() routines.

crtbegin/crtend now only provide support for ctors/dtors.  This paves
the way to using the "crtstuff" provided with GCC (when we upgrade to
GCC 3.3), which provides, among other things, much better C++/Java
exception handling.
2002-11-22 06:44:56 +00:00
christos 4a97685c19 Fix problem with previous patches that broke vi history.
- c_gets() was usually returning a length, but sometimes
  one of the CC_xxx values (which are small +ve integers)!
- fixed c_gets() by putting a ' ' under the cursor.
From David Laight.
2002-11-20 16:50:08 +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
itojun 66578bbe09 use strlcpy. correct mis(non-)use of buflen argument. 2002-11-17 01:50:01 +00:00
itojun d8cb639e16 use strlcpy to ensure string termination 2002-11-16 23:34:30 +00:00
itojun 5d1183fefb use strlcpy/cat 2002-11-16 23:30:32 +00:00
rearnsha 6576c49b48 Add an assembler version of strcmp, based on example code from the ARM
ARM.  As an example of the performance difference that this provides
a Dhrystone score on my Shark goes from 213k to 261k.
2002-11-16 18:27:40 +00:00
christos 1949be0552 yet another check version script. 2002-11-15 16:15:20 +00:00
christos d10066b927 de-lint 2002-11-15 14:33:53 +00:00
christos 39f224af48 PR/18995: David Laight: libedit fixes for posix conformant sh
The posix 'sh' specification defines vi-mode editing quite tightly.
The netbsd libedit code (used by sh to do this) was missing several
features, there were also minor errors in others.

Compare netbsd sh to the definition available from:
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
In particular the following were not supported:
	U - undo all changes to line
	| - goto column
	Y - yank to end of line
	y - yank
	# - comment out current line
	@ - take input from shell alias [1]
	G - goto numbered line in history buffer
	v - edit history line with vi
	_ - append word from last input line
	. - redo last command
Other minor changes have also been made.

[1] This needs the shell to define an appropriate routine to
return the text of the alias.  There is no requirement that
such a function exist.
2002-11-15 14:32:32 +00:00
enami b37113ebab Fix indent in sample code. 2002-11-15 04:38:55 +00:00
itojun 095b03757d pull in changes in http://www.isc.org/products/BIND/patches/bind4910.diff
- better error check on __dn_skipname
- more strict reverse lookup handling
2002-11-14 02:14:43 +00:00
wiz 0883a2f66a Drop trailing whitespace. 2002-11-13 12:16:07 +00:00
itojun d7ec2d5997 fix remote buffer overrun. from openbsd tree (1997). 2002-11-13 00:21:05 +00:00
manu 3a24fac219 Explain how WIF* macros use the status value instead of the pointer to the status value as wait() does. We use the name 'status' both as the argument to wait() and WIF* macros, this is misleading. 2002-11-12 22:48:40 +00:00
jdolecek 5be9e6d9c2 sync with C.msg rev 1.8 2002-11-12 14:52:03 +00:00
skrll 3f05b3f7ab Add extern svc_fd_lock if __REENT and include rpc_internal.h only once. 2002-11-12 14:50:23 +00:00
itohy cbb1f0fb0f MKDYNAMICROOT for a.out 2002-11-12 14:33:48 +00:00
itohy 5b3e8cb3f2 Do not print \0 at the end of error message. 2002-11-12 14:26:10 +00:00
kleink a9e83bfe48 Review oversight: ENOSR: resource -> resources, which is what the
standard says, and which fits the resource allocation failure better.
Also, bump the date.
2002-11-12 10:30:42 +00:00
kleink 792483ae22 Review oversight: ENOSR: resource -> resources, which is what the
standard says, and which fits the resource allocation failure better.
2002-11-12 10:28:27 +00:00
kleink 090efccaaa Sync with C.msg rev. 1.7. 2002-11-12 10:21:07 +00:00
jdolecek baa85d9ea0 add translation for the new error messages added in rev. 1.7 of C.msg 2002-11-12 09:25:26 +00:00
skrll b207990164 Add the missing errno symbols that are defined in IEEE Std 1003.1-2001.
The language message files need updating.

Change reviewed and OK'd by Klaus Klein.
2002-11-12 08:20:02 +00:00
thorpej f53bc0b607 Fix signed/unsigned comparison warnings. 2002-11-12 00:01:21 +00:00
thorpej aa27d116a6 Avoid strict alias warning. 2002-11-12 00:00:23 +00:00
thorpej 3d397e0087 Fix signed/unsigned comparison warnings. 2002-11-11 23:56:46 +00:00
thorpej 4ba7375da3 Fix signed/unsigned comparison warnings, and shadow warnings. 2002-11-11 23:43:03 +00:00
thorpej ff64706c9f Fix signed/unsigned comparison warnings. 2002-11-11 22:53:19 +00:00
thorpej 08a7b34528 Fix signed/unsigned comparison warnings. 2002-11-11 22:15:42 +00:00
thorpej d6e3c04143 Fix signed/unsigned comparison warnings. 2002-11-11 20:34:10 +00:00
thorpej 0e69571cc2 Avoid strict alias warning. 2002-11-11 20:24:38 +00:00
thorpej e5538ceafb Fix signed/unsigned comparison warnings. 2002-11-11 20:05:53 +00:00
thorpej de792f2457 Fix signed/unsigned comparison warnings. 2002-11-11 19:49:00 +00:00
thorpej 4747ad6ea7 Fix signed/unsigned comparison warnings. 2002-11-11 19:25:38 +00:00
thorpej 1289029f10 Fix signed/unsigned comparison warnings. 2002-11-11 17:56:11 +00:00
simonb 0b3c8ee193 Document that the *printf() functions can return a negative value under
output error conditions.
2002-11-11 17:26:19 +00:00
thorpej 045cceecae Fix signed/unsigned comparison warnings. 2002-11-11 17:13:59 +00:00
thorpej 585ad39ac1 Fix signed/unsigned comparison warnings. Catch error conditions
from snprintf().
2002-11-11 17:10:11 +00:00
thorpej fd128e9fb6 Fix signed/unsigned comparison warnings. 2002-11-11 16:50:34 +00:00
thorpej 37dfab8a5b Fix signed/unsigned comparison warnings. 2002-11-11 06:24:08 +00:00
thorpej 20b98814a9 Fix signed/unsigned comparison warnings. 2002-11-11 01:12:04 +00:00
thorpej 37843de109 Fix signed/unsigned comparison warnings. 2002-11-11 01:02:30 +00:00
thorpej 358b1841ab Make sure there is a newline at the end of CPP input. 2002-11-11 00:54:57 +00:00
thorpej 303696ca38 Fix signed/unsigned comparison warnings. 2002-11-11 00:44:43 +00:00
kleink ae475f81fe Fix typo UCT -> UTC; from Christian Biere in PR lib/19007. 2002-11-10 19:51:47 +00:00
thorpej 7f74df5ef3 ABICALLS -> __ABICALLS__ 2002-11-10 18:10:25 +00:00
enami b7ac697dae s/than than/than/. 2002-11-08 02:05:16 +00:00
fvdl d92a1c3d78 Bump minor version, rpc_control function added. 2002-11-08 00:13:51 +00:00
fvdl 86dddb97cd Add rpc_control. 2002-11-08 00:13:29 +00:00
fvdl 79d5b270d9 * Adapt include files for rpc_com.h/rpc_internal.h split.
* Add rpc_control to svc.c
* Implement non-blocking connections.
2002-11-08 00:13:07 +00:00
wiz 8074ecd2c3 New sentence, new line (hi manu!). Drop trailing whitespace. 2002-11-07 12:11:00 +00:00
manu 9a4dfe85fa Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.

This feature is designed so that it is esay to attach the process using gdb
before it has done anything.

It works also with sproc, kthread_create, clone...
2002-11-07 00:22:28 +00:00
thorpej baaf41b59f Restructure the Duff's device in kerberos4_cksum() to avoid
a bogus unreachable-code warning from GCC 3.x.
2002-11-05 22:34:50 +00:00
thorpej 6596b29802 t4 -> ta0 2002-11-05 00:05:15 +00:00
jdolecek 3d73192560 struct kevent's udata is actually intptr_t 2002-11-04 22:14:46 +00:00
christos 905b699ab7 support for % command [matching parens/brackets/braces] on vi modes.
From David Laight, thanks!
2002-10-31 02:01:46 +00:00