Commit Graph

7654 Commits

Author SHA1 Message Date
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
junyoung 4c3981eea3 Save a jmp for memcpy(3). 2002-10-29 07:01:44 +00:00
junyoung 333f362341 memcpy(3) no longer deals with overlap case; it's now forward-only. 2002-10-29 06:53:18 +00:00
junyoung 7f21deb763 Get rid of pointer wraparound check. Ok'ed by TAMURA Kent. 2002-10-29 06:35:17 +00:00
chs cab484e445 move includes to the top so that this builds in libc context too. 2002-10-29 04:40:55 +00:00
petrov ade04d7707 Compile with an ISO C preprocessor. 2002-10-29 00:22:18 +00:00
christos 05e3eaeb34 remove unused variables. 2002-10-27 21:43:35 +00:00
christos a17c7fe4a6 vi mode and memory fixes from david laight. 2002-10-27 21:41:50 +00:00
christos e6ee03013b don't crash in memory shortage conditions. 2002-10-27 20:24:28 +00:00
christos 8572d89c2c PR/17954: SAITOH Masanobu: since we have opost and onlcr set, we don't need
to output \r to go to the end of line; \n is enough. From David Laight.
2002-10-27 20:04:36 +00:00
chs c04f87a03e remove setjmp/longjmp from libkern, they're not used. 2002-10-27 18:45:11 +00:00
chs c5a350ef59 use %g5 instead of %g7 (since we want to use %g7 for the cpu_info pointer
in the kernel).  resync libc and libkern versions of this file.
2002-10-27 18:41:27 +00:00
thorpej a8151a52ca Split isnan() into its own file. 2002-10-26 06:51:32 +00:00
thorpej bc4821e36e * Use the common ieee754_* routines (and add ones we were missing).
* Note that several routines are still missing for hppa.
2002-10-26 06:44:54 +00:00
wiz 68ab92d7a4 Add some _DIAGASSERTS(). Ok'd by christos. 2002-10-25 20:42:02 +00:00
blymn b7e9ee4287 Added documentation for define_key and keyok
Fixed borkage with getpary.
2002-10-23 12:17:45 +00:00
jdolecek 196f994fd8 use .Nx 2.0 consistently in HISTORY section
add .\" NEXTRELEASE tag before the .Nx to make it possible to quickly
  find version references in case this would need to be changed
2002-10-23 09:44:35 +00:00
jdolecek abf732873b update HISTORY - kqueue branch was merged
bump date
2002-10-23 09:35:24 +00:00
jdolecek be222a44cd 'data' field of struct kevent is actually int64_t nowadays 2002-10-23 09:27:46 +00:00
jdolecek d5259d0266 make support for kqueue(2) and kevent(2) unconditional, the kqueue branch
was merged
2002-10-23 09:25:48 +00:00
wiz 64950814bb Sort SEE ALSO. 2002-10-22 12:25:17 +00:00
wiz 7887044679 Whitespace cleanup. 2002-10-22 12:24:03 +00:00
blymn 5aec620ac6 Added the ncurses extensions define_key and keyok. 2002-10-22 12:07:20 +00:00
blymn d5dc62cbd8 Fix lint nits mainly with the len parameter type in hash_more. 2002-10-22 11:37:34 +00:00
wiz 2944b39fd1 No catted pages in CVS. 2002-10-21 14:40:36 +00:00
wiz cd2a9eb1c8 getch, not curses_getch. 2002-10-21 14:35:29 +00:00
wiz cb3d21680a curses_delch, not curses_deletech. 2002-10-21 14:34:20 +00:00
wiz 04944d75d4 curses_scanw, not curses_scan. 2002-10-21 14:33:49 +00:00
wiz a2e19aabe5 Use \-1 instead of -1. 2002-10-21 14:31:36 +00:00
wiz 70161f4c57 No functions returning pointers in this man page. 2002-10-21 14:24:53 +00:00
wiz c3d0728d04 Punctuation fixes. 2002-10-21 14:17:54 +00:00
wiz 4eb1546262 Sort SECTIONS. Punctuation fix. 2002-10-21 14:15:31 +00:00
wiz 7e7bd575a0 Sort SECTIONS. 2002-10-21 14:14:35 +00:00
wiz 8165073f28 Merge two SEE ALSO sections. 2002-10-21 14:12:35 +00:00
wiz 5f48f3f24d Fix typo in Dt. 2002-10-21 14:11:52 +00:00
grant 982c281199 New sentence, new line. 2002-10-21 14:06:17 +00:00
wiz 2d2d45bde2 Drop trailing whitespace. 2002-10-21 13:59:52 +00:00
blymn 23b2be97b5 Added separate man pages for curses functions to provide better
documentation of the curses functions.
2002-10-21 13:55:12 +00:00
blymn 0741e5c935 Added separate man pages for curses functions to provide better
documentation of the curses functions.
2002-10-21 13:55:07 +00:00
scw 37b34d511d As discussed (briefly) on tech-userlevel, fix our quad support to work
correctly on LP64 platforms. This is mostly just s/long/int/ where
appropriate.
2002-10-20 10:15:47 +00:00
thorpej 6ac6a2a09f Open the BPF file descriptor as read-write. Some pcap-using programs
(notably, simulators) expect to be able to send packets on the descriptor,
as well as receive.
2002-10-19 22:03:44 +00:00
provos 6875b78ca7 readlink(2) does not NUL-terminate, use with sizeof (buf-1).
from deraadt@openbsd.org; approved thorpej.
2002-10-19 18:58:32 +00:00
tron 12b88f0269 Fix lint error. 2002-10-17 11:36:39 +00:00
wiz 7b3758d0d4 Use .Dq and .Sq. Fix some typos. 2002-10-17 08:41:48 +00:00
wiz 26f2e93a91 Use .Dq and .Sq. 2002-10-17 08:41:38 +00:00
thorpej c10a556f9b Change basename(3) and dirname(3) to return a pointer to static
storage, rather than modifying their input arguments.  While not
reentrant, this is explcitly allowed by IEEE Std 1003.1-2001 (which
allows either behavior, stating that it is implementation-dependent).

The new semantics are considered less hostile/more useful by most programs
which use basename(3) and/or dirname(3) (several programs in the NetBSD
tree reimplement basename()/dirname() themselves to avoid modification
of the input argument).

This new implementation truncates results to PATH_MAX.  The Std does
not address this in the static storage case.  However since PATH_MAX
is the maximum pathname length in the Std, this should not be a problem
in practice.  Nontheless, it is noted in the BUGS section.

See the basename(3)/dirname(3) regression tests in src/regress/lib/libc.

Inspired by discussion with Niels Provos, related to PR 18647.
2002-10-17 02:06:04 +00:00
jdc 8e5dbb8eb6 Remove duplicate definitions of getyx, getbegyx and getmaxyx. 2002-10-14 16:25:52 +00:00
christos 4a964eaf87 write the vis(3) converted string into the file, not the original one.
Noted by Tim Robbins. Hi luke!
2002-10-13 17:15:53 +00:00