]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
26 years agoRemove unused #includes. Spelling. Add rcsid. Do not dot terminate err()
charnier [Mon, 6 Jul 1998 07:12:38 +0000 (07:12 +0000)]
Remove unused #includes. Spelling. Add rcsid. Do not dot terminate err()
strings.

26 years agoAdd rcsid. Remove unused #includes. Spelling.
charnier [Mon, 6 Jul 1998 07:09:13 +0000 (07:09 +0000)]
Add rcsid. Remove unused #includes. Spelling.

26 years agoAdd rcsid, remove unused #includes, spelling.
charnier [Mon, 6 Jul 1998 07:07:41 +0000 (07:07 +0000)]
Add rcsid, remove unused #includes, spelling.

26 years agoRemove unused #include. Add usage().
charnier [Mon, 6 Jul 1998 07:06:15 +0000 (07:06 +0000)]
Remove unused #include. Add usage().

26 years agoCorrect use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3).
charnier [Mon, 6 Jul 1998 07:04:50 +0000 (07:04 +0000)]
Correct use of .Nm. Spelling. Add rcsid, remove unused #includes, use err(3).

26 years agoAdd rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage().
charnier [Mon, 6 Jul 1998 07:02:26 +0000 (07:02 +0000)]
Add rcsid. remove unused #includes. Getopt returns -1 not EOF. Add usage().
Cosmetics in err(3) string.

26 years agoLowercase 1st char. in err(3) strings.
charnier [Mon, 6 Jul 1998 06:59:52 +0000 (06:59 +0000)]
Lowercase 1st char. in err(3) strings.

26 years agoremoce unused #include.
charnier [Mon, 6 Jul 1998 06:58:32 +0000 (06:58 +0000)]
remoce unused #include.

26 years agoCorrect .Nm use. Add rcsid. Use min for minutes instead of mn.
charnier [Mon, 6 Jul 1998 06:56:08 +0000 (06:56 +0000)]
Correct .Nm use. Add rcsid. Use min for minutes instead of mn.

