Commit Graph

4632 Commits

Author SHA1 Message Date
itojun 754f8759a4 lint clean. from martin husemann 2002-07-01 21:05:56 +00:00
bjh21 3763adaefd Avoid leaving junk in the top half of R0 on return.
This fixes port-arm/17440.
2002-07-01 19:07:18 +00:00
fredette 58e86abcb7 Changes to allow libc to compile as PIC on the hppa. 2002-07-01 16:00:50 +00:00
itojun 9922c987a9 make more pedantic check on strtoul. from deraadt, sync w/kame 2002-07-01 07:42:49 +00:00
bjh21 5d315d04c8 Bump minor to 12.85: __times13() addition. 2002-06-30 09:46:18 +00:00
bjh21 c1ba727b47 Version times() so that programs compiled before the recent change to make
sysconf(_SC_CLK_TCK) return hz will work.

In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().

_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).
2002-06-30 09:45:39 +00:00
itojun 28735a6a17 correct port range check. from deraadt, sync w/kame, diff sent to bind-bugs 2002-06-29 12:23:10 +00:00
jdolecek 958680bc70 Deal with .Fn macro problem with function returning pointer to function;
sidestep it using troff macro trick from FreeBSD version of this manpage.
xref psignal(3) and strsignal(3)

This fixes lib/12260 by Ada Lim and lib/17406 by Greg A. Woods.
2002-06-28 21:55:08 +00:00
itojun 0c63dd3cf2 correct %d/%u mixup. 2002-06-27 10:22:07 +00:00
itojun 0c4fb2c7e1 correct DIAGASSERT 2002-06-26 09:39:48 +00:00
itojun 9cdbc86d39 correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is NOT critical.
2002-06-26 06:00:26 +00:00
itojun 092b3bc66a avoid remote buffer overrun on hostbuf[]. From: Joost Pol <joost@pine.nl>
correct bad practice in the code - it uses two changing variables
to manage buffer (buf and buflen).  we eliminate buflen and use
fixed point (ep) as the ending pointer.

this fix is critical.
2002-06-26 06:00:07 +00:00
itojun fb40d48413 do not pass uninitialized variable to nsdispatch(). 2002-06-26 02:40:46 +00:00
matt 471cb493ae Add modff 2002-06-23 21:48:52 +00:00
perry 307f36e80c Note that times now uses sysconf(_SC_CLK_TCK) ticks, not CLK_TCK
ticks. Although the two are the same, SuS now says you use the former,
not the latter, to get the information. Also, fill in a little
information on just how awful this crusty wreck is.
2002-06-23 21:32:01 +00:00
perry 25992495dc Since CLK_TCK is now a macro expanding into a function call, cache its
output instead of using it willy nilly.
2002-06-23 20:21:08 +00:00
perry ea360bda1a make sysconf(_SC_CLK_TCK) return the kernel hz value, instead of a
fixed constant, as is done on Solaris, Linux, etc.

