Commit Graph

7113 Commits

Author SHA1 Message Date
fredette
58e86abcb7 Changes to allow libc to compile as PIC on the hppa. 2002-07-01 16:00:50 +00:00
fredette
43c563a3dd A new crt0.c for hppa, with support for dynamic linking. 2002-07-01 15:56:41 +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
thorpej
45bf1f0dd9 Work around compiler problem on VAX by building with -O0 on that
platform.
2002-06-27 21:03:37 +00:00
itojun
2169d69bcf correct %d/%u mismatch. sync w/kame 2002-06-27 14:39:45 +00:00
itojun
0c63dd3cf2 correct %d/%u mixup. 2002-06-27 10:22:07 +00:00
itojun
240c598f70 minor KNF (prototype decls should carry no variable name, otherwise macro
expansion will get you weird problem) and #define pedant (have paren).
2002-06-26 18:37:28 +00:00
itojun
2f69e2e14d handle non-tty cases more gracefully. 2002-06-26 18:23:28 +00:00
christos
ce1b68c92d PR/17352: David Laight: Curses core-dumps on windows > 1024 wide. 2002-06-26 18:13:59 +00:00
christos
750c3adcea PR/17352: David Laight: handle numbers greater than 999.
In addition: eliminate uses of str*() functions that added complexity to the
code, and KNF.
2002-06-26 18:08:49 +00:00
thorpej
c029cf4e92 Remove -nostdinc from CPPFLAGS. That should only be used when
bsd.lib.mk wants it to be used.
2002-06-26 16:58:09 +00:00
thorpej
8893ba2f3c Back out rev 1.20. 2002-06-26 16:30:46 +00:00
veego
d7a9005d0f Back out rev 1.18:
Remove -I${DESTDIR}/usr/include since it's redundant.

It may be redundant in some environments, but not in all.
2002-06-26 15:21:50 +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
5ac19a376b Add finitef 2002-06-23 21:55:12 +00:00
matt
7a0238324a Add cosf/sinf. 2002-06-23 21:54:37 +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
itojun
292c386a5e use strtok_r, as strtok can interfere with outside users. 2002-06-23 12:20:10 +00:00
itojun
211e500c75 use strtok_r, as strtok can interfere with other callers. from openbsd 2002-06-22 11:52:40 +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
blymn
d051a5de87 Added a NOTES section to describe the differences between our menus
library and the original AT&T one.
2002-06-20 12:18:48 +00:00
christos
abe6b5bef1 Make sure that we free memory and return null if we failed to initialize.
This should be pulled up to 1.6, but someone needs to make sure that it
does not affect broken programs.
2002-06-19 15:56:27 +00:00
blymn
5ce770b15c Fixed typo in type declaration. 2002-06-19 14:12:57 +00:00
fvdl
b48e735f69 libarch for x86_64, mtrr only for now. This must later be fixed so
that code is shared with i386.
2002-06-18 08:29:35 +00:00
wiz
0f085a5188 Add Xrefs to ipcs(1) and ipcrm(1). 2002-06-16 22:39:32 +00:00
thorpej
24e460d382 If any of __pentiumpro__, __tune_pentiumpro__, or __tune_i686__ are
defined, use bf_enc_686.S, else bf_enc_586.S.
2002-06-16 18:35:02 +00:00
thorpej
d8a2597f4b * Don't put the pathname to the host-tool compiler into the library.
Instead, inject the compiler version info from ${CC} -v.
* Don't put the date into the library.  Instead, inject the OS version
  info.
2002-06-16 17:57:29 +00:00
itojun
9ed8a29685 refer nsswitch.conf(5). From: Jim Bernard <jbernard@mines.edu> 2002-06-15 21:49:18 +00:00
wiz
a81e53dde5 Remove unnecessary spaces. 2002-06-15 09:39:52 +00:00
matt
1ece0e0c9a Remove -I${DESTDIR}/usr/include since it's redundant. 2002-06-15 02:01:23 +00:00
matt
0202d560cf Compile libm on VAX at WARNS=2; leave other architectures at WARNS=1 2002-06-15 00:13:07 +00:00
matt
f1009ecdff Ansify libm noieeesrc (for VAX). Also make const data really const.
libm for VAX can compiles with WARNS=2
2002-06-15 00:10:17 +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