openbsd
27 years agoDo the F_GETLK_SVR3 support not depending on ibcs2, as sparc does not look
niklas [Sun, 19 Jan 1997 00:43:40 +0000 (00:43 +0000)]
Do the F_GETLK_SVR3 support not depending on ibcs2, as sparc does not look
there

27 years agoUse scsiprint (and remove scsiprint from esp.c).
briggs [Sat, 18 Jan 1997 17:58:37 +0000 (17:58 +0000)]
Use scsiprint (and remove scsiprint from esp.c).

27 years agoilliminate memset gcc generated call, just like prev commit to
mickey [Sat, 18 Jan 1997 17:53:54 +0000 (17:53 +0000)]
illiminate memset gcc generated call, just like prev commit to
the XNS code.

27 years agoDo not partially initialize a structure at declaration in a function.
briggs [Sat, 18 Jan 1997 17:31:02 +0000 (17:31 +0000)]
Do not partially initialize a structure at declaration in a function.
This causes gcc to generate a memset() on the m68k.  Instead, bzero
and initialize the structure later in the function.

27 years agoscsi->moreluns is a bitfield based on target--should be u_int16_t, now.
briggs [Sat, 18 Jan 1997 16:18:32 +0000 (16:18 +0000)]
scsi->moreluns is a bitfield based on target--should be u_int16_t, now.

27 years agoOpenBSD uses HOSTCC not HOSTED_CC, per tradition
niklas [Sat, 18 Jan 1997 15:30:10 +0000 (15:30 +0000)]
OpenBSD uses HOSTCC not HOSTED_CC, per tradition

27 years agoDo not doubletrap when curproc->p_addr is zero, as it is during autoconfig.
niklas [Sat, 18 Jan 1997 15:17:38 +0000 (15:17 +0000)]
Do not doubletrap when curproc->p_addr is zero, as it is during autoconfig.

27 years agounlink /tmp file on failure too.
mickey [Sat, 18 Jan 1997 15:12:44 +0000 (15:12 +0000)]
unlink /tmp file on failure too.

27 years agoprotect from multiple includes (required by gpl_math_emulate)
mickey [Sat, 18 Jan 1997 13:39:28 +0000 (13:39 +0000)]
protect from multiple includes (required by gpl_math_emulate)

27 years agomove the RB_TIMEBAD handling to where "howto" is reachable
niklas [Sat, 18 Jan 1997 12:48:01 +0000 (12:48 +0000)]
move the RB_TIMEBAD handling to where "howto" is reachable

27 years agoAvoid a double trap
niklas [Sat, 18 Jan 1997 12:42:02 +0000 (12:42 +0000)]
Avoid a double trap

27 years agoUse scsiprint
niklas [Sat, 18 Jan 1997 12:26:21 +0000 (12:26 +0000)]
Use scsiprint

27 years agoBoundary error (s/<=/</)
niklas [Sat, 18 Jan 1997 12:24:25 +0000 (12:24 +0000)]
Boundary error (s/<=/</)

27 years agosyslog.h -> sys/syslog.h
downsj [Sat, 18 Jan 1997 08:29:19 +0000 (08:29 +0000)]
syslog.h -> sys/syslog.h

THIS IS THE KERNEL, DAMNIT.

27 years agomove random, add ipl.
downsj [Sat, 18 Jan 1997 08:17:46 +0000 (08:17 +0000)]
move random, add ipl.

27 years agoAdd stuff from /sys/conf/GENERIC, including IPFILTER.
downsj [Sat, 18 Jan 1997 08:16:56 +0000 (08:16 +0000)]
Add stuff from /sys/conf/GENERIC, including IPFILTER.

27 years agoadd ipfilter
downsj [Sat, 18 Jan 1997 08:13:56 +0000 (08:13 +0000)]
add ipfilter

27 years agorandom -> 32, ipl -> 33
downsj [Sat, 18 Jan 1997 08:05:19 +0000 (08:05 +0000)]
random -> 32, ipl -> 33

27 years agodk_mountroot(), hp300 style.
downsj [Sat, 18 Jan 1997 06:43:05 +0000 (06:43 +0000)]
dk_mountroot(), hp300 style.

27 years agoGross hack for hp300, and a fix for NO_LSEEK as pointed out by briggs.
downsj [Sat, 18 Jan 1997 03:28:50 +0000 (03:28 +0000)]
Gross hack for hp300, and a fix for NO_LSEEK as pointed out by briggs.

27 years agoEnsure libsa and libkern get compiled with -Dhp300
downsj [Sat, 18 Jan 1997 03:18:18 +0000 (03:18 +0000)]
Ensure libsa and libkern get compiled with -Dhp300