26 years agoUpdate man page to allow adding address_family when -l is used (this is a no op
charnier [Mon, 6 Jul 1998 06:53:43 +0000 (06:53 +0000)]
Update man page to allow adding address_family when -l is used (this is a no op
for now). Correct use of .Nm. Short usage string (see man page for full list).
Spelling.  Use err(3).

26 years agoCorrect use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
charnier [Mon, 6 Jul 1998 06:44:36 +0000 (06:44 +0000)]
Correct use of .Nm, use .Bx Free for FreeBSD. Add rcsid, remove unused
#includes. Spelling. Use err(3) and add usage().

26 years agoAdd the ability to suspend as well as hibernate to the system. This
imp [Mon, 6 Jul 1998 06:29:07 +0000 (06:29 +0000)]
Add the ability to suspend as well as hibernate to the system.  This
is the kernel part of my commits, the userlevel stuff will be done in
a separate commit.  Add the ability to suspend as well as hibernate to
syscons.  Create a new virtual key like hibernate for suspend.  Update
apm_bios.h to define more apm bios goodies.

26 years agoDon't expect the new code to be used without the right option file being
julian [Mon, 6 Jul 1998 05:04:33 +0000 (05:04 +0000)]
Don't expect the new code to be used without the right option file being
included.

26 years agoFix braino in switching to TAILQ macro.
julian [Mon, 6 Jul 1998 05:00:53 +0000 (05:00 +0000)]
Fix braino in switching to TAILQ macro.

26 years agoForgot to register the IPFIREWALL_FORWARD option.
julian [Mon, 6 Jul 1998 04:55:22 +0000 (04:55 +0000)]
Forgot to register the IPFIREWALL_FORWARD option.

26 years agoDocument `-I' and `-R' options to `pkg_info'.
jkoshy [Mon, 6 Jul 1998 04:39:20 +0000 (04:39 +0000)]
Document `-I' and `-R' options to `pkg_info'.

PR: 7155

26 years agoSupport for IPFW based transparent forwarding.
julian [Mon, 6 Jul 1998 03:20:19 +0000 (03:20 +0000)]
Support for IPFW based transparent forwarding.
Any packet that can be matched by a ipfw rule can be redirected
transparently to another port or machine. Redirection to another port
mostly makes sense with tcp, where a session can be set up
between a proxy and an unsuspecting client. Redirection to another machine
requires that the other machine also be expecting to receive the forwarded
packets, as their headers will not have been modified.

/sbin/ipfw must be recompiled!!!

Reviewed by: Peter Wemm <peter@freebsd.org>
Submitted by: Chrisy Luke <chrisy@flix.net>

26 years agoDEVFS completely bypasses the cdevsw and bdevsw tables now.
julian [Sun, 5 Jul 1998 23:10:22 +0000 (23:10 +0000)]
DEVFS completely bypasses the cdevsw and bdevsw tables now.
Each devfs node has (and has had fro a while) a pointer directly to
the correct cdefsw entry so just use it instead of doing the lookup.

There are several other places in the kernel that still use the tables
however, so they can't go away yet..

26 years agofix braino from yesterdays' megacommit
julian [Sun, 5 Jul 1998 20:33:18 +0000 (20:33 +0000)]
fix braino from yesterdays' megacommit

Not sure of the result of it..
(may or may not effect anything) but it's fixed now.
(found by: comparing what cvsup sent back to me with what I tested..)

26 years agoAdd support for kernel gdb.
dfr [Sun, 5 Jul 1998 12:24:18 +0000 (12:24 +0000)]
Add support for kernel gdb.

26 years agoUse byte/word access in badaddr if relevant.
dfr [Sun, 5 Jul 1998 12:22:56 +0000 (12:22 +0000)]
Use byte/word access in badaddr if relevant.

26 years agoSupport channel B as well as channel A.
dfr [Sun, 5 Jul 1998 12:16:55 +0000 (12:16 +0000)]
Support channel B as well as channel A.

26 years agoAdd basic support for 2117x pci chipsets. Currently only pyxis (21174)
dfr [Sun, 5 Jul 1998 12:16:15 +0000 (12:16 +0000)]
Add basic support for 2117x pci chipsets.  Currently only pyxis (21174)
is supported.  Older chipsets will be easy to support later but right now,
I just want to boot my 164LX scratch machine :-).

26 years agoAdd macros for byte/word sized load and store instructions.
dfr [Sun, 5 Jul 1998 12:14:15 +0000 (12:14 +0000)]
Add macros for byte/word sized load and store instructions.

26 years agoAdd declaration of the NetBSD/alpha bootinfo.
dfr [Sun, 5 Jul 1998 12:13:18 +0000 (12:13 +0000)]
Add declaration of the NetBSD/alpha bootinfo.

26 years agoFirst steps at supporting EB164 (AlphaPC 164, 164LX, 164SX).
dfr [Sun, 5 Jul 1998 12:10:10 +0000 (12:10 +0000)]
First steps at supporting EB164 (AlphaPC 164, 164LX, 164SX).

26 years agoDefine bio_imask to allow the ncr driver to compile. The idea of passing
dfr [Sun, 5 Jul 1998 12:08:59 +0000 (12:08 +0000)]
Define bio_imask to allow the ncr driver to compile.  The idea of passing
mask address around when registering interrupts is wrong IMHO.  We should
use a priority level like IPL_BIO and the lower levels can then translate
it into a mask if they want.

26 years agoMake the prom console work as a real device as well as a console.
dfr [Sun, 5 Jul 1998 11:59:44 +0000 (11:59 +0000)]
Make the prom console work as a real device as well as a console.

26 years agoMake sure hold_count for level 2 maps is maintained properly.
dfr [Sun, 5 Jul 1998 11:58:35 +0000 (11:58 +0000)]
Make sure hold_count for level 2 maps is maintained properly.
Simplify pmap_mapdev (its still totally wrong for the alpha).

26 years agoDon't truncate the return value of mmap to sizeof(int).
dfr [Sun, 5 Jul 1998 11:56:52 +0000 (11:56 +0000)]
Don't truncate the return value of mmap to sizeof(int).

