Commit Graph

62375 Commits

Author SHA1 Message Date
ume
2c3337c02f Do more strict checking for an interface.
Suggested by:	matusita@jp.FreeBSD.org
MFC after:	1 week
2001-07-20 18:08:17 +00:00
mike
567548e3b8 o Add phantom's gethostinfo() function to reduce duplicated code.
o Increase readability by creating a wrapper for asprintf(3).
o Cast isdigit(3) argument to unsigned char for future locale
  changes.

Submitted by:	phantom
Reviewed by:	-audit, des
Approved by:	des
2001-07-20 16:44:44 +00:00
obrien
519f5fca7a Fix some nits I missed in my style cleanup. 2001-07-20 15:33:04 +00:00
ru
016c529237 MFCrypto: fixed the remote buffer overflow. 2001-07-20 15:14:03 +00:00
bde
df6d0e0f5f Removed CSRG ids. CSRG never had anything to do with dpt.
Don't set BINMODE to 500.  This is not a setuid program.

Note: the dpt utilities have never been attached to the world and
haven't been compilable for a year or two.
2001-07-20 14:59:15 +00:00
yokota
bff07c488d Fix typo; the meaning of the 3rd parameter to genkbd_keyaction() is
'up' rather than 'down'.

PR: 22466
MFC after: 10 days
2001-07-20 14:49:54 +00:00
yokota
de5eca95a9 Fix off by one error for ESC[1J.
PR: kern/18381
MFC after: 10 days
2001-07-20 14:08:12 +00:00
sobomax
2055a17ab0 Forgot to mention that previous commit (1.4 --> 1.5) would be:
MFC after:	2 weeks
2001-07-20 13:25:14 +00:00
sobomax
8ffb61ff48 Use reallocf(3) to increase size of malloc'ed buffer instead of
malloc()+memcpy()+free().
2001-07-20 13:20:32 +00:00
yokota
3e58ecdf1f Define a couple of subroutines to replace duplicated common code. You
shoulnd't see any functional difference.
2001-07-20 13:10:59 +00:00
yokota
5bdd55fe33 Return consistent key action codes at key press and release
events. Otherwise you would see unexpected results if shift or
locking keys are defined to give different actions depending
on other shift/locking keys' state.

Please keep the ukbd module and the kernel in sync, otherwise
the USB keyboard won't work after this change.
MFC after:	10 days
2001-07-20 13:05:57 +00:00
ru
4b023c5a9f More potential buffer overflow fixes.
o Fixed `nfrontp' calculations in output_data().  If `remaining' is
  initially zero, it was possible for `nfrontp' to be decremented.

Noticed by:	dillon

o Replaced leaking writenet() with output_datalen():

:  * writenet
:  *
:  * Just a handy little function to write a bit of raw data to the net.
:  * It will force a transmit of the buffer if necessary
:  *
:  * arguments
:  *    ptr - A pointer to a character string to write
:  *    len - How many bytes to write
:  */
: 	void
: writenet(ptr, len)
: 	register unsigned char *ptr;
: 	register int len;
: {
: 	/* flush buffer if no room for new data) */
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 	if ((&netobuf[BUFSIZ] - nfrontp) < len) {
: 		/* if this fails, don't worry, buffer is a little big */
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
: 		netflush();
: 	}
:
: 	memmove(nfrontp, ptr, len);
: 	nfrontp += len;
:
: }  /* end of writenet */

What an irony!  :-)

o Optimized output_datalen() a bit.
2001-07-20 12:02:30 +00:00
msmith
719efadfd6 We haven't used this for ages, and we're not going to either. 2001-07-20 09:44:55 +00:00
n_hibma
6a2caa5a1a Support for USB floppies based upon SMSC USB FDD controller.
PR:		28877
Submitted by:	Larry Baird <lab@gta.com>
MFC after:	1 week
2001-07-20 09:20:43 +00:00
markm
730f703e6a Fix type warnings.
PR: 29101
2001-07-20 08:58:04 +00:00
msmith
8ee0a1a5cd We haven't had AcpiSetSystemSleepState for a while now, clean out the
prototype.
2001-07-20 08:49:17 +00:00
davidn
011fe38c96 Fix a possible NULL reference that would be triggered
by invalid input in /etc/crontab.

MFC after:	2 days
2001-07-20 06:46:48 +00:00
obrien
9c97c8f02d Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.
2001-07-20 06:20:32 +00:00
takawata
d3d1b151d3 Add ACPI S2-S4BIOS Suspend/Resume code.
Some problems may remain.

Reviewed by:iwasaki
2001-07-20 06:07:34 +00:00
jon
c3d97bef4d Fix setting serial baud rate under ibcs2 emulation by moving a line to the
right place.  Reported by Jonathan Chen <jonc@pinnacle.co.nz> (someone with
the same name who's not me)

PR:	i386/8414
Submitted by:	Jonathan Chen <jonc@pinnacle.co.nz>
MFC after:	2 weeks
2001-07-20 06:00:02 +00:00
obrien
be022bb715 Remove GCC'isms in CFLAGS. 2001-07-20 04:23:13 +00:00
jasone
a9a7a5e9d6 Implement pthread_attr_[gs]etguardsize(). Non-default-size stacks used to
be malloc()ed, but they are now allocated using mmap(), just as the
default-size stacks are.  A separate cache of stacks is kept for
non-default-size stacks.

Collaboration with:	deischen
2001-07-20 04:23:11 +00:00
obrien
f7019990ad Add lbasename which is used in the `LD' fix for -current. 2001-07-20 03:53:28 +00:00
obrien
12bfbfe580 Update the version string so I can identify this new variant. 2001-07-20 03:51:17 +00:00
obrien
21be0634f6 This merges in the changes from the 2.11.2 release to the FSF anoncvs
19-July-2001 snapshot.
2001-07-20 03:48:47 +00:00
obrien
3f556974ad This commit was generated by cvs2svn to compensate for changes in r80016,
which included commits to RCS files with non-trunk default branches.
2001-07-20 03:29:51 +00:00
obrien
e55b0aebbf Import of Binutils from the FSF 2.11 branch [checked out 19-July-2001].
This fixes an annoying `ld' bug.
2001-07-20 03:29:51 +00:00
obrien
4b769f6d5b Update for the Bintuils 2.11.2 import. 2001-07-20 02:56:57 +00:00
ume
02712d67ba - `-a' option for IPv6 was not working correctly.
- Lose any stray host bits that a user may have entered when providing
  a network number and netmask to the `-a' option for IPv6.  This is
  corresponding to 1.79 that is for IPv4 only.

MFC after:	1 week
2001-07-19 22:04:09 +00:00
imp
ab53999cee When including pci header files, do things differently for 5x and 4x
to make code sharing between the two easier.

Also, only do power management in -current.  It doesn't exist in stable
yet.
2001-07-19 21:43:01 +00:00
mike
a8951818b0 o Integrate security enhancements from OpenBSD.
- Don't assume environment variable HOME is not NULL.
o Integrate standards compliance from NetBSD.
  - Allow -- before the command.
  - Blocking SIGQUIT isn't standards compliant.
  - Proper exit(3) levels.
  - Actually append to nohup.out (as documented and required
    by standard) instead of clobbering it.
o Remove some FreeBSD specific access(2) cruft (relating to
  incorrect appending).
o Document the fact that two or more instances of nohup can
  append to the same file.
o Constify; Staticize functions; Set WARNS?=2

Reviewed by:	bde
Approved by:	des
Obtained from:	NetBSD, OpenBSD
MFC after:	9 days
2001-07-19 21:25:10 +00:00
iedowse
1992345c83 Since revision 1.40/1.41, the default behaviour for mount_nfs is
to give up after one attempt unless a background mount is requested.
Background mounts would retry 10000 times (at least 7 days) before
giving up.

For some situations such as diskless terminals, an NFS filesystem
may be critical to the boot process, so neither the "try once" nor
background mounts are appropiate. To cater for this situation,
unbreak the -R (retry count) parameter so that it also works in
the non-background case. Interpret a zero retry count as "retry
forever".

The defaults are now "try once" for non-background mounts and "retry
forever" for background mounts; both can be overridden via -R.
Add a description of this behaviour to the manpage.
2001-07-19 21:11:48 +00:00
scottl
ac76e3b7fe Limit the device to only one playback channel until I can figure out why
a) newpcm insists on using only the highest number channel available, and
b) the maestro3 driver no longer likes anything above channel 0.
2001-07-19 20:53:52 +00:00
scottl
b6c9d769b9 Fix an off-by-one error in the dma tag. This was causing the VM system to
freak out occasionally.

MFC after:	1 week
2001-07-19 20:51:29 +00:00
kris
18cbcd5eff Resolve conflicts 2001-07-19 20:05:28 +00:00
kris
84fabcda92 This commit was generated by cvs2svn to compensate for changes in r79998,
which included commits to RCS files with non-trunk default branches.
2001-07-19 19:59:37 +00:00
kris
3b19ada1e8 Initial import of OpenSSL 0.9.6b 2001-07-19 19:59:37 +00:00
jhb
d0bb02b644 bpf(4) hasn't used a static number of devices for over 2 years now, and
the SYNOPSIS hasn't had an example number of devices since rev 1.2 which
was over 5 and a half years ago, so remove a sentence claiming that the
example in the SYNOPSIS limited bpf to 16 devices.

MFC after:	3 days
2001-07-19 19:18:35 +00:00
assar
34e9a6f370 remove support for creating files and directories from msdosfs_mknod 2001-07-19 19:15:42 +00:00
jlemon
e36a7a972a Rename vm86pcb_lock -> vm86_lock to correctly reflect its function.
Requested by: jhb
2001-07-19 19:07:10 +00:00
ru
5f826d99c9 Added missing dependancy.
Submitted by:	bde
Approved by:	obrien
2001-07-19 19:04:31 +00:00
ru
5bfe15ad2f vsnprintf() can return a value larger than the buffer size.
Submitted by:	assar
Obtained from:	OpenBSD
2001-07-19 18:58:31 +00:00
jlemon
303231dd3f Document EVFILT_TIMER.
MFC after: 1 week
2001-07-19 18:35:19 +00:00
jlemon
6279f096ec Introduce EVFILT_TIMER, which allows a process to establish an
arbitrary number of timers, both oneshot and periodic.

Repeatedly reminded to commit by: jayanth
Reviewed by: peter (a while back)
2001-07-19 18:34:40 +00:00
obrien
6f7c518173 Blah, fsck_ifs uses `8' for all errors, including that it cannot check
in the background.  fsck_ffs uses `5' for when SOFTUPDATES are not set,
and thus background cleaning cannot take place.  That seems to [semi-]apply
here.  So I don't know what non-zero value to use.
If anyone has an opinion, let me know.
2001-07-19 18:28:41 +00:00
bmah
2e67231a5e freebsd.org -> FreeBSD.org 2001-07-19 18:14:56 +00:00
obrien
81a0125a69 State explicitly how the manpage "DESCRIPTION" options should be listed. 2001-07-19 18:03:43 +00:00
ru
9cac33d71f Fixed the exploitable remote buffer overflow.
Reported on:	bugtraq
Obtained from:	Heimdal, NetBSD
Reviewed by:	obrien, imp
2001-07-19 17:48:57 +00:00
obrien
3293448193 Portability configuation for LukeM's ftp client. 2001-07-19 17:45:52 +00:00
obrien
199ab8cc56 Portability configuration data for LukeM ftpd. 2001-07-19 17:45:14 +00:00