27 years agomissed this one
downsj [Sat, 18 Jan 1997 02:25:48 +0000 (02:25 +0000)]
missed this one

27 years agoSync. with current NetBSD--keeping local changes.
briggs [Sat, 18 Jan 1997 02:24:11 +0000 (02:24 +0000)]
Sync. with current NetBSD--keeping local changes.

27 years agommap for TYNE. mods in ps/2 mouse driver to be more generic...
pefo [Fri, 17 Jan 1997 23:13:57 +0000 (23:13 +0000)]
mmap for TYNE. mods in ps/2 mouse driver to be more generic...

27 years agofrexp version from m68k, both are IEEE so should be fine.
rahnds [Fri, 17 Jan 1997 21:39:20 +0000 (21:39 +0000)]
frexp version from m68k, both are IEEE so should be fine.

Ok what other routines are missing at this point I wonder,
Do we have a standards compilance test? If so, it really needs to
be run on this port.

27 years agoadd tag
kstailey [Fri, 17 Jan 1997 17:15:15 +0000 (17:15 +0000)]
add tag

27 years agoAdd OpenBSD tag
millert [Fri, 17 Jan 1997 16:12:36 +0000 (16:12 +0000)]
Add OpenBSD tag

27 years agoAdd OpenBSD tags (was in wrong dir for previous commit)
millert [Fri, 17 Jan 1997 16:12:33 +0000 (16:12 +0000)]
Add OpenBSD tags (was in wrong dir for previous commit)

27 years agoAdd OpenBSD tags
millert [Fri, 17 Jan 1997 16:11:35 +0000 (16:11 +0000)]
Add OpenBSD tags

27 years agoPossible buf oflow.
millert [Fri, 17 Jan 1997 16:10:52 +0000 (16:10 +0000)]
Possible buf oflow.

27 years agoOpenBSD tags
millert [Fri, 17 Jan 1997 16:07:27 +0000 (16:07 +0000)]
OpenBSD tags

27 years agoOpenBSD tags
millert [Fri, 17 Jan 1997 15:54:14 +0000 (15:54 +0000)]
OpenBSD tags

27 years agopossible oflow
millert [Fri, 17 Jan 1997 15:51:59 +0000 (15:51 +0000)]
possible oflow

27 years agorindex -> strrchr
millert [Fri, 17 Jan 1997 15:47:51 +0000 (15:47 +0000)]
rindex -> strrchr

27 years agoFix potential buf oflow wrt strerror and sprintf.
millert [Fri, 17 Jan 1997 15:46:55 +0000 (15:46 +0000)]
Fix potential buf oflow wrt strerror and sprintf.

27 years agonote about Vanya Grozniy
mickey [Fri, 17 Jan 1997 14:51:36 +0000 (14:51 +0000)]
note about Vanya Grozniy

27 years agoDo IPFILTER the OpenBSD way... -moj
maja [Fri, 17 Jan 1997 08:44:25 +0000 (08:44 +0000)]
Do IPFILTER the OpenBSD way... -moj

27 years agomore subdirs
downsj [Fri, 17 Jan 1997 08:40:58 +0000 (08:40 +0000)]
more subdirs

27 years agomore new files
downsj [Fri, 17 Jan 1997 08:36:51 +0000 (08:36 +0000)]
more new files

27 years agohp300 bootblocks, sync'd with NetBSD 011697, with changes and a new build
downsj [Fri, 17 Jan 1997 08:32:37 +0000 (08:32 +0000)]
hp300 bootblocks, sync'd with NetBSD 011697, with changes and a new build
method.

27 years agomore r?index -> strr?chr changes
millert [Fri, 17 Jan 1997 07:51:41 +0000 (07:51 +0000)]
more r?index -> strr?chr changes

27 years agono need to link with -lcompat
millert [Fri, 17 Jan 1997 07:51:06 +0000 (07:51 +0000)]
no need to link with -lcompat

27 years agonuke rindex decl
millert [Fri, 17 Jan 1997 07:49:22 +0000 (07:49 +0000)]
nuke rindex decl

27 years agosys/stat.h gets included here, and STAYS included here, thank you
downsj [Fri, 17 Jan 1997 07:28:15 +0000 (07:28 +0000)]
sys/stat.h gets included here, and STAYS included here, thank you
very much.

27 years agomore r?index -> strr?chr
millert [Fri, 17 Jan 1997 07:18:02 +0000 (07:18 +0000)]
more r?index -> strr?chr