26 years agoMinor tidying.
dfr [Sun, 5 Jul 1998 10:14:32 +0000 (10:14 +0000)]
Minor tidying.

26 years agoUse u_int32_t in NQFHHASH instead of u_long.
dfr [Sun, 5 Jul 1998 10:13:22 +0000 (10:13 +0000)]
Use u_int32_t in NQFHHASH instead of u_long.

26 years agoRemove the two single step breakpoints in the reverse order of setting to
dfr [Sun, 5 Jul 1998 10:12:18 +0000 (10:12 +0000)]
Remove the two single step breakpoints in the reverse order of setting to
ensure that single stepping a branch to the next instruction works.

26 years agoAdd symtab parameter to X_db_symbol_values.
dfr [Sun, 5 Jul 1998 10:11:20 +0000 (10:11 +0000)]
Add symtab parameter to X_db_symbol_values.

26 years agoSupport 'g' format for printing 8 byte values.
dfr [Sun, 5 Jul 1998 10:10:33 +0000 (10:10 +0000)]
Support 'g' format for printing 8 byte values.

26 years agoThere is no such thing any more as "struct bdevsw".
julian [Sat, 4 Jul 1998 22:30:26 +0000 (22:30 +0000)]
There is no such thing any more as "struct bdevsw".

There is only cdevsw (which should be renamed in a later edit to deventry
or something). cdevsw contains the union of what were in both bdevsw an
cdevsw entries.  The bdevsw[] table stiff exists and is a second pointer
to the cdevsw entry of the device. it's major is in d_bmaj rather than
d_maj. some cleanup still to happen (e.g. dsopen now gets two pointers
to the same cdevsw struct instead of one to a bdevsw and one to a cdevsw).

rawread()/rawwrite() went away as part of this though it's not strictly
the same  patch, just that it involves all the same lines in the drivers.

cdroms no longer have write() entries (they did have rawwrite (?)).
tapes no longer have support for bdev operations.

Reviewed by: Eivind Eklund and Mike Smith
Changes suggested by eivind.

26 years agoFix spelling error.
jdp [Sat, 4 Jul 1998 22:10:20 +0000 (22:10 +0000)]
Fix spelling error.

26 years agoDon't disable ^D in interactive mode.
brian [Sat, 4 Jul 1998 22:04:12 +0000 (22:04 +0000)]
Don't disable ^D in interactive mode.
Wished for by: pkh

26 years agoDon't require context when there's only one link
brian [Sat, 4 Jul 1998 22:03:56 +0000 (22:03 +0000)]
Don't require context when there's only one link
for ``open lcp''

26 years agoVOP_STRATEGY grows an (struct vnode *) argument
julian [Sat, 4 Jul 1998 20:45:42 +0000 (20:45 +0000)]
VOP_STRATEGY grows an (struct vnode *) argument
as the value in b_vp is often not really what you want.
(and needs to be frobbed). more cleanups will follow this.
Reviewed by: Bruce Evans <bde@freebsd.org>

26 years agoHmm, braino in last commit.
phk [Sat, 4 Jul 1998 19:29:15 +0000 (19:29 +0000)]
Hmm, braino in last commit.

26 years agoChange the sign on a race-condition, so that instead of ending up several
phk [Sat, 4 Jul 1998 19:12:21 +0000 (19:12 +0000)]
Change the sign on a race-condition, so that instead of ending up several
tens of milliseconds out in the future we end up the right place with
a subweeniesecond error.

26 years agoRemove '???' because it generates an annoying message about
steve [Sat, 4 Jul 1998 19:00:47 +0000 (19:00 +0000)]
Remove '???' because it generates an annoying message about
a trigraph being encountered when included.

PR: 7123
Submitted by: Greg Lehey <grog@lemis.com>

26 years agoMF22: check for null pointer.
jkh [Sat, 4 Jul 1998 14:13:01 +0000 (14:13 +0000)]
MF22: check for null pointer.

26 years agoMake things clearer.
brian [Sat, 4 Jul 1998 12:07:03 +0000 (12:07 +0000)]
Make things clearer.
Submitted (some time ago) by: Ted Mittelstaedt <tedm@portsoft.com>

