openbsd
27 years agoRemember errno if fchown() fails so we get correct warnings
tholo [Sun, 2 Feb 1997 10:16:58 +0000 (10:16 +0000)]
Remember errno if fchown() fails so we get correct warnings
Only warn about not being able to restore user/group owner if not -f

27 years agocorrect arch check, do not drop of non-void function; yasufu-i@is.aist-nara.ac.jp
deraadt [Sun, 2 Feb 1997 03:28:41 +0000 (03:28 +0000)]
correct arch check, do not drop of non-void function; yasufu-i@is.aist-nara.ac.jp

27 years agosiginfo stuff
deraadt [Sun, 2 Feb 1997 01:38:11 +0000 (01:38 +0000)]
siginfo stuff

27 years agoadd gdb for alpha & mips and simplify it a bit
graichen [Sun, 2 Feb 1997 01:14:00 +0000 (01:14 +0000)]
add gdb for alpha & mips and simplify it a bit

27 years agoattempt at siginfo.. Per must look this over
deraadt [Sun, 2 Feb 1997 00:47:42 +0000 (00:47 +0000)]
attempt at siginfo.. Per must look this over

27 years agotrapsignal/sendsig type/sigval changes
deraadt [Sun, 2 Feb 1997 00:43:20 +0000 (00:43 +0000)]
trapsignal/sendsig type/sigval changes

