Commit Graph

8514 Commits

Author SHA1 Message Date
christos 40e148ef6b PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation. 2003-06-23 21:32:33 +00:00
uwe b92f152573 First bits of SH3 support. Only _context_u.S is implemented (passess
cu[1-6] tests), the pthread_switch.S is stubbed out for now.

Code posted by Christian Groessler (cpg at aladdin dot de) to port-sh3.
2003-06-23 19:34:43 +00:00
christos d695477b73 PR/21963: MAEKAWA Masahide: Don't free(dirp) before its last use. 2003-06-23 14:35:38 +00:00
uwe 439470c9f0 Registers _REG_Ri defines are numbered backwards, so when we fill
r4-r7 with arguments, use the correct *minus* i to compute the i-th
register index.
2003-06-23 10:45:20 +00:00
jdc 11f267a000 Add noqiflush() and qiflush()
Fixes PR lib/20037.
2003-06-20 06:58:53 +00:00
jdc c521d02fce Add keyname().
Fixes PR lib/20033.
Allow SMALL to be defined, to reduce the size of the library.
2003-06-20 06:56:29 +00:00
christos 96759472a4 provide a definition for __attribute__ 2003-06-19 16:19:42 +00:00
christos 9b8791db6c From michael@moria.de:
Fix realloc case where we could be running out of space if too many matches.
2003-06-19 16:04:57 +00:00
christos 839ca00b3c From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
martin f546abe798 Catch up with Nathan's changes to other archs. 2003-06-17 23:18:48 +00:00
nathanw 876d7e7eec Dodge a potential race condition in pthread__debuglog_printf(). It's
still possible for multiple threads to write into the same space, but
they shouldn't be able to corrupt the write pointer in the process.

Also, check for pointer-lapping a bit more carefully in the wrap
vs. non-wrap case.
2003-06-16 21:24:48 +00:00
martin aba86b525b Catch up with changes Nathan did to other archs. 2003-06-15 17:11:36 +00:00
scw 7d221cb560 Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix. 2003-06-13 08:07:03 +00:00
scw 04f197eae9 Apply Nathan's switch-away fix and previous save-PT_UC from new stack fix.
Compile-tested only.
2003-06-13 07:45:17 +00:00
itojun 3abc10868f add $NetBSD$ 2003-06-13 04:09:18 +00:00
lukem 34795551b8 add const qualifiers to match md{2,4,5}.h 2003-06-13 01:28:41 +00:00
nathanw 4bd45b7b3b Oops, that's switch_return_point, not locked_return_point. The perils
of cut-and-paste.
2003-06-12 23:19:27 +00:00
provos 0275e3fef4 enable building the library and the regression test 2003-06-12 23:18:07 +00:00
provos f67349cc61 fix warnings 2003-06-12 23:07:58 +00:00
nathanw aa6f5de228 STACKSPACE of 16 is too small, given the use of CALLFRAME_SIZ;
increase to match.
2003-06-12 23:01:17 +00:00
nathanw eb6ba6fbef Apply switch-away fix and previous save-PT_UC from new stack fix. 2003-06-12 23:00:28 +00:00
provos 13993283c2 import of libevent; an event abstraction library that supports kqueue and
poll on NetBSD.
2003-06-12 22:54:25 +00:00
fvdl 1a31b8db4d Apply Nathan's switch-away fix. 2003-06-12 22:03:18 +00:00
nathanw b43f1c7405 In pthread__resolve_locks(), change the conditions for removing a normal
thread from the continuation chain: Not only must it have released all
spinlocks, but it must have signaled completion by finishing pthread__switch
or by having stored into pt_switchto.

Together with the previous pthread_switch.S changes, this fixes a couple of
crasehes caused by race conditions in the examination and use of pt_next,
and by switching to empty pt_switchtouc's.
2003-06-12 21:49:42 +00:00
nathanw f866ba061d Two fixes:
* In switch-away cases, write PT_SWITCHTO last (after PT_SWITCHTOUC), so
   that pthread__resolve_locks() doesn't see an empty SWITCHTOUC value. This
   also permits pthread__resolve_locks() to use the presence of PT_SWITCHTO
   as a sign that the thread has done all of its necessary chain work.

 * Make the return-point of pthread__switch global and visible, so that its
   address can be compared to the PC of a thread, again as a sign that its
   chain-work is done.

(other architectures in progress, after they get the *previous* asm fix...)
2003-06-12 21:46:03 +00:00
nathanw edc79413b1 Don't need to set the MSR field here; _INITCONTEXT_U_MD() takes care
of that where necessary.
2003-06-12 19:09:45 +00:00
wiz a484727e05 Adapt to current sys/socket.h. Noted by MAEKAWA Masahide in PR 21849. 2003-06-11 07:11:09 +00:00
jdc 44d2f865a0 Mark all lines on new pads as dirty. This ensures that we draw blank
(untouched) lines when the pad is refreshed.
2003-06-09 06:58:11 +00:00
thorpej e714d726a6 $NetBSD$, not $Header$. 2003-06-08 06:44:28 +00:00
yamt 795dfe8877 - change default message size for udp to UDPMSGSIZE(8800) from 8192.
(to be compatible with pre-TIRPC)
- bump message size limit to 256k.