Technically, standards don't *require* this, but having it return a
constant is a violation of the spirit, and screws up programs that
(perhaps improperly) assume that it will return kernel hz.
2002-06-23 19:19:01 +00:00
wiz 4dc035fd8a Undo last two, until I have time to take a good look at the problems. 2002-06-21 09:56:33 +00:00
wiz 0f085a5188 Add Xrefs to ipcs(1) and ipcrm(1). 2002-06-16 22:39:32 +00:00
itojun 9ed8a29685 refer nsswitch.conf(5). From: Jim Bernard <jbernard@mines.edu> 2002-06-15 21:49:18 +00:00
itojun 2153f7059e discard first 256 words when we stir. 2002-06-14 03:11:24 +00:00
wiz ec1956ee4e According to POSIX, "-" (the string) is an exception and should not
be parsed as option. Restore behaviour broken by previous commit.
Mirrors second part of patch from lib/17248.
2002-06-13 21:18:50 +00:00
wiz d2d91a9170 Fix '-' handling. POSIX only recognizes "--" as end-of-options.
Problem noted in lib/17248 by David Laight, including a patch.
Part of this patch was used.
2002-06-13 20:49:00 +00:00
christos 1d4eb17d96 Remove the cross reference of fileno(3). It is more appropriate to
cross reference this from fopen(3). After discussion with John Heasley
in PR/17224.
2002-06-13 18:02:38 +00:00
itojun 130b111dfb net.inet.ip.redirtimeout default value changed 2002-06-13 16:33:26 +00:00
fvdl 4f2f06c917 Attempt to juggle the 2 seperarate status/mask bit sets for plain FP
and XMM to provide a consistent interface.
2002-06-12 19:17:22 +00:00
wiz 53f8a68c5f Add Xr to fileno(3). 2002-06-12 09:21:40 +00:00
wiz e2451b5981 Add Xr to fileno(3), as request in lib/17224. 2002-06-12 09:20:48 +00:00
kleink da5a8ed73c Take into consideration that setpriority() silently fits the given
priority into its interval, so we really need to use getpriority() to
retrieve the correct return value; noted by Matthias Drochner.
2002-06-10 18:32:01 +00:00
fvdl 165400b7ba mov -> lea to access _map table. 2002-06-06 23:04:35 +00:00
fvdl e6f161c821 Fix the EINVAL return path. 2002-06-06 20:51:17 +00:00
fredette 02ac1ae2f0 Added hppa support (some of it incomplete) to lib/csu, lib/libc,
and lib/libkvm.
2002-06-06 20:31:19 +00:00
fvdl f634f37b8d Use NLIST_ELF64 for x86_64. 2002-06-05 20:04:22 +00:00
kleink 7965e254cb As documented, return the new priority if successful; from Matthias
Drochner in PR lib/17156.
2002-06-04 10:58:12 +00:00
fvdl 10940acfe5 Add clone(2) implementation. 2002-06-03 18:31:12 +00:00
fvdl e010b5ebde Use the syscall insn for system calls. Fix up some assembly to
remove either previously made errors, or to account for the
fact that syscall clobbers %ecx.
2002-06-03 18:30:32 +00:00
wiz 919948e5f4 Fix SYNOPSIS, noted by Martin Macok on tech-userlevel. 2002-06-03 12:01:43 +00:00
itojun 35eb51aa09 use int32_t, instead of int, for on-disk data.
(so that we are safe in the future)
2002-05-30 14:55:47 +00:00
thorpej d9f211b107 Make this work with an ISO C preprocessor. 2002-05-30 05:08:51 +00:00
eeh 9969483183 Fix conflict in definitions. 2002-05-29 15:58:03 +00:00
itojun 76ed88e323 add LIBRARY section 2002-05-28 11:38:29 +00:00
itojun 256a128339 document net.inet6.ip6.maxfrags 2002-05-28 03:17:26 +00:00
wiz 143cf52f81 __STDC__ is always defined on NetBSD. 2002-05-26 16:53:30 +00:00
wiz 738d04ecee __STDC__ is always defined on NetBSD. 2002-05-26 16:39:57 +00:00
wiz bf5ec17026 Remove #ifdef Bad_float_h and #ifndef __STDC__ parts (unneeded). 2002-05-26 15:04:08 +00:00
wiz e3e4fede44 __STDC__ is always defined on NetBSD. 2002-05-26 14:48:19 +00:00
wiz 3fb28eec1f __STDC__ is always defined on NetBSD. 2002-05-26 14:43:59 +00:00
wiz 077b67effa __STDC__ is always defined on NetBSD. 2002-05-26 14:03:19 +00:00
wiz 92d8b1e9fa Revert previous: .S files are currently compiled with -traditional-cpp,
so __STDC__ is _not_ always defined.
2002-05-26 12:24:55 +00:00
wiz d56bb7c2ec __STDC__ is always defined on NetBSD. 2002-05-26 11:48:00 +00:00