27 years agoadd OpenBSD/alpha support to gdb (taken from cgd's cygnus binutils
graichen [Sun, 2 Feb 1997 00:39:40 +0000 (00:39 +0000)]
add OpenBSD/alpha support to gdb (taken from cgd's cygnus binutils
snapshots for NetBSD/alpha and adapted to compile with our binutils)

i've just tested it roughly - but it should work and is at least a start

27 years agoPrevent seeking to negative offsets when seeking from the end of a file;
tholo [Sun, 2 Feb 1997 00:32:02 +0000 (00:32 +0000)]
Prevent seeking to negative offsets when seeking from the end of a file;
noticed by Tim Newsham <newsham@aloha.net>

27 years agoCorrect type of brk(), use <unistd.h>, reference mmap(2); from NetBSD
tholo [Sun, 2 Feb 1997 00:16:32 +0000 (00:16 +0000)]
Correct type of brk(), use <unistd.h>, reference mmap(2); from NetBSD

27 years agoput an harmless waring behind an DIAGNOSTIC
graichen [Sat, 1 Feb 1997 23:46:02 +0000 (23:46 +0000)]
put an harmless waring behind an DIAGNOSTIC

27 years agonicer output at bootup (before it was somewhat garbled)
graichen [Sat, 1 Feb 1997 23:31:39 +0000 (23:31 +0000)]
nicer output at bootup (before it was somewhat garbled)

27 years agotrapsignal/sendsig type/sigval changes
deraadt [Sat, 1 Feb 1997 23:05:05 +0000 (23:05 +0000)]
trapsignal/sendsig type/sigval changes

27 years agoadd type & union sigval args to sendsig/trapsignal
deraadt [Sat, 1 Feb 1997 21:49:30 +0000 (21:49 +0000)]
add type & union sigval args to sendsig/trapsignal

27 years agoCatches luser/typo when "@" is the first character of first argument
jkatz [Sat, 1 Feb 1997 19:38:26 +0000 (19:38 +0000)]
Catches luser/typo when "@" is the first character of first argument

27 years agoaccept "-f local" for AF_LOCAL"
kstailey [Sat, 1 Feb 1997 17:31:19 +0000 (17:31 +0000)]
accept "-f local" for AF_LOCAL"

27 years agoGet precedence right
tholo [Sat, 1 Feb 1997 12:03:07 +0000 (12:03 +0000)]
Get precedence right

27 years agoImplement BUFCACHEPERCENT. Allow bufpages/nbuf larger than 1 (still max out
deraadt [Sat, 1 Feb 1997 11:02:41 +0000 (11:02 +0000)]
Implement BUFCACHEPERCENT. Allow bufpages/nbuf larger than 1 (still max out
at all buffers be MAXBSIZE).  Remove faulty limit test of buffer pages
allocation.  The check is now done at the bufpages+nbuf calculations.

27 years agoAllow bufpages/nbuf larger than 1 (still max out at all buffers
deraadt [Sat, 1 Feb 1997 11:02:11 +0000 (11:02 +0000)]
Allow bufpages/nbuf larger than 1 (still max out at all buffers
be MAXBSIZE).  Remove faulty limit test of buffer pages allocation.  The
check is now done at the bufpages+nbuf calculations.

27 years agoBetter handling of long uptimes; from NetBSD
tholo [Sat, 1 Feb 1997 07:18:28 +0000 (07:18 +0000)]
Better handling of long uptimes; from NetBSD

27 years agomem leak, from lidl@va.pubnix.com
deraadt [Sat, 1 Feb 1997 04:35:33 +0000 (04:35 +0000)]
mem leak, from lidl@va.pubnix.com

27 years agogrammar error
deraadt [Sat, 1 Feb 1997 00:58:25 +0000 (00:58 +0000)]
grammar error

27 years agoAllow bufpages/nbuf larger than 1 (still max out at all buffers
niklas [Sat, 1 Feb 1997 00:31:49 +0000 (00:31 +0000)]
Allow bufpages/nbuf larger than 1 (still max out at all buffers
be MAXBSIZE).  Remove faulty limit test of buffer pages allocation.  The
check is now done at the bufpages+nbuf calculations.

27 years agorandomize xid mode
deraadt [Sat, 1 Feb 1997 00:26:04 +0000 (00:26 +0000)]
randomize xid mode

27 years agoCorrect early termination case of read clustering which could cause
niklas [Sat, 1 Feb 1997 00:09:31 +0000 (00:09 +0000)]
Correct early termination case of read clustering which could cause
buffer cache poisoning when bufpages/nbuf is larger than 1.  Also correct
readahead amount calculation.  Optimize page moving when buffers have excess
pages.

27 years agofix the problem with makefiles in a different way, this steps on the last
rahnds [Fri, 31 Jan 1997 19:40:42 +0000 (19:40 +0000)]
fix the problem with makefiles in a different way, this steps on the last
commit, but works faster.
Instead of always looking up the makefile and then deciding to
get the objects or not. Cache the makefile name along with the objects.

27 years agoadd mkcmdtab.o to CLEANFILES
kstailey [Fri, 31 Jan 1997 18:11:01 +0000 (18:11 +0000)]
add mkcmdtab.o to CLEANFILES

27 years agoalso build amd on the alpha now
graichen [Fri, 31 Jan 1997 14:43:40 +0000 (14:43 +0000)]
also build amd on the alpha now

27 years agomake amd 64bit ready for the alpha (from NetBSD/thorpej)
graichen [Fri, 31 Jan 1997 14:41:57 +0000 (14:41 +0000)]
make amd 64bit ready for the alpha (from NetBSD/thorpej)

27 years agoavoid some division by zero in hackish ways
deraadt [Fri, 31 Jan 1997 11:59:05 +0000 (11:59 +0000)]
avoid some division by zero in hackish ways

27 years agodo not sillyrename directories; from freebsd
deraadt [Fri, 31 Jan 1997 10:33:46 +0000 (10:33 +0000)]
do not sillyrename directories; from freebsd

27 years agooff-by-one in partition indexing, netbsd pr#3161, kleink@layla.inka.de
deraadt [Fri, 31 Jan 1997 10:32:21 +0000 (10:32 +0000)]
off-by-one in partition indexing, netbsd pr#3161, kleink@layla.inka.de

27 years agoif error, b_resid = b_bcount
deraadt [Fri, 31 Jan 1997 10:31:43 +0000 (10:31 +0000)]
if error, b_resid = b_bcount

27 years agodo not walk off the end of a directory info buffer; netbsd pr#3170, mhitch@gemini...
deraadt [Fri, 31 Jan 1997 10:30:48 +0000 (10:30 +0000)]
do not walk off the end of a directory info buffer; netbsd pr#3170, mhitch@gemini.oscs.montana.edu

27 years agostop crash from walking off end of malloc'd page. i hunted this bug before
deraadt [Fri, 31 Jan 1997 10:09:36 +0000 (10:09 +0000)]
stop crash from walking off end of malloc'd page. i hunted this bug before
and didn't find it. fix from paul@wit387304.student.utwente.nl

27 years agoneed string.h
deraadt [Fri, 31 Jan 1997 10:08:37 +0000 (10:08 +0000)]
need string.h

27 years agocut a little more.
mickey [Fri, 31 Jan 1997 07:18:27 +0000 (07:18 +0000)]
cut a little more.

27 years agoPieces to create a miniroot image for powerpc installation from cdrom or
rahnds [Fri, 31 Jan 1997 05:10:59 +0000 (05:10 +0000)]
Pieces to create a miniroot image for powerpc installation from cdrom or
network?

27 years agoFirst cut at elfrdsetroot command. this is the rdsetroot heavily hacked
rahnds [Fri, 31 Jan 1997 05:04:44 +0000 (05:04 +0000)]
First cut at elfrdsetroot command. this is the rdsetroot heavily hacked
to work on elf. Need sever cleaning.

27 years agodeal with IP_HDRINCL option network byte order change; lidl@va.pubnix.com
deraadt [Thu, 30 Jan 1997 22:43:11 +0000 (22:43 +0000)]
deal with IP_HDRINCL option network byte order change; lidl@va.pubnix.com

27 years agofor IP_HDRINCL option, use ip_len/ip_off in network order; lidl@va.pubnix.com
deraadt [Thu, 30 Jan 1997 22:41:59 +0000 (22:41 +0000)]
for IP_HDRINCL option, use ip_len/ip_off in network order; lidl@va.pubnix.com

27 years agobuf oflow, felix@mamba.pond.sub.org
deraadt [Thu, 30 Jan 1997 21:55:27 +0000 (21:55 +0000)]
buf oflow, felix@mamba.pond.sub.org

27 years agoavoid being too paranoid... make it work!
deraadt [Thu, 30 Jan 1997 18:26:55 +0000 (18:26 +0000)]
avoid being too paranoid... make it work!

27 years agoAdded ICMP Destination Unreachable codes from RFC-1812:
kstailey [Thu, 30 Jan 1997 17:05:46 +0000 (17:05 +0000)]
Added ICMP Destination Unreachable codes from RFC-1812:

   14 = Host Precedence Violation.  Sent by the first hop router to a
        host to indicate that a requested precedence is not permitted
        for the particular combination of source/destination host or

   15 = Precedence cutoff in effect.  The network operators have imposed
        a minimum level of precedence required for operation, the
        datagram was sent with a precedence below this level;

27 years agothe blokes did not get there till 10 years later
deraadt [Thu, 30 Jan 1997 08:33:07 +0000 (08:33 +0000)]
the blokes did not get there till 10 years later

27 years agorace -> trace
deraadt [Thu, 30 Jan 1997 08:23:34 +0000 (08:23 +0000)]
race -> trace

27 years agofix IOR/IOW/IOWR; cgd@netbsd.org
deraadt [Thu, 30 Jan 1997 08:16:45 +0000 (08:16 +0000)]
fix IOR/IOW/IOWR; cgd@netbsd.org

27 years agoxref a few things
deraadt [Thu, 30 Jan 1997 07:59:50 +0000 (07:59 +0000)]
xref a few things

27 years agoif at first-request-for-a-domain we discover a file /etc/yp/$domainneme
deraadt [Thu, 30 Jan 1997 07:47:28 +0000 (07:47 +0000)]
if at first-request-for-a-domain we discover a file /etc/yp/$domainneme
to exist, use it as a list of valid servers instead of doing broadcasts.
However, do not change the semantics of -ypset or -ypsetme. Based on the
reasoning provided in netbsd pr#1759, lukem@supp.cpr.itg.telecom.com.au

27 years agoprint !A on ICMP_UNREACH_ADM_PROHIB too
kstailey [Thu, 30 Jan 1997 07:07:07 +0000 (07:07 +0000)]
print !A on ICMP_UNREACH_ADM_PROHIB too

27 years agoadded #define for Communication Administratively Prohibited
kstailey [Thu, 30 Jan 1997 07:01:45 +0000 (07:01 +0000)]
added #define for Communication Administratively Prohibited
as in RFC-1812 Section 5.2.7.1 Destination Unreachable

27 years agono need to recalc width before each select
deraadt [Thu, 30 Jan 1997 06:03:08 +0000 (06:03 +0000)]
no need to recalc width before each select

27 years agocareful about MAXADDRS, abrown@eecs.harvard.edu
deraadt [Thu, 30 Jan 1997 05:56:06 +0000 (05:56 +0000)]
careful about MAXADDRS, abrown@eecs.harvard.edu

27 years agoproto; felix@mamba.pond.sub.org
deraadt [Thu, 30 Jan 1997 05:05:00 +0000 (05:05 +0000)]
proto; felix@mamba.pond.sub.org

27 years agoi wish i tested before every commit
deraadt [Thu, 30 Jan 1997 02:01:54 +0000 (02:01 +0000)]
i wish i tested before every commit

27 years agodomainname care
deraadt [Thu, 30 Jan 1997 02:00:26 +0000 (02:00 +0000)]
domainname care

27 years agowhere did .DESTDIR come from... found by gwen@rtmx.com
deraadt [Thu, 30 Jan 1997 00:51:50 +0000 (00:51 +0000)]
where did .DESTDIR come from... found by gwen@rtmx.com

27 years agoHave file recognize PowerPC elf objects. Works for MSB objects currently.
rahnds [Wed, 29 Jan 1997 22:31:46 +0000 (22:31 +0000)]
Have file recognize PowerPC elf objects. Works for MSB objects currently.
Should work for LSB objects?

27 years agoBreak out of infinite loop ftp://home.host/som/path mode if host
millert [Wed, 29 Jan 1997 22:21:32 +0000 (22:21 +0000)]
Break out of infinite loop ftp://home.host/som/path mode if host
does not exist.  Also, use herror, not perror if gethostbynam() fails.

27 years agoonly print passive toggle info is verbose set (like other commands)
millert [Wed, 29 Jan 1997 22:11:36 +0000 (22:11 +0000)]
only print passive toggle info is verbose set (like other commands)

27 years agocalculate string length in format() more efficiently
kstailey [Wed, 29 Jan 1997 18:33:56 +0000 (18:33 +0000)]
calculate string length in format() more efficiently

27 years agoExport comdefaultrate
niklas [Wed, 29 Jan 1997 17:56:35 +0000 (17:56 +0000)]
Export comdefaultrate

27 years ago#include "../../../dev/isa/comreg.h" -> #include "../../../dev/ic/comreg.h"
graichen [Wed, 29 Jan 1997 11:09:22 +0000 (11:09 +0000)]
#include "../../../dev/isa/comreg.h" -> #include "../../../dev/ic/comreg.h"

27 years agosignal.h -> siginfo.h -> time.h fallout
deraadt [Wed, 29 Jan 1997 07:58:35 +0000 (07:58 +0000)]
signal.h -> siginfo.h -> time.h fallout

27 years agoMatch com changes.
downsj [Wed, 29 Jan 1997 06:23:31 +0000 (06:23 +0000)]
Match com changes.

27 years agogetopt & int
deraadt [Wed, 29 Jan 1997 01:28:03 +0000 (01:28 +0000)]
getopt & int

27 years agorepair quotactl() types
deraadt [Tue, 28 Jan 1997 21:28:43 +0000 (21:28 +0000)]
repair quotactl() types

27 years agodo not call err/errx with extra newlines
deraadt [Tue, 28 Jan 1997 21:05:24 +0000 (21:05 +0000)]
do not call err/errx with extra newlines

27 years agogetcwd() not getwd()
millert [Tue, 28 Jan 1997 20:48:40 +0000 (20:48 +0000)]
getcwd() not getwd()

27 years agoPut back lost VOP_GETATTR call, but in a better place
niklas [Tue, 28 Jan 1997 18:50:21 +0000 (18:50 +0000)]
Put back lost VOP_GETATTR call, but in a better place

27 years agouse scsiprint
deraadt [Tue, 28 Jan 1997 10:53:41 +0000 (10:53 +0000)]
use scsiprint

27 years agohp300 compat for siginfo
deraadt [Tue, 28 Jan 1997 09:01:31 +0000 (09:01 +0000)]
hp300 compat for siginfo

27 years agodeal with siginfo addition
deraadt [Tue, 28 Jan 1997 09:01:02 +0000 (09:01 +0000)]
deal with siginfo addition

27 years agorepairs by msaitoh@spa.is.uec.ac.jp
deraadt [Tue, 28 Jan 1997 07:16:41 +0000 (07:16 +0000)]
repairs by msaitoh@spa.is.uec.ac.jp

27 years agofor total use -t; tsarna@endicor.com
deraadt [Tue, 28 Jan 1997 07:12:25 +0000 (07:12 +0000)]
for total use -t; tsarna@endicor.com

27 years agointuit more info from dmesg, hubert.feyrer@rz.uni-regensburg.de
deraadt [Tue, 28 Jan 1997 07:07:36 +0000 (07:07 +0000)]
intuit more info from dmesg, hubert.feyrer@rz.uni-regensburg.de

27 years agoOnly print the partition if doing multiple devices.
millert [Tue, 28 Jan 1997 04:21:25 +0000 (04:21 +0000)]
Only print the partition if doing multiple devices.

27 years agoRevert back to old fsirand but do things a cylinder group at a time
millert [Tue, 28 Jan 1997 04:14:55 +0000 (04:14 +0000)]
Revert back to old fsirand but do things a cylinder group at a time
and allow multiple devices.

27 years agoadd addr arg to sendsig/trapsignal; no siginfo_t support yet
deraadt [Tue, 28 Jan 1997 03:54:52 +0000 (03:54 +0000)]
add addr arg to sendsig/trapsignal; no siginfo_t support yet

27 years agoencourage a few more udp whacks at the server
deraadt [Tue, 28 Jan 1997 02:22:35 +0000 (02:22 +0000)]
encourage a few more udp whacks at the server

27 years agoFaster fsirand based in part on code from fsck_ffs.
millert [Mon, 27 Jan 1997 23:21:55 +0000 (23:21 +0000)]
Faster fsirand based in part on code from fsck_ffs.

27 years agoselect subsystem si_pid becomes si_selpid, to not conflict against user/kernel siginf...
deraadt [Mon, 27 Jan 1997 23:20:59 +0000 (23:20 +0000)]
select subsystem si_pid becomes si_selpid, to not conflict against user/kernel siginfo si_pid #define

27 years agoadd another parameter to trapsignal() and sendsig() -- fault addr to be
deraadt [Mon, 27 Jan 1997 22:47:57 +0000 (22:47 +0000)]
add another parameter to trapsignal() and sendsig() -- fault addr to be
delivered with in the siginfo information

27 years agoremove items that are no longer an issue.
rahnds [Mon, 27 Jan 1997 22:32:29 +0000 (22:32 +0000)]
remove items that are no longer an issue.

27 years agoPatches file can be removed. All change necessary to build powerpc
rahnds [Mon, 27 Jan 1997 22:01:45 +0000 (22:01 +0000)]
Patches file can be removed. All change necessary to build powerpc
port are now checked in. Doesn't necessarily mean that the port
doesn't need more work...

27 years agoSupport fdisk on bigendian systems. Does the necessary byte swabbing to
rahnds [Mon, 27 Jan 1997 21:57:34 +0000 (21:57 +0000)]
Support fdisk on bigendian systems. Does the necessary byte swabbing to
read and write the fdisk label. Added powerpc to systems to build this for.
Currently uses local functions getshort, putshort, getlong, and putlong.
These functions probably should be moved and renamed. Something like
htoles, letohs, htolel, letohl, or htole16, htole32 should be used instead.

27 years agosecurity
dm [Mon, 27 Jan 1997 20:44:12 +0000 (20:44 +0000)]
security

27 years agoprototyping problems, PR#71, felix@mamba.pond.sub.org
deraadt [Mon, 27 Jan 1997 20:34:10 +0000 (20:34 +0000)]
prototyping problems, PR#71, felix@mamba.pond.sub.org

27 years agoAdded a WARNING about not using it to detect back doors.
bitblt [Mon, 27 Jan 1997 20:14:21 +0000 (20:14 +0000)]
Added a WARNING about not using it to detect back doors.

27 years agobad chr->blk mappings; randy@rtmx.com
deraadt [Mon, 27 Jan 1997 19:50:04 +0000 (19:50 +0000)]
bad chr->blk mappings; randy@rtmx.com

27 years agodefine AOUT_MACHTYPE. This is OpenBSD/vax not OpenBSD bigendian....-moj
maja [Mon, 27 Jan 1997 13:45:06 +0000 (13:45 +0000)]
define AOUT_MACHTYPE. This is OpenBSD/vax not OpenBSD bigendian....-moj

27 years agoNetBSD PR#3147. From Walter Ruetten--walter@ghpc8.ihf.rwth-aachen.de.
briggs [Mon, 27 Jan 1997 13:27:17 +0000 (13:27 +0000)]
NetBSD PR#3147.  From Walter Ruetten--walter@ghpc8.ihf.rwth-aachen.de.
- Truncate video address in PTE.  Apparently some cards use wierd offsets.

27 years agoSupport lchown(2).
downsj [Mon, 27 Jan 1997 09:33:08 +0000 (09:33 +0000)]
Support lchown(2).

27 years agomore #define fallout from union hiding in siginfo
deraadt [Mon, 27 Jan 1997 07:57:03 +0000 (07:57 +0000)]
more #define fallout from union hiding in siginfo

27 years agochange prompt to ddb to match man page ddb(4)
deraadt [Mon, 27 Jan 1997 07:53:53 +0000 (07:53 +0000)]
change prompt to ddb to match man page ddb(4)

27 years agoFallout from signal.h's inclusion of sys/time.h...
millert [Mon, 27 Jan 1997 07:32:33 +0000 (07:32 +0000)]
Fallout from signal.h's inclusion of sys/time.h...

27 years agoSet MACHINE_ARCH only if it's not already in the environment. Update
briggs [Mon, 27 Jan 1997 05:24:09 +0000 (05:24 +0000)]
Set MACHINE_ARCH only if it's not already in the environment.  Update
comment accordingly.  Patch from Dale Rahn.

27 years agoNo more static buffers. We can operate on any sized files now.
millert [Mon, 27 Jan 1997 04:06:49 +0000 (04:06 +0000)]
No more static buffers.  We can operate on any sized files now.

27 years agofix typo
millert [Mon, 27 Jan 1997 03:40:58 +0000 (03:40 +0000)]
fix typo

27 years agoFix another 16 bit operation on a 32 bit quantity.
rahnds [Mon, 27 Jan 1997 03:40:09 +0000 (03:40 +0000)]
Fix another 16 bit operation on a 32 bit quantity.
don't do and of 16 bit quantity on a 32 bit register.
Also gets rid of the assembler warning/error.

27 years agogive up on si_pid for now
deraadt [Mon, 27 Jan 1997 03:18:09 +0000 (03:18 +0000)]
give up on si_pid for now