26 years agoVersion 2.0-beta becomes 2.0 :-)
brian [Sat, 4 Jul 1998 10:24:49 +0000 (10:24 +0000)]
Version 2.0-beta becomes 2.0 :-)

26 years agoFix some strange errors of shutting transmitter up when start
semenu [Sat, 4 Jul 1998 08:02:46 +0000 (08:02 +0000)]
Fix some strange errors of shutting transmitter up when start
transmition after software reset with no link estabilished yet.
Fix TX DMA stop method (queue last packet to stop).

PR: i386/6578

26 years ago6668/divert -> 8668/divert. IRC uses 6668.
brian [Sat, 4 Jul 1998 01:57:15 +0000 (01:57 +0000)]
6668/divert -> 8668/divert.  IRC uses 6668.

26 years agoSuggest port 8668 rather than 6668 for natd.
brian [Sat, 4 Jul 1998 01:53:54 +0000 (01:53 +0000)]
Suggest port 8668 rather than 6668 for natd.
6668 is IRC.

26 years agoFix bug from last commit: don't SEGV when reading as part of a pipe.
hoek [Sat, 4 Jul 1998 01:22:07 +0000 (01:22 +0000)]
Fix bug from last commit: don't SEGV when reading as part of a pipe.

26 years agoDon't use a struct buf (malloc'd) without first initialising all the fields
julian [Sat, 4 Jul 1998 00:27:48 +0000 (00:27 +0000)]
Don't use a struct buf (malloc'd) without first initialising all the fields
to some known value!
(probable cause of soft updates exploding with vn devices)

26 years agoUse '-e' when viewing helpfile.
hoek [Fri, 3 Jul 1998 23:01:33 +0000 (23:01 +0000)]
Use '-e' when viewing helpfile.

26 years agoRestored revs.1.89-1.90 which I somehow clobbered in rev.1.91.
bde [Fri, 3 Jul 1998 22:37:43 +0000 (22:37 +0000)]
Restored revs.1.89-1.90 which I somehow clobbered in rev.1.91.

26 years agoSync timestamp changes for inodes of special files to disk as late
bde [Fri, 3 Jul 1998 22:17:03 +0000 (22:17 +0000)]
Sync timestamp changes for inodes of special files to disk as late
as possible (when the inode is reclaimed).  Temporarily only do
this if option UFS_LAZYMOD configured and softupdates aren't enabled.
UFS_LAZYMOD is intentionally left out of /sys/conf/options.

This is mainly to avoid almost useless disk i/o on battery powered
machines.  It's silly to write to disk (on the next sync or when the
inode becomes inactive) just because someone hit a key or something
wrote to the screen or /dev/null.

PR: 5577
Previous version reviewed by: phk

26 years agoCentralized in-core inode update. Update the in-core inode directly
bde [Fri, 3 Jul 1998 18:46:52 +0000 (18:46 +0000)]
Centralized in-core inode update.  Update the in-core inode directly
in ufs_setattr() so that there is no need to pass timestamps to
UFS_UPDATE() (everything else just needs the current time).  Ignore
the passed-in timestamps in UFS_UPDATE() and always call ufs_itimes()
(was: itimes()) to do the update.  The timestamps are still passed
so that all the callers don't need to be changed yet.

26 years agoOnly start checking carrier when the datalink state machine
brian [Fri, 3 Jul 1998 17:24:38 +0000 (17:24 +0000)]
Only start checking carrier when the datalink state machine
exceeds DATALINK_READY.  When we go back to READY or less
(eg. ``close lcp''), switch the carrier-checking-timer off again.

This fixes the callback example in ppp.conf.sample.
Noted as broken by: Damian Kuczynski <damian@best.pw.edu.pl>

26 years agoPrevent recursive help)elp)elping.
hoek [Fri, 3 Jul 1998 17:12:10 +0000 (17:12 +0000)]
Prevent recursive help)elp)elping.

26 years agoNot so fast, that was one '0+' too many.
des [Fri, 3 Jul 1998 15:43:20 +0000 (15:43 +0000)]
Not so fast, that was one '0+' too many.

