Commit Graph

25645 Commits

Author SHA1 Message Date
bde
2445838f45 Get select stuff by including <sys/select.h> instead of <sys/proc.h>,
and don't include <sys/fcntl.h>.  (The select -> poll changes replaced
fcntl macros by poll macros.)

Use <machine/*.h> instead of <i386/include/*.h>.

Fail the probe instead of crashing in the unlikely event that malloc()
fails.
1997-11-18 12:21:32 +00:00
bde
fe379def7d Don't #include <i386/isa/isa_device.h>. It is now a prerequisite. 1997-11-18 11:47:04 +00:00
bde
99365eb10b Removed unused #includes.
Fixed #include order.  <i386/isa/isa_device.h> will soon be a prerequisite
for <i386/isa/pnp.h>.  Including both in alphebetical order gets this
right naturally.
1997-11-18 11:45:26 +00:00
bde
dcdbeebf14 Removed an unused #included.
Ifdefed #includes that are not used in the SMP case.
1997-11-18 11:32:31 +00:00
bde
050f62450b Get select stuff by #including <sys/select.h> instead of <sys/proc.h>. 1997-11-18 11:30:10 +00:00
bde
17497cdb02 Removed #unused includes.
Added a used #include (don't depend on yet to be fixed namespace pollution).
1997-11-18 11:16:56 +00:00
bde
e38ebd73b3 Removed unused #include of <sys/malloc.h>. This file now uses only
zalloc().  Many more cases like this are probably obscured by not
including <vm/zone.h> explicitly (it is spammed into <sys/malloc.h>).
1997-11-18 11:02:19 +00:00
bde
5ca06c2220 Removed code for the !KERNEL case. It hasn't been maintained for 4
years and gives a "laugh"able number of compile-time errors (see the
comment).  main() just printed the struct sizes.  This can be done
better by compiling with -g and reading off the sizes from the stabs.

Sorted #includes.

Fixed an unsigned vs signed comparison.
1997-11-18 10:56:41 +00:00
bde
a9d75411ee Get locking stuff by #including <sys/lock.h> instead of <sys/vnode.h>. 1997-11-18 10:02:40 +00:00
bde
50390b0fa2 Don't #include <machine/smp.h> even in the SMP case. Fixed the one
place that depended on it.  The "bazillion warnings" mentioned in the
log for rev.1.45 apparently aren't a problem any more.  It is hard
to be sure because the SIMPLELOCK_DEBUG option turns off (and breaks)
things in the SMP case.
1997-11-18 09:27:23 +00:00
bde
fca2b41ef4 Don't #include <machine/smp.h> even in the SMP case. Fixed the one
place that depended on it.  The "bazillion warnings" mentioned in the
log for rev.1.45 apparently aren't a problem any more.  It is hard
to be sure because the SIMPLELOCK_DEBUG option turns off (and breaks)
things in the SMP case.

Don't forward declare structs that are already implicitly forward declared.

Fixed a disordered declaration.
1997-11-18 09:26:50 +00:00
brian
c08bc6daf5 Remove the outq error in "show modem". 1997-11-18 08:49:03 +00:00
bde
eca4cb0b58 Don't #include <sys/types.h>. I mistakenly #included it unconditionally
to fix some broken application.  Application breakage is now hidden by a
recently introduced wrong #include of <sys/types.h> in <sys/time.h>.
<sys/time.h> is a prerequisite for <sys/resource.h>, so the <sys/types.h>
prereqisite is automatically supplied.

Cast RLIM_INFINITY to the correct (signed) type.
1997-11-18 08:07:37 +00:00
brian
f87bd4435e DropClient() when read() returns 0 (as it did before). 1997-11-18 07:33:23 +00:00
bde
be5bd975ea Fixed pedantic syntax errors caused by trailing semicolon in the
__ELF__ case of the definition of MAKE_SET() and in the PSEUDO_LKM
case of the definition of PSEUDO_SET().
1997-11-18 07:23:40 +00:00
bde
88c9c6e6af Fixed pedantic syntax errors caused by the trailing semicolon in the
definition of DOMAIN_SET().
1997-11-18 06:48:43 +00:00
jdp
618cbb5b81 Fix: too many arguments passed to fprintf(). 1997-11-18 05:56:03 +00:00
jdp
fd9d1842e6 Fix: too many arguments for format in call to sprintf(). 1997-11-18 05:53:03 +00:00
jdp
c0275eb956 Fix: too many arguments for format string in 4 calls to warnx(). 1997-11-18 05:45:19 +00:00
jdp
a3a1ff9596 Fix erroneous format string. 1997-11-18 05:34:45 +00:00
jdp
77cf78afb6 Add cross-references to rfork(2). 1997-11-18 03:59:30 +00:00
jdp
07854ddb8b Add missing argument detected by "-Wformat". Make messages more
consistent.
1997-11-18 03:50:25 +00:00
jdp
7e0fa23aa5 Fix incorrect format string detected by "-Wformat". 1997-11-18 03:41:51 +00:00
jdp
8a7bf8aff1 Add missing argument detected by "-Wformat". 1997-11-18 03:37:45 +00:00
peter
49b9936776 Don't generate new prototype files with the extra int retval[] arg at
the end since pdk deleted them.

Forgotten by: phk
1997-11-18 03:34:39 +00:00
jdp
5e61620bb6 Add missing arguments detected by "-Wformat". 1997-11-18 03:27:34 +00:00
jdp
92e669ae40 Fix missing arguments detected by "-Wformat". 1997-11-18 03:22:08 +00:00
jdp
fcde3651a7 Fix two missing arguments detected by "-Wformat". 1997-11-18 03:14:53 +00:00
brian
7bfd07097d Add Id string. 1997-11-18 00:22:07 +00:00
brian
12fd795d92 Notice that ppp has closed the connection properly.
Remove the timeout hack to notice that ppp has closed the connection.
Remove the ``special case'' hacks for "quit" and "bye", as pppctl
now exits immediately when the connection is closed by ppp.
Suggest a secure "set server" line for connecting ppp & pppctl.
Tidy up and correct a few man page typos.
1997-11-18 00:20:29 +00:00
brian
cb499269d8 Add and use a DropClient() function for closing the diagnostic port.
Call DropClient() from Cleanup() too.
1997-11-18 00:19:34 +00:00
guido
d692b6bcbf Make sure you do not get unexpected surprises whena remote file starts with '|'.
Reviewed by:	Joerg Wunsch
1997-11-17 19:29:16 +00:00
wosch
a37ef2f5b2 Add `writeable' 1997-11-17 17:59:44 +00:00
alex
8683d5257e Typo fix.
PR:		5068
Submitted by:	Studded@dal.net
1997-11-17 13:57:40 +00:00
jmg
d892def2d0 fix Jonathan Mini's email address per his request 1997-11-17 07:58:23 +00:00
ahasty
1938134234 Added support for linux sound ioctls:
LINUX_SNDCTL_DSP_GETOPTR
LINUX_SNDCTL_DSP_GETIPTR
LINUX_SNDCTL_DSP_SETTRIGGER
LINUX_SNDCTL_DSP_GETCAPS

With this rev level the linux realaudio player 5 and xquake should work.
1997-11-17 04:00:32 +00:00
brian
b65c2a6c14 Don't SetLabel() 'till we've done the SelectSystem(). This
avoids the situation where we specify label ``x'' on the command
line, and label ``x'' has a ``load y'' command embedded in it.
When the line comes up, we want to use ``x'' from ppp.linkup,
not ``y''.
1997-11-17 01:13:41 +00:00
brian
674fc92d54 Add id strings to tun.[ch].
Don't try to open ppp.secret if we're never going to use it.
1997-11-17 00:42:41 +00:00
brian
5696a07f36 Abstract data read from and written to the tun device,
allowing for a possible header on the front of all packets.
In OpenBSD, there's a structure containing the address
family here.
If we're building under OpenBSD, set up the ``flags'' part
of struct tuninfo (not there under FreeBSD) so that we config
the interface as POINTOPOINT.
Prefix prototypes with ``extern'' in os.c for consistency.

These changes are cosmetic under FreeBSD, but allow ppp to
build & work under OpenBSD (bar the srandomdev() stuff,
the inclusing of <net/if_var.h> and some Makefile symantecs).
1997-11-16 22:15:11 +00:00
steve
0f428e70f1 Document the new clear_tmp_enable option in the manpage.
Prodded by:	max
1997-11-16 15:59:58 +00:00
steve
c6944bfd2f Note in manpage how extraneous output in initialization scripts
can cause rdist to fail.

PR:		bin/4954
Reviewed by:	wollman
Submitted by:	jhs
1997-11-16 13:26:03 +00:00
steve
2c2d3b0330 Resurrect a modified version of the /tmp clearing code from rev 1.119.
Enable this by setting clear_tmp_enable in rc.conf to YES.  Beware
there can be serious side-effects of enabling this, so use at you own
risk.

PR:		misc/4982, misc/5054
1997-11-16 12:52:17 +00:00
sos
d2f586c713 Device # for Jonathan Mini's VESA support. 1997-11-16 10:02:13 +00:00
ache
b00e10eac7 Restore diagnostic fix spammed after merging 1997-11-16 06:23:29 +00:00
peter
e636aaead9 This commit was generated by cvs2svn to compensate for changes in r31187,
which included commits to RCS files with non-trunk default branches.
1997-11-16 05:55:52 +00:00
peter
4b965aa581 Import kernel parts of ipfilter-3.2.1 1997-11-16 05:55:52 +00:00
peter
7a56344e6a Import kernel parts of ipfilter-3.2.1 1997-11-16 05:55:52 +00:00
ahasty
5493f20cc0 Reviewed by: Amancio Hasty
Submitted by:	Amancio Hasty <hasty@star-gate.com>
Added yuv12 support for mpeg encoding and Randall Hopper's fixed for Temporal
Decimation
1997-11-16 04:52:29 +00:00
peter
e30be53f51 This commit was generated by cvs2svn to compensate for changes in r31183,
which included commits to RCS files with non-trunk default branches.
1997-11-16 04:52:19 +00:00
peter
594e73c310 Import ipfilter 3.2.1 (update from 3.1.8) 1997-11-16 04:52:19 +00:00