from FreeBSD's rev.1.3.
2003-06-07 07:41:41 +00:00
nathanw 877f89857f Tiny bit of infrastructure for ABI-supported thread-ID storage. 2003-06-06 21:06:07 +00:00
nathanw 1809ee5c2c Fix typo in comment. 2003-06-06 19:35:03 +00:00
wiz aeeb4fe3d0 Grammar, spelling, markup fixes from jmc@openbsd. 2003-06-06 13:42:49 +00:00
wiz 4ed8aa82ed Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. From jmc@openbsd. 2003-06-06 13:33:17 +00:00
itojun 7a5741651c - sync up MLD declaration with RFC3542 (s/MLD6/MLD/)
- routing header declaration with RFC3542
  (note: sizeof(ip6_rthdr0) has changed!)
  also, sync up with RFC2460 routing header definition (no "strict" source
  routing mode any more)

part of advanced API update (RFC2292 -> 3542).
2003-06-06 08:13:43 +00:00
itojun e72a5afeb3 KNF. 2003-06-06 06:43:18 +00:00
yamt 675f9cd51a add a missing release_fd_lock. 2003-06-06 00:48:45 +00:00
matt 362ac6119e Only return CC_EOF if ^D (VEOF) was the only thing on the line. Otherwise
beep and don't do anything else.  This mimics the behavor of ^D outside in
normal terminal mode.  (^D in vi scrolls forwards and as such isn't
appropriate to emulation)
2003-06-04 20:14:05 +00:00
nathanw 33314cffa1 Make infrastructure for man pages. 2003-06-03 21:34:00 +00:00
nathanw 5581819638 Man pages for libpthread, adapted from FreeBSD by Stephen Degler. 2003-06-03 21:33:06 +00:00
nathanw 380bb3a8b0 Man pages for libpthread, written by Stephen Degler. 2003-06-03 21:31:36 +00:00
uwe 0bbb587407 Add atoll(3) to libnbcompat. We need it when building target's gcc
for a 64-bit target on a 32-bit host.

NB: There seems to be a bug in either gcc itself or the way we import
it, b/c the incorrect #define HAVE_ATOLL is picked from (e.g. for
sparc64) gnu/usr.bin/gcc/arch/sparc64/auto-host.h - so when gen*
auxilary (host) programs are built in gnu/usr.bin/gcc/backend, they
incorrectly pick-up target's HAVE_ATOLL.

For now providing atoll(3) in libnbcompat is a simple and sufficient
workaround.
2003-06-03 03:16:48 +00:00
christos dc1665b80b Add pthread_attr_getstack{,size,addr} needed by jdk 2003-06-02 16:59:26 +00:00
thorpej c2048dc2a3 Don't need sysident.h here anymore; crti provides it. 2003-05-31 19:41:24 +00:00
salo 9a8fb24f43 Add ETIME translation. 2003-05-30 23:24:23 +00:00
wiz 26c0f55f7f Add translation for 92 (ETIME). 2003-05-30 23:10:42 +00:00
jdolecek 0208373f7d add ETIME translation 2003-05-30 19:35:34 +00:00
jdolecek c01f677379 ETIME is #92, not #91 2003-05-30 19:33:58 +00:00
kleink 0c9499738e Add LC_MESSAGES to the listing of categories; fixes PR misc/19829 from
FUKAUMI Naoki.
2003-05-30 12:11:48 +00:00
kleink 8929f86e50 Delint a use of uintptr_t; not strictly necessary with -current lint(1),
but consistent with makecontext.c.
2003-05-30 07:23:25 +00:00
simonb dbf00ebd13 Use the date I committed this, not the date I originally came up with
the changes.
2003-05-30 02:22:23 +00:00
simonb 20a5af5edd Allow either parameter to the getbsize(3) function to be a NULL, in
which case it is ignored.
2003-05-30 00:12:09 +00:00
nathanw 4ee0df68f2 Allocate and initialize dirp->dd_lock before calling telldir(), which
will try to lock it.