PR: 7124

26 years agoCheck for missing keyboard.
jkh [Fri, 3 Jul 1998 14:34:28 +0000 (14:34 +0000)]
Check for missing keyboard.
PR: 7108
Submitted by: Hellmuth Michaelis <hm@hcs.de>

26 years agoAdd entry for Dell Poweredge XE.
jkh [Fri, 3 Jul 1998 14:04:32 +0000 (14:04 +0000)]
Add entry for Dell Poweredge XE.

Submitted by: Vadim Mikhailov <mvp@braz.ru>

26 years agoUpdate M_EXT support in m_copypacket().
phk [Fri, 3 Jul 1998 08:36:48 +0000 (08:36 +0000)]
Update M_EXT support in m_copypacket().

PR: 7122
Reviewed by: phk
Submitted by: Castor Fu <castor@geocast.com>
Originally forgotten by: julian

26 years agofts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that
phk [Fri, 3 Jul 1998 08:21:05 +0000 (08:21 +0000)]
fts_close calls free(sp), the ISSET(FTS_NOCHDIR) which is a macro that
references sp. The free needs to follow ISSET

PR: 7148
Reviewed by: phk
Submitted by: Ken Mayer <kmayer@freegate.com>

26 years agoReset MNT_ASYNC flag if needed if unmount() should fail.
dg [Fri, 3 Jul 1998 03:47:24 +0000 (03:47 +0000)]
Reset MNT_ASYNC flag if needed if unmount() should fail.
Submitted by: Paul Saab <paul@mu.org>

26 years agoWhen we transfer time from one timecounter to the next, use nanouptime(),
phk [Thu, 2 Jul 1998 21:35:02 +0000 (21:35 +0000)]
When we transfer time from one timecounter to the next, use nanouptime(),
not nanotime();  Otherwise we end up in 2026...

Fix the arg to dummy_get_timecount()

26 years agoFix off by 1 error.
guido [Thu, 2 Jul 1998 19:35:40 +0000 (19:35 +0000)]
Fix off by 1 error.

26 years agoAdd workaround to allow the FreeBSD boot block to work on
wpaul [Thu, 2 Jul 1998 15:36:35 +0000 (15:36 +0000)]
Add workaround to allow the FreeBSD boot block to work on
Kapok Computer Co. notebook with AMI 'WinBIOS' which seems to insist
on having a short jump and nop as the first instructions in the
boot sector code. The prevailing theory is that the BIOS is doing
some sort of boot sector virus detection and refusing to run any
boot block that doesn't start with the same instruction sequence as
MS-DOG boot sector code. If this is the case, it would be nice if it
actually printed an error message to this effect instead of just
saying 'FAILED.'

This workaround has no effect on the boot sector code other than to
increase its size by three bytes.

26 years agoFix the N'th occurance of missed bits due to opt_???? mucking.
sos [Thu, 2 Jul 1998 14:09:44 +0000 (14:09 +0000)]
Fix the N'th occurance of missed bits due to opt_???? mucking.

Doesn't anybody TEST code before committing....

This is the N+1'th time these laste couble of days...

26 years agoAdd missing ')'..
sos [Thu, 2 Jul 1998 14:07:31 +0000 (14:07 +0000)]
Add missing ')'..

Doesn't anybody TEST code before committing....

This is the X'th time these laste couble of days...

26 years agoMoved `#ifndef NFS_NOSERVER' after including nfs.h.
kato [Thu, 2 Jul 1998 12:41:42 +0000 (12:41 +0000)]
Moved `#ifndef NFS_NOSERVER' after including nfs.h.

26 years agoSync with sys/i386/conf/options.i386 revision 1.82.
kato [Thu, 2 Jul 1998 12:40:01 +0000 (12:40 +0000)]
Sync with sys/i386/conf/options.i386 revision 1.82.

26 years agoSync with sys/i386/i386/machdep.c revision 1.302.
kato [Thu, 2 Jul 1998 12:39:32 +0000 (12:39 +0000)]
Sync with sys/i386/i386/machdep.c revision 1.302.