27 years agor?index -> strr?chr
millert [Fri, 17 Jan 1997 07:10:42 +0000 (07:10 +0000)]
r?index -> strr?chr

27 years agolite2 daily + our changes. We can remove old tmp files now that fts(3)
millert [Fri, 17 Jan 1997 06:18:19 +0000 (06:18 +0000)]
lite2 daily + our changes.  We can remove old tmp files now that fts(3)
is safe and we have -execdir.

27 years agoFinal fix to make fts(3) spoof-proof.
millert [Fri, 17 Jan 1997 06:12:53 +0000 (06:12 +0000)]
Final fix to make fts(3) spoof-proof.

27 years agodon't update battery backed up clock if system time is wrong from begin
kstailey [Fri, 17 Jan 1997 05:53:37 +0000 (05:53 +0000)]
don't update battery backed up clock if system time is wrong from begin
in ddb.

27 years agoadded "see also" refs to cdio & chio
kstailey [Fri, 17 Jan 1997 05:45:35 +0000 (05:45 +0000)]
added "see also" refs to cdio & chio

27 years agoncr_print() -> scsiprint()
kstailey [Fri, 17 Jan 1997 05:32:08 +0000 (05:32 +0000)]
ncr_print() -> scsiprint()

27 years agoFixes:
downsj [Fri, 17 Jan 1997 04:49:01 +0000 (04:49 +0000)]
Fixes:

pull in ../../Makefile.inc
install mailq and newaliases in /usr/bin

27 years agoprevent scsiconf.c:110: warning: unused variable `l'
kstailey [Thu, 16 Jan 1997 20:47:32 +0000 (20:47 +0000)]
prevent scsiconf.c:110: warning: unused variable `l'
also, #ifdef 0 -> #ifndef __OpenBSD__

27 years agodo not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates...
kstailey [Thu, 16 Jan 1997 20:43:29 +0000 (20:43 +0000)]
do not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates suspended

27 years agodo not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates...
kstailey [Thu, 16 Jan 1997 19:57:17 +0000 (19:57 +0000)]
do not call resettodr() if RB_TIMEBAD is set due to being in ddb with clock updates suspended

27 years agoahaprint() & btprint() -> scsiprint()
kstailey [Thu, 16 Jan 1997 19:47:47 +0000 (19:47 +0000)]
ahaprint() & btprint() -> scsiprint()

27 years agosiprint() -> scsiprint()
kstailey [Thu, 16 Jan 1997 19:42:49 +0000 (19:42 +0000)]
siprint() -> scsiprint()

27 years agoDon't define MAXBSIZE here. -moj
maja [Thu, 16 Jan 1997 14:26:25 +0000 (14:26 +0000)]
Don't define MAXBSIZE here. -moj

27 years agoAdded scsiprint from NetBSD, needed by new driver for VAX. -moj
maja [Thu, 16 Jan 1997 14:23:32 +0000 (14:23 +0000)]
Added scsiprint from NetBSD, needed by new driver for VAX. -moj

27 years agoSync to NetBSD 970110
niklas [Thu, 16 Jan 1997 09:23:08 +0000 (09:23 +0000)]
Sync to NetBSD 970110

27 years agoUse RB_TIMEBAD in boot() to know not to update the battery backed up clock
kstailey [Thu, 16 Jan 1997 08:08:39 +0000 (08:08 +0000)]
Use RB_TIMEBAD in boot() to know not to update the battery backed up clock
via resettodr().  Make Sun3-only command "machine reboot" only print
a warning that the command is obsolete and that you should use the "boot"
command instead.

27 years agouse RB_TIMEBAD to indicate that the time is wrong and should not be copied
kstailey [Thu, 16 Jan 1997 08:03:56 +0000 (08:03 +0000)]
use RB_TIMEBAD to indicate that the time is wrong and should not be copied
to the battery backed up clock via resettodr() in boot().

27 years agodisambiguate somewhat
kstailey [Thu, 16 Jan 1997 07:27:22 +0000 (07:27 +0000)]
disambiguate somewhat

27 years agoCorrect logic such that newfs w/o -t on a device w/o a label
millert [Thu, 16 Jan 1997 05:48:02 +0000 (05:48 +0000)]
Correct logic such that newfs w/o -t on a device w/o a label
defaults to ffs like people expect.

27 years agogetopt(3) fix that I missed in the previous sweep.
millert [Thu, 16 Jan 1997 05:27:46 +0000 (05:27 +0000)]
getopt(3) fix that I missed in the previous sweep.

