thorpej
07db43dc14
Document new RFC1323 sysctl variable.
1995-09-30 07:03:54 +00:00
cgd
7a8e7b22a1
deal properly (i hope!) with registers' upper 32 bits, when doing
...
32-bit division and remainder. Sometimes, when optimizing, they could
have been different than previously expected (and could have caused
hokey results).
1995-09-30 03:09:07 +00:00
cgd
2940a41ce2
kill some now-bogus XXX's
1995-09-30 02:14:17 +00:00
jonathan
509475b244
Copy the input argument to $f0 so we handle negative inputs properly
...
in the tail.
Doesn't yet handle +/- inf as cleanly as other implementations.
1995-09-29 21:59:45 +00:00
pk
a9c6e6dfa1
Make `make depend' work. For this, it was necessary to remove ${.ALLSRC}
...
from the build rules; it has been replaced with `${.CURDIR}/${SRCS}'.
Also, avoid "a.out" like <mk/bsd.lib.mk>.
1995-09-29 11:23:15 +00:00
cgd
c178576bae
add hack-ish support for ecoff nlists (used only on the Alpha).
...
It's hack-ish, but it appears to work well enough for all/most
programs that use libkvm, e.g. ps, w, netstat, dmesg, etc.
1995-09-29 04:19:59 +00:00
cgd
46d2a53848
reminder to not forget k0seg translations. (nothing done here yet, though.)
1995-09-29 03:57:48 +00:00
cgd
473d5f491e
return dest string pointer, not source string pointer!
1995-09-26 03:37:10 +00:00
jonathan
945bd69ebd
The old mips modf didn't work (pr 1048). This replaces it with
...
a version that does work on little-endian MIPS CPUs. Not tested on
big-endian MIPS; the "li.d" may be byteorder-dependent.
1995-09-25 19:28:27 +00:00
jonathan
946af1bccf
Fix an old bug, whereby ASMSTR() was used before #including "SYS.h", where
...
it was defined.
1995-09-25 19:21:41 +00:00
christos
d0749900af
Don't write a.out files; breaks parallel makes.
1995-09-25 00:57:28 +00:00
pk
dae6393cae
atexit() cannot reliably be used in this context. Introduce `.fini' which
...
is called from rtld through _dlexit() or when this object is unloaded
(from Doug Rabson).
1995-09-23 22:38:22 +00:00
pk
3994f31209
Activate interface version 4: call dlexit() at exit.
1995-09-23 22:34:20 +00:00
phil
d995fcfdb1
correction from Matthias Pfaller.
1995-09-20 22:34:03 +00:00
thorpej
60f8dae203
Add the manual page links suggested my Luke Mewburn in PR 1449. This
...
is consistent with at least 2 other operating systems with YP subsystems.
1995-09-12 19:40:27 +00:00
thorpej
84b1a32da6
Fix typo pointed out by Luke Mewburn in PR 1449. Kill duplicate RCS id.
1995-09-12 19:33:03 +00:00
jtc
2bb92dc67a
Don't bother with a m68k assembly version of insque/remque. Gcc
...
generates the pretty much the same code (I believe it is exactly
the same except for stack frame setup) as the generic C version.
1995-09-07 07:17:53 +00:00
mycroft
23de03812d
Clean up a little, and fix a fencepost error.
1995-08-31 16:28:01 +00:00
jtc
aa8fc243af
Don't overflow fixed sized buffers. Parts of this patch come from
...
Perry Metzger, Charles Hannum and Paul Kranenburg.
1995-08-30 21:20:36 +00:00
mycroft
ce6374e6be
Do not terminate the search on errors other than ENOENT.
1995-08-24 05:26:35 +00:00
jtc
0ed73b3dc5
/usr/local/etc/zoneinfo -> /usr/share/zoneinfo; PR #1398
1995-08-22 19:28:15 +00:00
jtc
1840cfa21f
pagesize(2) -> getpagesize(2)
1995-08-17 23:30:42 +00:00
pk
c060b81fb7
Make PIC-safe.
1995-08-14 15:47:32 +00:00
cgd
e7b36fb1b4
fast(!) bzero(), by Trevor Blackwell.
1995-08-14 04:09:23 +00:00
cgd
adca5aa4fc
save & restore the argument registers, too. from Trevor Blackwell
1995-08-14 02:20:07 +00:00
cgd
c37c5ab530
Alpha assembly language bcopy(), written by Trevor Blackwell
...
<tlb@eecs.harvard.edu>. I added support for using it as memcpy()
and memmove(), by compiling with the appropriate options.
1995-08-13 00:42:27 +00:00
cgd
2fe62c130b
stubs to define things, and include the bcopy source
1995-08-13 00:40:47 +00:00
cgd
a4c632dfff
bcopy is now a .S, add memcpy.S and memmove.S
1995-08-13 00:35:53 +00:00
jtc
cb188d3b35
fix typo
1995-08-12 05:02:46 +00:00
thorpej
110b961e86
Change a few bogus instances of ';' to the syntactically correct ','.
1995-08-11 01:10:21 +00:00
jtc
a6751cc939
Updated for LOG_FTP (PR #1312 ).
...
Edited the examples section so that they are all separated by a single
blank line, since they're unrelated. SunOS' syslog(3) has a sentance
or two describing each line. We'll either have to come up with our
own text or ignore it. I'm ignoring it for now.
1995-08-11 00:34:34 +00:00
thorpej
0f77910137
Add and document a `kern.rawpartition' sysctl.
1995-08-04 18:36:08 +00:00
jtc
29308d7d0d
stdio.h -> unistd.h
1995-07-30 06:05:35 +00:00
phil
e69d413643
Improvements to YP support from Jason Downs.
1995-07-28 05:43:01 +00:00
christos
a667b8f7d4
- Const poisoning
...
- KNF police
- Detect malloc failures
1995-07-14 21:04:17 +00:00
cgd
d9393d75fb
fix pr 1214 slightly differently. i _didn't_ use the .Fa macro to
...
mark "file," because in context it didn't seem as if the argument was
being literally named. rather it seemed that the argument's purpose
being described. (the difference being: "... modification times of the
file named by file" would be a case where the the argument was named,
and thus be used with .Fa.)
1995-07-12 07:18:31 +00:00
pk
16e30a94d1
Deal with crash dumps again.
1995-07-05 18:41:25 +00:00
cgd
00fd6050b6
slight type cleanup. add some prototypes for internal functions,
...
some 'const' poisoning, some lvalue lossage.
1995-07-04 03:03:30 +00:00
jtc
b01f461032
Remove trailing comma from cross reference list.
1995-07-03 22:49:10 +00:00
jtc
3b6cda53f9
add setlocale(3) and strsignal(3) cross references
1995-07-03 22:48:08 +00:00
jtc
362ffa8883
remove bogus sys_errlist(3) cross reference
1995-07-03 22:46:21 +00:00
jtc
1eb9f79e6e
added intro(2) cross reference
1995-07-03 22:44:42 +00:00
briggs
bc09c2e1b0
Take out cpu040 case for mac68k.
1995-07-01 19:26:03 +00:00
jtc
ba9dbab5b4
remove single quote from comment
1995-06-29 20:42:22 +00:00
cgd
d8eaa29f0f
fix a piece of sloppy coding on my part. gdb -k still doesn't work, though.
1995-06-29 11:41:45 +00:00
cgd
8f0aa84845
make these manual pages match current reality
1995-06-29 11:40:44 +00:00
jonathan
c93ec6801c
*** empty log message ***
1995-06-28 02:18:21 +00:00
cgd
abde65bef8
fix typo, as pointed out by David Brownlee
1995-06-27 22:32:28 +00:00
jtc
89bbe08617
Strip out unneeded header files
1995-06-26 23:04:45 +00:00
jtc
11c615eae7
Use "${BINOWN}" and "${BINGRP}" instead of "bin".
1995-06-26 22:15:56 +00:00
cgd
64b09480bb
update to match reality.
1995-06-26 13:19:27 +00:00
cgd
873e3c7169
add mlock xrefs as suggested by davide@cs.cmu.edu
1995-06-24 10:47:05 +00:00
cgd
98c450a103
add mincore xref as suggested by davide@cs.cmu.edu
1995-06-24 10:42:03 +00:00
pk
02cf7515b7
Make PIC safe.
1995-06-20 22:45:46 +00:00
jtc
1847eaed9f
sys/termios.h -> termios.h
1995-06-19 22:47:37 +00:00
cgd
3d113b326b
don't assume f_fstypename is larger than MFSNAMELEN or is nul-terminated
1995-06-18 10:58:06 +00:00
jtc
9c87841ac4
Change return type of {get,set}{domain,host}name() from long to int.
1995-06-16 07:36:03 +00:00
jtc
edbbf562ba
<sys/termios.h> -> <termios.h>
1995-06-16 07:20:35 +00:00
jtc
bd3ac90048
getsubopt() uses strcmp(), so include <string.h>
1995-06-16 07:15:18 +00:00
jtc
ed7060c4a6
Use standard conditional for rcsid definition.
1995-06-16 07:12:41 +00:00
jtc
915b76dd9f
Don't cast void functions to void.
1995-06-16 07:05:27 +00:00
mellon
af776e8143
Correctly build gcrt0.o
1995-06-15 21:59:25 +00:00
mellon
0cfebbe02b
start -> __start in END macro as well
1995-06-15 21:58:44 +00:00
mellon
96ba717024
start -> __start to avoid namespace bugs
1995-06-15 21:56:58 +00:00
pk
ef3ad469b6
Private strrchr() not needed for scrt0.o
1995-06-15 21:41:41 +00:00
jtc
752ff8fb6c
don't include <sys/cdefs.h>, it's a 'private' header
1995-06-15 00:07:11 +00:00
jtc
0b2dbb02ca
add explicit return type
1995-06-14 05:19:52 +00:00
jtc
6eaa1d60d8
define __atexit pointer
1995-06-14 05:17:53 +00:00
jtc
bebf039306
add extern qualifier to __atexit pointer declaration
1995-06-14 05:16:04 +00:00
jtc
15206427d4
Add btree(3) cross reference.
...
Lose self-referential cross reference.
1995-06-13 00:53:40 +00:00
jtc
a646349d2b
Open with O_NONBLOCK, in case someone tries to open a blocking device
...
or a non-open fifo instead of a directory.
1995-06-12 19:38:02 +00:00
cgd
85ab28f7aa
eliminate the need for some (fatal) casts.
1995-06-07 13:14:09 +00:00
cgd
ac2f3dfca6
be a bit more careful when splitting pathnames
1995-06-07 05:52:12 +00:00
cgd
da7c7d41dd
build tags at library build time, not at install time.
1995-06-07 04:37:54 +00:00
cgd
5fb36cfb02
cast assignments to quiet const warnings. Mark (at least some) uses of
...
const variables that result in their modification (!!) as XXX.
1995-06-07 03:55:49 +00:00
pk
f087571372
First arg. of syscall2() is a quad_t.
1995-06-06 09:04:51 +00:00
pk
8ad14ce320
Correct tputs() argument declaration.
1995-06-06 08:14:37 +00:00
pk
18a59f7843
Declare tputs() as void.
1995-06-06 08:10:00 +00:00
pk
bd8c5cbee9
Prototypes (PR#1105) + some misc. reorganisation.
1995-06-05 19:48:33 +00:00
pk
f0f12c9e95
Prototypes (PR#1104).
1995-06-05 19:46:49 +00:00
pk
41621edd10
Prototypes (PR#1103).
1995-06-05 19:45:48 +00:00
pk
8347998a01
Prototypes (PR#1100).
1995-06-05 19:43:53 +00:00
pk
dde1c1a0be
Prototypes (PR#1098).
1995-06-05 19:42:16 +00:00
pk
6355031191
Fix typo (Der mouse, PR #1115 ).
1995-06-05 11:48:26 +00:00
pk
69ae425298
Build run-time code for use in static executables, called `scrt0.o'.
1995-06-05 01:57:04 +00:00
pk
275fc2ee0d
#include <dlfcn.h>, and <string.h> too.
1995-06-05 00:13:05 +00:00
pk
25b9fa86e4
one more prototype
1995-06-05 00:10:44 +00:00
pk
6226310a31
add dlerror() stub
1995-06-04 23:29:14 +00:00
mycroft
5860921eda
Fill in sin_len.
1995-06-03 22:37:19 +00:00
mycroft
c7ad9c47f1
Fill in sin_len.
1995-06-03 22:24:45 +00:00
mycroft
89ef25dac6
Fill in sin_len.
1995-06-03 22:03:51 +00:00
pk
846beea318
Factor out common code.
1995-06-03 13:16:03 +00:00
mycroft
ac1e0f5127
Don't set the rgid or egid. Document this behavior. This is compatible with
...
SunOS and SysV.
1995-06-03 02:27:17 +00:00
pk
c64cecc457
Protoize (from Thorsten Lockert, PR #1070 ).
...
Some other cleanup.
1995-06-02 21:30:47 +00:00
mycroft
19755ba159
We must do setgid() explicitly now.
1995-06-02 21:25:09 +00:00
pk
fd77fcfc4c
Make this compile warning-free (from Thorsten Lockert, PR 1071).
1995-06-02 15:55:27 +00:00
jtc
4cb508307a
Don't duplicate the primary group. The first member of the groups list
...
no longer serves as effective group id.
1995-06-01 22:51:17 +00:00
ragge
1f67145235
Converted K&R -> ansi.
1995-06-01 01:11:41 +00:00
phil
f722fd7346
Update to -DDYNAMIC as I thought I had a long time ago.
1995-05-29 06:18:12 +00:00
mycroft
ee7138ecea
Fix up the last argv pointer correctly when terminating early.
1995-05-25 03:03:42 +00:00
mycroft
800709ce22
Use inet_aton(), not inet_addr().
1995-05-21 15:50:45 +00:00
mycroft
ac582e04f5
Fix one more reallocing bug.
1995-05-18 13:59:25 +00:00
mycroft
70258d9a3a
Fix up another pointer if we realloc the argument list.
1995-05-18 12:21:54 +00:00
cgd
e9678161e2
from PR 952, by Thor Lancelot Simon: don't turn off echo when
...
inputting an S/KEY one-time password.
1995-05-17 20:24:39 +00:00
mycroft
be21323869
Modify getpwent() to use __ypparse().
1995-05-17 17:36:43 +00:00
mycroft
6ee8835631
Keep argv[0] in a register.
1995-05-17 15:55:26 +00:00
mycroft
3ad209c804
Calculate environ directly from argc and argv, rather than searcing down
...
the argument list.
1995-05-16 16:25:04 +00:00
mycroft
470f22b967
Update copyright.
1995-05-16 14:26:15 +00:00
mycroft
5eb65c6b09
Use the new ps_strings format.
1995-05-16 14:23:06 +00:00
mycroft
6506fa2b16
Use the new ps_strings format. Find the arguments using their
...
addresses in the argv array, rather than guessing based on the location
of NULs.
1995-05-16 14:21:08 +00:00
jtc
7ca5cd45b0
strtok replaces the separator character, not the token, with a NUL.
...
(Fix from PR #891.)
1995-05-13 07:41:35 +00:00
jtc
3ba2c075cf
#include appropriate header files to bring prototypes into scope
1995-05-13 06:58:18 +00:00
jtc
c1c8f42080
Changed core routines to call __ieee754_sqrt() instead of sqrt(). I
...
reported this enhancement to fdlibm-comments, and got the following
reply:
Date: Thu, 11 May 1995 14:35:25 -0700
From: Kwok.Ng@Eng.Sun.COM (KC Ng)
To: fdlibm-comments@sunpro.Eng.Sun.COM , jtc@cygnus.com
Subject: Re: fdlibm 5.2: why do core functions use sqrt?
> I noticed that core (e_*.c) fdlibm functions like __ieee754_acos()
> ensure that they call sqrt() with arguments in range (x > 0), when
> they could call __ieee754_sqrt() directly.
>
> Since sqrt() does a lot more work (verifies x is in range, etc.) is
> there any reason for this? I'd think that calling __iee754_sqrt()
> would be more appropriate. ....
You are right. __ieee754_sqrt should be in use with e_*.c.
1995-05-12 04:57:13 +00:00
jtc
9ae90685f2
Winning Strategies has placed this code in the public domain.
1995-05-11 23:03:44 +00:00
jtc
d042a3eb20
Id -> NetBSD
1995-05-10 20:44:22 +00:00
jtc
5abf82e236
Id -> NetBSD
1995-05-08 23:55:16 +00:00
jtc
0898887210
Id -> NetBSD
1995-05-08 23:44:37 +00:00
jtc
750e07c91c
i387 float version of atan2()
1995-05-08 23:35:10 +00:00
mycroft
5c75c8b7ad
Use global definitions of i386_[gs]et_ldt_args.
1995-05-06 19:21:37 +00:00
mellon
139d140728
Ensure that __progname is in .data, not in .sdata
1995-05-03 22:13:15 +00:00
jtc
11fa45b258
Add i387 "float" functions to the makefile
1995-05-03 20:42:23 +00:00
jtc
684161edae
Added i387 remainderf and sqrtf
1995-05-03 14:47:35 +00:00
mycroft
aff3578b36
Explicitly unblock SIGALRM while waiting.
1995-05-03 12:52:43 +00:00
briggs
b1f67e2969
m68k sig{set,long}jmp from Henric Jungheim (uhenric@mcl.ucsb.edu) as
...
followup to GNATS report port-amiga/1009.
Passes regression tests.
I added a NetBSD string and changed jbra to jra.
1995-05-03 03:43:05 +00:00
phil
e4748bf0ca
typo: fld_... -> flt_...
1995-05-03 03:25:11 +00:00
jtc
437b1a3f15
Enable C and Pig Latin message catalogs.
1995-05-02 19:57:15 +00:00
jtc
0e315a5455
C and Pig Latin message catalogs for libc
1995-05-02 19:56:27 +00:00
jtc
615fb07b15
The C Standard says that printf's format string is a multi-byte
...
character string. NA1 says that the 99 characters required by the
Standard have representations in the initial state which are one byte
long and do not alter the state.
Thus we can safely break apart the format string with mbtowc() until
we reach a '%' character, and the process format directive characters
one by one.
We really shouldn't be using mbtowc(), rather mbrtowc() (which takes a
mbstate-t argument) but we don't have the NA1 functions implemented
yet. This is safe, because even when we do we're not likely to
support multi-byte character encodings that use shift states.
1995-05-02 19:52:41 +00:00
mycroft
66f0c16f14
Use POSIX tty semantics.
1995-05-02 01:40:14 +00:00
christos
42c2892cc9
Fixed the key mapping code and reverted Charles' changes.
1995-04-29 20:44:00 +00:00
cgd
64fe160dd5
include string.h and/or stdlib.h as appropriate, if NetBSD.
1995-04-29 05:42:23 +00:00
cgd
2583d406f9
change some of the rpc "on-the-wire" structures' fields to be explicitly-sized
...
types. add xdr_{,u_}int{16,32}_t() functions to convert them.
This is necessary, because things like BPF use the RPC headers to look
at the on-the-wire data, so the headers must accurately represent
what's on the wire, too.
1995-04-29 05:26:31 +00:00
cgd
d2e405e546
functions to set FP exception masks & sticky exceptions. they abort, for now.
1995-04-29 05:10:55 +00:00
cgd
3e14f3894b
get & set FP rounding direction. these actually seem to work.
1995-04-29 05:09:53 +00:00
cgd
234eecadfb
add entries for the float rounding and exception functions
1995-04-29 05:09:14 +00:00
jtc
528957a005
Winning Strategies has placed this code into the Public Domain
1995-04-28 23:19:22 +00:00
jtc
7b4ed4f858
Winning Strategies has placed this code into the Public Domain
1995-04-28 22:59:46 +00:00
jtc
390695fb9c
$Id: $ -> $NetBSD: $
1995-04-28 22:57:54 +00:00
jtc
954b796156
Winning Strategies has placed this code into the Public Domain
1995-04-28 22:53:59 +00:00
jtc
5c7208348c
Winning Strategies has placed this code into the Public Domain
1995-04-28 22:43:31 +00:00
jtc
a6fa20ea30
Added __flt_rounds, fp{get,set}round.
1995-04-28 21:57:00 +00:00
jtc
5e5fe216ab
removed log2 from manpage, libm doesn't provide that function.
1995-04-27 18:21:43 +00:00
mycroft
c1a3077d03
Remove dead code that can't possibly work.
1995-04-27 04:49:26 +00:00
mycroft
4d13217262
Trivial code ordering change.
1995-04-27 03:59:38 +00:00
christos
c6284ba067
The typo police "dase" != "case"
1995-04-25 21:41:48 +00:00
christos
348d202923
Fix typo...
1995-04-25 21:22:17 +00:00
ragge
5993e44288
kvm_vax.c added.
1995-04-25 15:41:11 +00:00
ragge
ae8e3c9f1a
Changed abs.S to abs.c for vax.
1995-04-25 15:36:39 +00:00
jtc
02788519a9
termios code has been moved to new libc/termios directory.
1995-04-25 00:06:17 +00:00
jtc
5f11a56ca9
Initial checkin of termios directory. The code used to be in
...
gen/termios.c, but has been split out so that NetBSD users don't trip
over the extensions that intrude into the POSIX namespace.
1995-04-25 00:04:21 +00:00