26 years agoSync with sys/i386/boot/netboot/Makefile, bootmenu.c, main.c and
kato [Thu, 2 Jul 1998 12:37:36 +0000 (12:37 +0000)]
Sync with sys/i386/boot/netboot/Makefile, bootmenu.c, main.c and
ns8390.c revisions 1.18, 1.15, 1.22 and 1.13, respectiely.

26 years agoMake sure the node count is an integer when mknod'ing pty, tty and vty.
des [Thu, 2 Jul 1998 07:39:01 +0000 (07:39 +0000)]
Make sure the node count is an integer when mknod'ing pty, tty and vty.

PR: misc/7124

26 years agoRemove out of date comment.
julian [Thu, 2 Jul 1998 06:31:25 +0000 (06:31 +0000)]
Remove out of date comment.

26 years agoRemove unused option
julian [Thu, 2 Jul 1998 05:50:57 +0000 (05:50 +0000)]
Remove unused option

26 years agoRemove the option to keep IPFW diversion backwards compatible
julian [Thu, 2 Jul 1998 05:49:12 +0000 (05:49 +0000)]
Remove the option to keep IPFW diversion backwards compatible
WRT diversion reinjection. No-one has been bitten by the new behaviour
that I know of.

26 years agoFix argument reversal in example.
phk [Thu, 2 Jul 1998 05:37:33 +0000 (05:37 +0000)]
Fix argument reversal in example.
PR: 7138
Reviewed by: phk
Submitted by: Robert Watson <robert+freebsd@cyrus.watson.org>

26 years ago/var/log/wtmp entries for ptys are treated differently in ac, since
phk [Thu, 2 Jul 1998 05:34:08 +0000 (05:34 +0000)]
/var/log/wtmp entries for ptys are treated differently in ac, since
they may not be logins.  The code for determining whether it is a pty
entry is broken.

PR: 7137
Reviewed by: phk
Submitted by: Tom Rush <tarush@mindspring.com>

26 years agoo Be more careful about using sprintf and strcpy.
imp [Thu, 2 Jul 1998 05:23:55 +0000 (05:23 +0000)]
o Be more careful about using sprintf and strcpy.

26 years agoo typo: will -> with
imp [Thu, 2 Jul 1998 05:21:36 +0000 (05:21 +0000)]
o typo: will -> with

26 years agoo fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bit
imp [Thu, 2 Jul 1998 05:12:53 +0000 (05:12 +0000)]
o fix bug in conversion of DOS 32-bit signed number to FreeBSD's 64-bit
  off_t.

This fixed the primitive 'copy protection' that the program I'm using.

26 years agoKill printf accidentally committed
imp [Wed, 1 Jul 1998 23:31:53 +0000 (23:31 +0000)]
Kill printf accidentally committed

26 years agoMake sourcer's main program execute in X mode.
imp [Wed, 1 Jul 1998 19:56:17 +0000 (19:56 +0000)]
Make sourcer's main program execute in X mode.

o Make the dos emulation treat c: and C: the same way.  Sourcer was doing
  a chdir("c:\\") rather than a chdir("C:\\");
o use drlton() in all places where we used to use -'A' so that we're always
  case independent.
o use drntol() in all places where we used to use + 'A' for similar reasons

26 years agoFixed missing options headers. Options that affect LKMs shouldn't
bde [Wed, 1 Jul 1998 17:10:00 +0000 (17:10 +0000)]
Fixed missing options headers.  Options that affect LKMs shouldn't
exist.

26 years agoAdded opt_vmpage.h to SRCS so that it actually gets created.
bde [Wed, 1 Jul 1998 17:02:57 +0000 (17:02 +0000)]
Added opt_vmpage.h to SRCS so that it actually gets created.

26 years agoClean up grammar. Provide proper pathnames for spool directories.
jkoshy [Wed, 1 Jul 1998 05:47:58 +0000 (05:47 +0000)]
Clean up grammar.  Provide proper pathnames for spool directories.
Document dependency on current load average for starting new batch jobs.

PR: 7109