Addresses PR lib/21712.
2003-05-29 18:29:59 +00:00
christos 25cb0b1e94 de-lint pointer casts. 2003-05-29 18:15:25 +00:00
kleink 4f95ecd71a KNF example: NULL vs. 0, space after switch. 2003-05-29 17:48:49 +00:00
kleink 45586dc2f9 Need <string.h> for memcpy(). 2003-05-28 21:08:23 +00:00
kleink 9a398ec067 Add restrict qualifiers to previous. 2003-05-28 20:28:37 +00:00
christos fa46624bca add readdir_r alias 2003-05-28 20:22:55 +00:00
dsl 386a8e5059 Don't restartwin() if it isn't stopped.
Ensures we don't save the modified tty flags (as well as doing all the
initialisation twice) if the application (eg systat) calls curses functions
in its own restart code.
2003-05-28 20:19:42 +00:00
christos 1e1359c7d6 agent 99 2003-05-28 20:06:22 +00:00
christos 9af7135771 add mutex locking for directories and readdir_r(3). Influenced by FreeBSD. 2003-05-28 20:03:37 +00:00
christos c8042cb209 no need to declare __isthreaded. 2003-05-28 19:57:22 +00:00
kleink 9d85c4a5f8 Add ETIME, per POSIX-2001. 2003-05-27 22:37:33 +00:00
christos 143f5a277a pass lint:
1. add new pthread__abort() and change pthread_assert(0) to it.
2. put constcond in the right place (in the macro).
3. no space after pthread__assert macro.
2003-05-27 15:24:24 +00:00
christos 4e29fa8276 add missing notreached lint comment. 2003-05-27 15:22:56 +00:00
thorpej 119837ff52 Fix handing of -ve hexadecimal numbers in the %i format. Fixes
PR lib/21691.  Patch from Simon Burge.
2003-05-27 14:32:29 +00:00
nathanw 5faa7f5bef * Recycle upcall stacks as soon as possible rather than waiting to
accumulate half of the total number. There are too many ways for
  the SA subsystem to deadlock waiting for stacks that userland has no
  reason to recycle.

* Consolidate switchto handling in pthread_resolve_locks().

* Add code to re-chain the preempting parents of switchtos.

* Tweak debuglog output in a couple of cases.
2003-05-26 19:41:03 +00:00
itojun 74a8711692 protect from nasty PTR records which could be abused to workaround access
control:
	1.1.1.10.in-addr.arpa.	IN PTR	2.3.4.5
2003-05-26 10:05:07 +00:00
lha 47cfb027a2 install more man pages 2003-05-26 09:22:29 +00:00
lha 4a1a2b48c6 install more man pages 2003-05-26 01:11:55 +00:00
pooka 13ae509ab9 lint should pass "empty translation unit" now 2003-05-25 21:51:14 +00:00
pooka e26029d0eb versions for file 4.03 2003-05-25 21:49:55 +00:00
wiz a2c49e51e1 Fix typo reported by Douwe Kiela in PR 21677. 2003-05-25 17:19:42 +00:00
petrov 09ec250b4c Declare global register. 2003-05-23 18:20:14 +00:00
simonb 5d5afc14d8 Match END label with LEAF label. 2003-05-23 06:36:10 +00:00
wiz c66093c273 Make i an int to please lint and remove a cast. 2003-05-22 16:09:09 +00:00
wiz e6e9b32c33 Grammar fix; no functions returnint pointers here, so remove section
about those functions from RETURN VALUES section.
2003-05-22 09:25:52 +00:00
jdc 8b94a64a5a Remove erroneouly added file. 2003-05-21 21:24:36 +00:00
jdc cbce99002b Cross reference curses_addchstr.3. 2003-05-21 21:22:15 +00:00
jdc 8b782b08d1 Increment libcurses minor for addition of addchstr() functions. 2003-05-21 21:21:14 +00:00
jdc 57b809b169 Add addchstr() family of functions.
Based on mail from Douwe Kiela.
Fixes PR lib/21285 by Thomas Klausner.
2003-05-21 21:19:52 +00:00
jdc 416748f2db Add mvw* functions. 2003-05-21 20:33:21 +00:00
kristerw c87c28c18c Include string.h for strcmp. 2003-05-21 20:29:51 +00:00
wiz 68221b9ec6 Bump date for last. 2003-05-21 06:57:08 +00:00
jdc ad216762c8 Add missing *printw manual page links.
Patch provided in PR lib/21446 by Douwe Kiela.
2003-05-21 06:46:51 +00:00
jdc 8aec7a6456 Sort addbytes(). 2003-05-21 06:16:16 +00:00
jdc a365e46b92 Mention _CURSES_USE_MACROS. 2003-05-21 06:15:09 +00:00
wiz fc7bf2b10c Nit fixes from jmc@openbsd. 2003-05-20 10:15:16 +00:00
jdc 2e4b986118 Add missing manual page links. 2003-05-20 06:54:44 +00:00
fvdl b2a54b691e Back out previous for now. I already suspected part of it was wrong,
and there has been one report of problems in the mean time.
2003-05-19 09:26:15 +00:00
christos 56a0a03629 From Martin Blapp mb at imp dot ch, should fix PR/20768
Remove the special treatment off non-blocking mode in
xdrrec_eof(). This change broke seriously reading serialized
xdr-records. A end of a request could sometimes not
be recognized and the socket got closed too early.