27 years agoMan pages for libedit, from NetBSD.
millert [Thu, 16 Jan 1997 05:20:28 +0000 (05:20 +0000)]
Man pages for libedit, from NetBSD.

27 years agoMerge in NetBSD libedit changes and new man pages. Also fix some
millert [Thu, 16 Jan 1997 05:18:27 +0000 (05:18 +0000)]
Merge in NetBSD libedit changes and new man pages.  Also fix some
strncpy() usage in their code.  NetBSD change log was:
    * add a man page for the editline routines
    * add a man page describing editrc
    * fix bugs in el_parse():
      * didn't execute command when program name matched (test reversed)
      * was checking against empty string instead of program name
      * after checks, command to run also pointed to empty string
    * document ^char and \ escape sequences
    * when parsing ^char control chars, check the correct char when determining
      validity (previously, ^char was a NOP interpreted as the literal string
      because of this bug)
    * Implement CC_REDISPLAY, which (unlike CC_REFRESH) redraws the entire input
    * line (a la ^R). This is useful if the binding outputs information and
    * mucks up the input line. To be used in ``list-choices'' bindings (refer
    * to the ^D binding in csh when filec is set)

27 years agoSpeak in English and note that editline(3) now exists.
millert [Thu, 16 Jan 1997 04:57:04 +0000 (04:57 +0000)]
Speak in English and note that editline(3) now exists.

27 years agomachdep.c
kstailey [Thu, 16 Jan 1997 04:22:49 +0000 (04:22 +0000)]
machdep.c

27 years agoadded RB_TIMEBAD bootflag
kstailey [Thu, 16 Jan 1997 04:19:41 +0000 (04:19 +0000)]
added RB_TIMEBAD bootflag

27 years agoUpdate from NetBSD: adds chlen command and makes -Wall happy.
millert [Thu, 16 Jan 1997 04:04:18 +0000 (04:04 +0000)]
Update from NetBSD: adds chlen command and makes -Wall happy.

27 years agoall modified code can now compile with -Werror -Wall -Wstrict-prototypes
kstailey [Thu, 16 Jan 1997 04:03:40 +0000 (04:03 +0000)]
all modified code can now compile with -Werror -Wall -Wstrict-prototypes
CAVEAT: turning off -O2 produces warnings about "defined but not used"
        functions from libkern.h

removed internal copy of gets() replaced with call to getsn()

fixed #ifdef ... #endif mismatch in swapgeneric.c

fixed printf() in if_ie.c that was missing an argument

fixed si.c so that it compiles

added tags to all edited files

27 years agoFrom NetBSD: Warn about potentially unsafe uid/gid overrides.
millert [Thu, 16 Jan 1997 03:58:23 +0000 (03:58 +0000)]
From NetBSD: Warn about potentially unsafe uid/gid overrides.

27 years agoSupport VM_PSSTRINGS. Man, this has been sitting in my tree for a while...
millert [Thu, 16 Jan 1997 03:57:31 +0000 (03:57 +0000)]
Support VM_PSSTRINGS.  Man, this has been sitting in my tree for a while...

27 years agogetopt(3) returns an int, not char.
millert [Thu, 16 Jan 1997 00:35:52 +0000 (00:35 +0000)]
getopt(3) returns an int, not char.

27 years agogetopt(3) returns -1 when out of args, not EOF, whee!
millert [Wed, 15 Jan 1997 23:40:20 +0000 (23:40 +0000)]
getopt(3) returns -1 when out of args, not EOF, whee!

27 years agosync with NetBSD 970112 -moj
maja [Wed, 15 Jan 1997 23:24:12 +0000 (23:24 +0000)]
sync with NetBSD 970112 -moj

27 years agoadd prototype of reboot2() via machdep.h
kstailey [Wed, 15 Jan 1997 23:00:00 +0000 (23:00 +0000)]
add prototype of reboot2() via machdep.h

27 years agomoved init of ret in randomioctl() to better location
kstailey [Wed, 15 Jan 1997 22:33:53 +0000 (22:33 +0000)]
moved init of ret in randomioctl() to better location

27 years agoFrom NetBSD: make testdb() fail if database version string has length zero.
millert [Wed, 15 Jan 1997 22:08:15 +0000 (22:08 +0000)]
From NetBSD: make testdb() fail if database version string has length zero.
Also, KNF, b* -> mem*, getopt tests against -1, not EOF, and index -> strchr.
Added OpenBSD tags.