26 years agoThe CCP layer now behaves as follows:
brian [Tue, 30 Jun 1998 23:04:17 +0000 (23:04 +0000)]
The CCP layer now behaves as follows:
o If we've denied and disabled all compression protocols, stay
  in ST_INITIAL and do an LCP protocol reject if we receive any
  CCP packets.
o If we've disabled all compression protocols, go to ST_STOPPED
  and wait for the other side to ask for something.
o If we've got anything enabled, start REQing as soon as the auth
  layer is up.
o If we're in multilink mode, than the link level CCP goes
  straight to ST_STOPPED irrespective of what's configured so that
  we never try to compress compressed stuff by default.

26 years agoCross-reference to sysconf(3).
eivind [Tue, 30 Jun 1998 22:56:39 +0000 (22:56 +0000)]
Cross-reference to sysconf(3).

26 years agoImplement int 2f ax=1600, which is, according to the Interrupt List,
imp [Tue, 30 Jun 1998 22:23:06 +0000 (22:23 +0000)]
Implement int 2f ax=1600, which is, according to the Interrupt List,
used to check to see if windows 3.x if running.  We always return 0,
which means that neither Windows 3.x nor Windows/386 2.x is running.  It
also means, btw, that XMS version 1 isn't installed, which is true since
we don't implement that either.

26 years agoPick up kernel variables/constants using sysctl rather than through /dev/mem
phk [Tue, 30 Jun 1998 21:34:14 +0000 (21:34 +0000)]
Pick up kernel variables/constants using sysctl rather than through /dev/mem

Use /dev/null for opening the kvm library, we don't need access to /dev/mem
anymore.

ps can now run without the setgid(kmem) bit.  If it does it will not be
able to show argv/envp for another uid's processes unless you are root.

26 years agoAllow /dev/null as path for the "/dev/mem" file, and assume that people
phk [Tue, 30 Jun 1998 21:29:44 +0000 (21:29 +0000)]
Allow /dev/null as path for the "/dev/mem" file, and assume that people
know what they're doing if they do that.  This will allow ps to use
the kvm_proc.c bits without having access to /dev/mem.

Fix kvm_proc.c to not need /dev/mem for access to argv/envp

26 years agoAdd 3 sysctl variables for future use by ps)1_
phk [Tue, 30 Jun 1998 21:25:58 +0000 (21:25 +0000)]
Add 3 sysctl variables for future use by ps)1_

26 years agoFixed printf format errors.
bde [Tue, 30 Jun 1998 20:48:45 +0000 (20:48 +0000)]
Fixed printf format errors.

26 years agoFixed printf format errors.
bde [Tue, 30 Jun 1998 20:14:13 +0000 (20:14 +0000)]
Fixed printf format errors.

26 years agoFixed printf format errors.
bde [Tue, 30 Jun 1998 19:53:09 +0000 (19:53 +0000)]
Fixed printf format errors.

26 years agoAdd PSE36 to the bits we know by name.
phk [Tue, 30 Jun 1998 19:41:21 +0000 (19:41 +0000)]
Add PSE36 to the bits we know by name.

26 years agoFixed (1970's/old-GNU style) a missing declaration of a function that
bde [Tue, 30 Jun 1998 19:19:10 +0000 (19:19 +0000)]
Fixed (1970's/old-GNU style) a missing declaration of a function that
doesn't return int.

26 years agoFixed printf format errors.
bde [Tue, 30 Jun 1998 19:10:49 +0000 (19:10 +0000)]
Fixed printf format errors.

26 years agoFixed (1970's style) missing declaration of a function that doesn't
bde [Tue, 30 Jun 1998 19:08:19 +0000 (19:08 +0000)]
Fixed (1970's style) missing declaration of a function that doesn't
return int.

26 years agoFixed printf format errors. Didn't fix gross homemade varargs function
bde [Tue, 30 Jun 1998 18:58:28 +0000 (18:58 +0000)]
Fixed printf format errors.  Didn't fix gross homemade varargs function
Write().  Pointers are passed to it as longs, but it expects them to
be passed as ints.  The alpha non-fixes made this worse.