Initialize in_reclen and in_received in a second case
if we get more outstanding records.
2003-05-18 23:59:28 +00:00
dsl 1473d232c3 Don't do __stopwin() if it is already stopped.
Allows error messages from programs like sysinst() to be seen.
(There is an explicit stopwin() before the error message is output,
and a second in the atexit() called cleanup() routine)
2003-05-18 10:02:07 +00:00
thorpej 5a467fa72d Add isinfl() and isnanl(). 2003-05-17 20:43:13 +00:00
thorpej 8969ba6ff5 Build _isinfl() and _isnanl(). 2003-05-17 15:05:52 +00:00
thorpej f9345ff71e Add _isinfl() and _isnanl() routines, currently for internal use only. 2003-05-17 14:51:24 +00:00
itojun 6a95da7f05 bound copies 2003-05-17 01:36:03 +00:00
scw 5bd6b99940 Both pthread__lock_ras_start and pthread__lock_ras_end need to be
explicitly declared global in the asm() statements for the benefit of
SH5 binutils. Otherwise, the assembler/linker (I haven't figured out
which) botches the SHmedia bit when generating GOT references for
these symbols in the shared version of the library.

Ok'd by Nathan.
2003-05-16 23:37:47 +00:00
scw 644aebe258 Duh. s/PIC_PROLOGUE/PIC_EPILOGUE/ 2003-05-16 22:40:56 +00:00
nathanw baa073280b Separately report unlocking an unlocked mutex and unlocking a mutex
owned by another thread.
2003-05-16 21:28:26 +00:00
wiz b976c55907 Consistently spell "crash dump" as two separate words. From jmc@openbsd. 2003-05-16 10:24:55 +00:00
lha f66ab28ab4 bump minors appropriately 2003-05-15 20:58:43 +00:00
lha 98326d86aa add files for heimdal 0.6 2003-05-15 20:51:01 +00:00
wiz 76907a433e Fix typo in comment. 2003-05-15 19:16:37 +00:00
nathanw a06836c083 Remove an unnecessary test in pthread_getspecific(). 2003-05-15 19:13:24 +00:00
jmc 84b2ae9f5b Typo police 2003-05-15 16:46:55 +00:00
itojun da3884cbf4 latest copyright notice (more loose). noted by wiz 2003-05-15 15:02:52 +00:00
kleink affdf0b300 Change conformance reference to 1003.1-2001; the reference to 1003.1g is
retained in HISTORY.  Spotted by Thomas Klausner.
2003-05-15 10:16:36 +00:00
wiz ccc85581a5 Point to IPC tutorials in /usr/share/doc/psd, update names, and add authors.
Bump date.
Suggested by kleink.
2003-05-15 10:13:53 +00:00
wiz 14cddbf770 Point to IPC tutorials in /usr/share/doc/psd, update names, and add authors.
Bump date.
Suggested by kleink.
2003-05-15 09:52:08 +00:00
wiz d43e332f1e setup -> set up. 2003-05-14 12:11:03 +00:00
wiz f30ce359ce setup -> set up, from jmc@openbsd. 2003-05-14 07:24:21 +00:00
yamt 8f781c36ef fix a simple bug that prevents svc_tli_create to bind to the address
specified by caller.
2003-05-13 11:57:21 +00:00
wiz 98a71c5969 Bump date for last; remove end-of-line spaces. 2003-05-13 10:03:43 +00:00
nathanw 59520b66cd Fix a comment delimeter 2003-05-12 20:10:22 +00:00
kleink db907cb577 Rename ieee754_function.c to function_ieee754.c, following the convention
used in exec_format.c, loadfile_format.c, subsys_machdep.c etc.
Per discussion with Christos.
2003-05-12 15:15:11 +00:00
kleink 36d937f5d8 Bump to libc.so.12.98, due to addition of {h,n}to{n,h}{l,s}() on PowerPC. 2003-05-12 12:38:31 +00:00
kleink 426643832d Build {h,n}to{n,h}{l,s}() into object code; addresses PR port-macppc/21541
from Tsuyoshi MOMOSE.
2003-05-12 09:32:10 +00:00
christos 2f0d746849 make this compile again. 2003-05-11 20:56:51 +00:00
kleink a6eebba1f8 Rather than printing the definition of struct sigaction literally,
change the description to name its members.  This has the effect
of discouraging (non-portable) structure assignments of struct
sigaction, as well as making life easier when sa_sigaction is added.
2003-05-11 19:22:18 +00:00
kleink 88841ddec8 As prompted by Thomas Klausner, add a sentence on sigset_t and sigsetops()
to the introduction.
2003-05-11 18:04:42 +00:00
wiz a363cdabc4 Drop trailing space. 2003-05-11 16:21:18 +00:00
kleink 861db62607 Oops, typo in previous. 2003-05-11 16:16:41 +00:00
kleink 8d06f60601 As prompted by Thomas Klausner, add a RETURN VALUES section. 2003-05-11 16:15:07 +00:00
ragge 2bb5ce73f8 Update after recent changes. 2003-05-11 15:40:03 +00:00
ragge f08d6eb0c9 Make the kvm routines use /dev/ksyms to get the kernel namelist.
If it fails, use /netbsd instead.
2003-05-11 13:37:34 +00:00
ragge f28d8c841a Teach nlist to retrieve symbols from /dev/ksyms (using the quick-search
ioctl's).
2003-05-11 12:47:42 +00:00
wiz 59b599e287 Grammar improvement from jmc@openbsd. 2003-05-10 12:30:23 +00:00
wiz 7a7ee80bcc Misc fixes from jmc@openbsd. 2003-05-10 12:24:54 +00:00
wiz 8e516dc8e7 Misc. fixes from jmc@openbsd. 2003-05-10 12:14:26 +00:00
uebayasi 385286938f Typo; from Onno van der Linden <o dot vd dot linden at quicknet dot nl>. 2003-05-10 08:51:54 +00:00
lukem 4fc1a075d0 O_NOFOLLOW is another non-standard extension 2003-05-08 23:20:38 +00:00
petrov cc36666171 No need in default label if default case is not processed. 2003-05-08 20:42:39 +00:00
yamt c6f761afb7 NFSv3 definitions from FreeBSD. 2003-05-08 13:32:00 +00:00
christos a99e10df08 Use ${HOST_SH} 2003-05-08 13:23:14 +00:00
christos 8ad6909bf9 Add a missing dependency (John Gordon) 2003-05-08 13:22:48 +00:00
christos 23e52df103 add a missing dependency (John Gordon) 2003-05-08 13:22:05 +00:00
christos 3a7857f16d Use ${HOST_SH} 2003-05-08 13:20:44 +00:00
christos 9e0fed3d86 USE ${HOST_SH} 2003-05-08 13:19:44 +00:00
uebayasi 80e148b7e3 Make libmagic known as a system library, and install manual page links
of the libmagic functions.

Submitted by Hiroshi Ura <ura at hiru dot aoba dot yokohama dot jp> in
PR21496.


Reviewed By:	wiz
2003-05-08 07:14:11 +00:00
itojun ece2a37389 fill ai_canonname field for numeric hostname, by the given hostname.
folows new recommendation in RFC3493
2003-05-08 05:30:53 +00:00
yamt 4ae20ba3f3 mount v3 protocol definition. from FreeBSD. 2003-05-07 13:48:47 +00:00
wiz 62b56b79e3 s/busses/buses/ 2003-05-07 07:14:15 +00:00
petrov cf5b7785eb Add missing include and copyright. 2003-05-07 01:21:13 +00:00
wiz 45ef2fb124 s/>/\*[Gt]/ 2003-05-06 10:10:41 +00:00
lukem 6800f4a2c3 Clarify what strncpy() does when the length of `src' is `len'.
Noted by Christoph Kaegi on tech-userlevel@.
Add missing "function".
2003-05-06 09:58:25 +00:00
rearnsha 033db35cb2 GCC-3 requires a libcall to support testing for unordered. 2003-05-06 08:58:19 +00:00
wiz fade7b55f5 New sentence, new line. 2003-05-06 08:28:38 +00:00
agc 4acc601512 Minor grammatical correction. 2003-05-06 07:38:19 +00:00
bjh21 e3f0868ef4 ANSIfy, since I'm in the area. 2003-05-05 21:35:40 +00:00
bjh21 306b20c934 Handle struct in_addr with proper respect, rather than assuming we can
make one by casting in in_addr_t *.  This has the pleasant side-effect
of making the machine code shorter, at least on ARM.
2003-05-05 20:12:23 +00:00
bjh21 e6ad10a0b6 Remove some lint-pacification that's not necessary now that the signature of
inet_makeaddr() is correct.
2003-05-05 20:04:04 +00:00
bjh21 b8df43c967 Delint last change, reducing size of several variables. 2003-05-05 19:54:59 +00:00
bjh21 2c2e44766b Delint last change (change a variable from unsigned long to in_addr_t).
Remove "register" at the same time.
2003-05-05 19:53:29 +00:00
wiz fe160e31c2 No leading zero in Dd argument. 2003-05-05 17:16:20 +00:00
bjh21 83939562ef Document signature changes to inet_addr() and friends. 2003-05-05 14:04:50 +00:00
bjh21 77de1304d5 Fix the signatures of inet_addr(), inet_lnaof(), inet_makeaddr(), inet_netof(),
and inet_network() to match XNS and (where applicable) POSIX.  This is largely
just the replacement of unsigned long with in_addr_t.

This constitutes a small ABI change on sh5, but scw (sh5 portmaster) thinks
that both the users of that port will be able to cope.  kleink claims the
change is ABI-neutral on other LP64 ports, and it's a no-op on ILP32 ports.
Hence, I'm doing it this way and avoiding the whole __RENAME dance.
2003-05-05 13:56:13 +00:00
wiz 737de9f803 Misc. fixes from jmc@openbsd. 2003-05-03 19:43:00 +00:00
wiz 3ca9503cd5 Misc. fixes from jmc@openbsd. 2003-05-03 19:11:31 +00:00
gmcgarry 13fbd917ba section 2, not 3. 2003-05-02 09:11:52 +00:00
gmcgarry 1f3b9df049 Clarify output. From PR#14290. 2003-05-02 08:26:46 +00:00
martin cf437d291f Make _Qp_qtoui return the right value for inputs that do not fit into
an int value, but are valid unsigned ints. This should fix PR 21414.
The same problem exists for _Qp_qtoux, but there is no similar trivial
solution to that (I could think of).
Pointed out by David Laight.
2003-05-01 21:24:13 +00:00
wiz b12c87185e a -> an from jmc@openbsd. Add a comma while here. 2003-05-01 14:03:39 +00:00
wiz 38107bb637 Grammar and mdoc fixes from jmc@openbsd. 2003-05-01 13:58:03 +00:00
wiz f0679cbc4d Restore \fR that got lost in last. 2003-05-01 09:36:49 +00:00
gmcgarry c46e7f6852 Mention EINVAL. From PR#17921. 2003-05-01 08:45:20 +00:00
gmcgarry f72c56c419 Remove reference to non-existent infnan(3) function. 2003-05-01 08:01:52 +00:00
itojun dc5aee069b english grammer. by Jason McIntyre via kame 2003-04-30 06:30:48 +00:00
scw c7dadf502a The second parameter of strchr() is an integer, not a pointer.
So use '\0' instead of NULL.
2003-04-29 14:56:05 +00:00
scw 1fe87ac688 The fourth parameter of _citrus_ctype_mbrtowc() is a size_t, not a
pointer type. So use 0 instead of NULL.
2003-04-29 14:53:12 +00:00
wiz 48ceee3140 Bump date for last. 2003-04-29 12:39:20 +00:00
bjh21 e94b259c46 <arpa/inet.h> no longer has any prerequisite headers, so don't pretend
it does.
2003-04-29 12:20:29 +00:00
nathanw ff14fbf244 Move call to pthread__alarm_init() from pthread_init() (called at load
time) to pthread__start() (called on the first call of
pthread_create()), so that there's no opportunity for a fork() to
clear the per-process timer.

Problem pointed out by a test program from Mihai CHELARU on
current-users.
2003-04-28 17:46:30 +00:00
thorpej 69c5577b0b Make the des.h -> openssl/des.h symlink relative. 2003-04-26 00:53:17 +00:00
wiz 287057db85 Bump date for last. 2003-04-24 12:19:06 +00:00
wiz aa1781ae4b Drop trailing space. 2003-04-24 12:17:49 +00:00
nathanw 3f6de8d84a Use pthread__error() instead of pthread__abort(). 2003-04-23 19:36:12 +00:00
nathanw df2772713e Introduce a pthread__error() macro, for detected application errors as
opposed to internal errors. The setting of the PTHREAD_ERRORMODE
environment variable determines the runtime behavior. Valid settings
are "ignore", "abort", and "print". The default is currently "abort".
2003-04-23 19:35:47 +00:00
simonb 6312e6abc3 Add a missing full stop, join to short lines. 2003-04-23 07:33:36 +00:00
elric a41d8cfaf3 Turn on the building and installing of libbsdmalloc. 2003-04-22 20:35:17 +00:00
junyoung 48e9f35fd3 Use unsigned char rather than u_char. 2003-04-22 16:12:18 +00:00
tron 82451d010e Revert last commit now that "bsd.lib.mk" is fixed. 2003-04-22 13:17:54 +00:00
tron 37ae1ea947 Define "LIB" to get "bsd.lib.mk" working again. 2003-04-22 12:07:02 +00:00
elric 645dee56e4 Adding libbsdmalloc which is Chris Kingsley's `power of two bucket' malloc.
Suggested by christos.
2003-04-21 22:21:06 +00:00
christos 63c4aa480d PR/7885: Kip Rugger: ttylock(3) ignores flags and locker parameters 2003-04-21 00:39:40 +00:00
christos 3630d7f233 PR/7572: John F. Woods: document EINVAL caused by bogus flags in struct
sigaction.
2003-04-20 23:20:52 +00:00
christos f09dab76ee PR/7004: Jonathan Stone: Document that sendto(2) can fail with EISCONN 2003-04-20 22:53:01 +00:00
christos e8c0c9df50 PR/6156: Stefan Grefen: nlist returns bogus value if symbol is multiply
defined in object
2003-04-20 21:08:11 +00:00
christos 5f8d1cd0cc PR/5996: ITOH Yasufumi: lib/libc/db/hash/* writes memory garbage to db file
Fixed by changing malloc's to calloc's where needed.
2003-04-20 20:41:14 +00:00
david fbd076d8ce Grammar. 2003-04-20 17:40:45 +00:00
christos 622e897fdb PR/5265: John Buller: ttyflags does not report syntax errors or unknown
tty options in /etc/ttys
Make this use fparseln and use warn and warnx to report problems.
2003-04-20 03:03:18 +00:00
christos a5b5f849f2 add ident. 2003-04-19 21:56:49 +00:00
blymn a54cbbdb50 Remove the resetting of top_row, cur_item and the pattern buffer from
post_menu so menu state is kept across upost/post actions.  This addresses
PR #21218.
2003-04-19 12:52:39 +00:00
nathanw b7ac97b866 More agressive assertions. Change a number of detected conditions, which
officially have undefined behavior, from returning an error code to raising
an assertion failure.
Also, don't bother to explicitly test for (illegal) null pointers and return
an error; they'll bomb out soon enough.
2003-04-18 21:36:38 +00:00
nathanw 66fc73c7eb Use a __predict_true() in the definition of pthread__assert(). 2003-04-18 21:32:32 +00:00
wiz 365962d31f Convert to mdoc. 2003-04-17 19:48:37 +00:00
wiz 335e44b3ef Convert to mdoc. 2003-04-17 19:35:03 +00:00
wiz 93ebe1c2f3 Punctuation nit. 2003-04-17 19:32:17 +00:00
wiz 7e06307f35 Convert to mdoc. 2003-04-17 19:18:01 +00:00
wiz 0a1b8c0e9c Increase width in a list. 2003-04-17 19:17:48 +00:00
wiz 6fa350b93d Convert to mdoc. 2003-04-17 18:48:28 +00:00
wiz f77fff8c0b Convert to mdoc. 2003-04-17 18:14:21 +00:00
wiz 4472b40375 Convert to mdoc. Fix an error (two many arguments to a function). 2003-04-17 17:57:12 +00:00
wiz df25ca4551 Convert to mdoc. Fix one or two bugs while here, hope I didn't introduce
more :)
2003-04-17 17:02:48 +00:00
fvdl b32287cc19 Catch up with changed struct reg (same as gregs in mcontext now). 2003-04-17 10:13:51 +00:00
lukem c6af0a620d clear errno before strtol() if we're going to test it for ERANGE afterwards 2003-04-17 03:25:56 +00:00
thorpej aef8e968bf Don't link libcrypto against libcrypt; that doesn't work on systems
that don't support shared libraries.  Instead, build the NetBSD crypt(3)
library directly into libcrypto.
2003-04-17 00:32:22 +00:00
thorpej 90099f5fe1 hrink the Blowfish routines down to only what we need for __bcrypt(),
and don't export any of the Blowfish functionality outside bcrypt.c.
2003-04-17 00:31:04 +00:00
thorpej d1bb0be3e8 If libcrypto is defined, use the MD5 routines from libcrypto, rather
than from libc.
2003-04-17 00:29:43 +00:00
nathanw a74799949a pthread_mutex_trylock(): It's not an error to call trylock() on a
mutex already locked by the calling thread, even for non-recursive
mutexes.
2003-04-16 18:59:12 +00:00
nathanw 008033bb65 When a thread sleeps on a mutex or cv, have it put itself on the
front of the sleep queue rather than the back. This is more
cache-friendly behavior and within the (lack of) constraints on wakeup
ordering imposed on equal-priority threads.
2003-04-16 18:30:43 +00:00
nathanw 8114703654 Fix a fencepost error in writing to the debug buffer. 2003-04-16 17:37:47 +00:00
wiz e2b9f7144c Use .In instead of .Fd. 2003-04-16 16:09:04 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz 44b6aa4c8b Mostly mdoc improvements, some typos. 2003-04-16 12:53:37 +00:00
wiz e0f416155a New sentence, new line. 2003-04-16 12:36:44 +00:00
wiz 848d4d3dde getch(3), not curses_getch(3). New sentence, new line. 2003-04-16 12:29:42 +00:00
wiz b425910551 Typo and grammar fixes. Sort SEE ALSO. Use more mdoc. 2003-04-16 08:36:54 +00:00
wiz 5af328316a Bump date for last. 2003-04-14 12:06:26 +00:00
simonb 4604766a89 Remove CAVEATS section and note that isascii() works on all integer
values.

From PR standards/21179 from Christian Biere.  Verified against SUSv3 too.
2003-04-14 12:04:18 +00:00
wiz 3c88fe4c61 Bump date, remove an article. 2003-04-14 08:45:51 +00:00
jdolecek e75e2e6438 seteuid() and setegid() were adopted in IEEE Std 1003.1-2001 + X/Open
portability guide issue 6, adjust headers to expose the function
prototypes with appropriate _POSIX_C_SOURCE/_XOPEN_SOURCE defines
fixes standards/21136 by MAEKAWA Masahide
2003-04-14 08:12:11 +00:00
salo 0db44986d2 Add slovak language libc message catalog. 2003-04-14 05:21:47 +00:00
kleink c02f38cf64 Warn if the old unsetenv() is referenced. 2003-04-13 17:39:13 +00:00
dogcow dc650bfb56 Document ip.checkinterface 2003-04-12 07:41:12 +00:00
christos 8099c8302c add functions to retrieve option values. 2003-04-11 17:36:57 +00:00
jdc 0361a50a77 Add spacing around variable definitions.
From a discussion with Thomas Klausner.
2003-04-11 09:37:15 +00:00
salo f939ebddeb Document HW_CNMAGIC, fix HW_PHYSMEM64 and HW_USERMEM64 format in the table,
describe HW_MACHINE_ARCH and HW_ALIGNBYTES in the same order as listed in the
table.
2003-04-11 08:44:16 +00:00
wiz 550ed62a35 Add a comma after e.g. 2003-04-10 18:32:34 +00:00
atatat 6c903bbeb1 Document the new MAP_ALIGNED() flag/macro, be more specific about what
values for fd are acceptable when using MAP_ANON, and add a short
paragraph describing (in short) the relationship between mmap()
allocations and the break.

Addresses PR kern/7935 and PR lib/20803.
2003-04-10 18:22:47 +00:00
wiz 2db352f405 Update german translation for ERANGE. 2003-04-10 07:26:48 +00:00
jdolecek 9865cb9229 update ERANGE czech string according to the english ERANGE update 2003-04-10 07:20:52 +00:00
nathanw cc1db07645 Just use PAGE_SHIFT from <machine/vmparam.h> instead of going through
hoops to read and cache the value from the crash dump header.
2003-04-09 22:46:39 +00:00
kleink 27d8588746 Change the strerror() string for ERANGE consistently to "Result too
large or too small" and reword its intro(2) description to reflect
the present use for non-numerical out-of-range errors; resolves
Andrew Brown's PR standards/21004, the discussion of which was
dramatically sped up by repeated whipping from Perry Metzger. :-)
2003-04-09 21:36:28 +00:00
jmmv 33b8c350b6 Add a Catalan libc message catalog file (plus everything else needed to
track the file).  Closes my own PR lib/19498.
2003-04-09 20:17:06 +00:00
drochner e0fb4a2b6b -in bindtextdomain(), don't crash if a NULL dirname is passed - return the
current path setting in this case (or default)
-fix return value
-don't copy a string to itself
2003-04-09 14:11:33 +00:00
wiz 43a80c6fd2 Improve mdoc a bit. 2003-04-08 21:19:15 +00:00
wiz 94f29563af Better mdoc; add a missing 'is'. 2003-04-08 21:15:21 +00:00
jdc a1a7bef1e4 Document LINES and COLS environment variables. 2003-04-08 18:57:09 +00:00
jdc 7a37df1b93 Add ESCDELAY variable to control the inter-key delay in escape sequences.
Fixes PR 20031 by Thomas Klausner.
2003-04-08 18:55:43 +00:00
jdc 6e028f681b Add mvwin manual pages.
From PR 21041.
2003-04-08 06:02:17 +00:00
jdc 38b99f1400 Make sure that windows are not off the left or top edges of the screen.
Noticed while looking at PR 21041.
2003-04-08 05:56:01 +00:00
jdc 119cd94332 Document mvwin().
Fixes PR 21041 by Tyler Retzlaff.
2003-04-08 05:53:49 +00:00
nathanw 2a4cef11ba When threads are started, register an atfork callback to clear
pthread__started in the child process. This lets sleep() work in the
child, as required by POSIX.
2003-04-07 21:29:48 +00:00
nathanw cffc057ae2 Oops, make the atfork queues static so they don't pollute the
namespace.
2003-04-07 21:09:57 +00:00
kleink 3b364b9b85 Make sure we reference getcontext() by its internal name. 2003-04-07 21:04:20 +00:00
kleink e77f46b397 Fix stack pointer fixup of oucp (a relict from times when this
was implemented entirely different, and then bit rot commenced).
2003-04-07 19:44:40 +00:00
nathanw 45c9543071 Consistently use pthread__assert() rather than err() to assert that
timer_settime() worked, and don't bother calling err() after a
pthread__assert() call.
2003-04-07 19:41:22 +00:00
kleink aa92e94d2a Observed in other places: move __unsetenv13.c near unsetenv.c, only
group name space wrappers separately.
2003-04-07 17:18:20 +00:00
drochner 1a9947a7d7 unsetenv(3) returns "int" now 2003-04-07 16:29:06 +00:00
drochner 22b67837d4 compile unsetenv(3) into libc or you'll mess up your system 2003-04-07 16:22:43 +00:00