27 years agoWell, actually this seemed to be a bug in generic code, that
rahnds [Wed, 15 Jan 1997 15:22:13 +0000 (15:22 +0000)]
Well, actually this seemed to be a bug in generic code, that
was being exercised. running with a 8k fs blk size and 4 k page
size was a problem. Now running with fs blk size == page size works
much better. The fix checked in a week or to back probably would fix
this too.

27 years agoadded prototypes, made some functions static, removed unused variables
kstailey [Wed, 15 Jan 1997 07:09:29 +0000 (07:09 +0000)]
added prototypes, made some functions static, removed unused variables
now compiles with -Werror -Wall -Wstrict-prototypes

27 years agoadd IPXIP option commented out, explanation.
mickey [Wed, 15 Jan 1997 07:06:12 +0000 (07:06 +0000)]
add IPXIP option commented out, explanation.

27 years agoextra braces to prevent warning about missing braces
kstailey [Wed, 15 Jan 1997 07:00:19 +0000 (07:00 +0000)]
extra braces to prevent warning about missing braces

27 years agosc_link.adapter_buswidth, set to 16 if wide scsi. if 0 it gets converted
deraadt [Wed, 15 Jan 1997 05:50:27 +0000 (05:50 +0000)]
sc_link.adapter_buswidth, set to 16 if wide scsi. if 0 it gets converted
to 8 internally so that drivers do not need to init it for regular scsi :-)

27 years agomore missing prototypes and other warnings fixed
kstailey [Wed, 15 Jan 1997 05:35:46 +0000 (05:35 +0000)]
more missing prototypes and other warnings fixed

27 years agoMinor formatting tweak from NetBSD (perry) + OpenBSD tags.
millert [Wed, 15 Jan 1997 05:27:55 +0000 (05:27 +0000)]
Minor formatting tweak from NetBSD (perry) + OpenBSD tags.

27 years agoDon't need this, /sys/compat/m68k4k works better.
downsj [Wed, 15 Jan 1997 04:54:45 +0000 (04:54 +0000)]
Don't need this, /sys/compat/m68k4k works better.

OpenBSD/hp300 is now 8k!

27 years agoprevent -Wall warning:
kstailey [Wed, 15 Jan 1997 03:52:27 +0000 (03:52 +0000)]
prevent -Wall warning:
nfs_vfsops.c:456: warning: `adjsock' might be used uninitialized in this function

27 years agoprevent warning:
kstailey [Wed, 15 Jan 1997 03:27:14 +0000 (03:27 +0000)]
prevent warning:
in_pcb.c:182: warning: `old' might be used uninitialized in this function

27 years agoprevent warning:
kstailey [Wed, 15 Jan 1997 03:19:24 +0000 (03:19 +0000)]
prevent warning:
ppp_tty.c:790: warning: `s' might be used uninitialized in this function

27 years agofixed warning:
kstailey [Wed, 15 Jan 1997 03:06:28 +0000 (03:06 +0000)]
fixed warning:
kernfs_vnops.c:305: warning: long unsigned int format, u_int arg (arg 3)

27 years ago8k
downsj [Wed, 15 Jan 1997 02:55:29 +0000 (02:55 +0000)]
8k

27 years agoprevent this warning:
kstailey [Wed, 15 Jan 1997 02:03:53 +0000 (02:03 +0000)]
prevent this warning:
rnd.c:823: warning: `ret' might be used uninitialized in this function
when compiling with -Wall

27 years agoadded prototypes
kstailey [Wed, 15 Jan 1997 00:41:55 +0000 (00:41 +0000)]
added prototypes

27 years agoAdd DESTDIR support for crt{begin,end}.o (powerpc only so far)
niklas [Wed, 15 Jan 1997 00:36:56 +0000 (00:36 +0000)]
Add DESTDIR support for crt{begin,end}.o (powerpc only so far)

27 years agoClarification. From NetBSD.
millert [Wed, 15 Jan 1997 00:01:22 +0000 (00:01 +0000)]
Clarification.  From NetBSD.

27 years agoRemove locc. -moj
maja [Tue, 14 Jan 1997 14:45:42 +0000 (14:45 +0000)]
Remove locc. -moj

27 years agohack: if we're M68K, also allow us to strip M68K4K. Works for me.
downsj [Tue, 14 Jan 1997 10:33:00 +0000 (10:33 +0000)]
hack: if we're M68K, also allow us to strip M68K4K.  Works for me.

27 years agoUse <fcntl.h>, not <sys/file.h>. Approved by Bob Corbett.
tholo [Tue, 14 Jan 1997 04:47:08 +0000 (04:47 +0000)]
Use <fcntl.h>, not <sys/file.h>.  Approved by Bob Corbett.