]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoThis commit was generated by cvs2svn to compensate for changes in r127114,
Jacques Vidrine [Wed, 17 Mar 2004 12:11:08 +0000 (12:11 +0000)]
This commit was generated by cvs2svn to compensate for changes in r127114,
which included commits to RCS files with non-trunk default branches.

20 years agoCorrect a denial-of-service vulnerability in OpenSSL (CAN-2004-0079).
Jacques Vidrine [Wed, 17 Mar 2004 12:11:08 +0000 (12:11 +0000)]
Correct a denial-of-service vulnerability in OpenSSL (CAN-2004-0079).

Obtained from: OpenSSL CVS (http://cvs.openssl.org/chngview?cn=12033)

20 years agoCorrect a grammatical error.
Ceri Davies [Wed, 17 Mar 2004 11:35:23 +0000 (11:35 +0000)]
Correct a grammatical error.

PR: docs/63984
Submitted by: Ulrich Spoerlein <q@uni.de>
MFC after: 1 day

20 years agoImproved incorrect usage diagnostics.
Ruslan Ermilov [Wed, 17 Mar 2004 11:06:40 +0000 (11:06 +0000)]
Improved incorrect usage diagnostics.

20 years agoTrust bsd.prog.mk to set SRCS correctly.
Ruslan Ermilov [Wed, 17 Mar 2004 10:52:12 +0000 (10:52 +0000)]
Trust bsd.prog.mk to set SRCS correctly.

20 years agoGC unnecessary include file.
Ruslan Ermilov [Wed, 17 Mar 2004 10:51:18 +0000 (10:51 +0000)]
GC unnecessary include file.

20 years agoAdjust the number of processes waiting on a semaphore properly if we're
Colin Percival [Wed, 17 Mar 2004 09:37:13 +0000 (09:37 +0000)]
Adjust the number of processes waiting on a semaphore properly if we're
woken up in the middle of sleeping.

PR: misc/64347
Reviewed by: tjr
MFC after: 7 days

20 years agoMove the _arlconfig define in the existing i386 section.
Yoshihiro Takahashi [Wed, 17 Mar 2004 08:50:17 +0000 (08:50 +0000)]
Move the _arlconfig define in the existing i386 section.

Suggested by: ru

20 years agoThis commit was generated by cvs2svn to compensate for changes in r127105,
David E. O'Brien [Wed, 17 Mar 2004 07:58:36 +0000 (07:58 +0000)]
This commit was generated by cvs2svn to compensate for changes in r127105,
which included commits to RCS files with non-trunk default branches.

20 years agoAvoid the whole -I${DESTDIR}/usr/include/gnu issue by including
David E. O'Brien [Wed, 17 Mar 2004 07:40:42 +0000 (07:40 +0000)]
Avoid the whole -I${DESTDIR}/usr/include/gnu issue by including
<gnu/regex.h> vs. just <regex.h>.

20 years agoAdjust $FreeBSD$'s.
David E. O'Brien [Wed, 17 Mar 2004 03:43:53 +0000 (03:43 +0000)]
Adjust $FreeBSD$'s.

20 years agoFix a POSIX conformance bug. POSIX says sigwait should return error number
David Xu [Wed, 17 Mar 2004 02:12:19 +0000 (02:12 +0000)]
Fix a POSIX conformance bug. POSIX says sigwait should return error number
in return value not in errno.

20 years agoAdd a tip for people who are using database-related ports on a sparc64
Garance A Drosehn [Wed, 17 Mar 2004 01:59:47 +0000 (01:59 +0000)]
Add a tip for people who are using database-related ports on a sparc64
system that they intend to upgrade to 64-bit time_t.

Noticed by: Roderick van Domburg

20 years agoRe-add macro versions of getc(), getchar(), putc(), putchar(), feof(),
Tim J. Robbins [Wed, 17 Mar 2004 01:43:08 +0000 (01:43 +0000)]
Re-add macro versions of getc(), getchar(), putc(), putchar(), feof(),
ferror(), fileno() and clearerr(), using the value of __isthreaded to
decide between the fast inline single-threaded code and the more
general function equivalent. This gives most of the performance
benefits of the old unsafe macros while preserving thread safety.

20 years agoRemove tun_proc; replace with tun_pid. tun_proc pointer may be stale
Robert Watson [Wed, 17 Mar 2004 01:12:09 +0000 (01:12 +0000)]
Remove tun_proc; replace with tun_pid.  tun_proc pointer may be stale
as the process that opens tun_softc can exit before the file
descriptor is closed.

Taiwan experience provided by: keichii
Crashing breakers provided by: Chia-liang Kao <clkao@clkao.org>

20 years agoAdd tap_mtx to tap_softc in order to protect per-softc variables
Robert Watson [Wed, 17 Mar 2004 01:09:59 +0000 (01:09 +0000)]
Add tap_mtx to tap_softc in order to protect per-softc variables
(tap_pid, tap_flags).  if_tap should now be entirely MPSAFE.

Committed from: Bamboo house by ocean in Taiwan
Tropical paradise provided by: Chia-liang Kao <clkao@clkao.org>

20 years agoImplement "arlconfig arlX quality".
Max Khon [Tue, 16 Mar 2004 22:29:26 +0000 (22:29 +0000)]
Implement "arlconfig arlX quality".
Man pages fixes.

Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>

20 years agoNew release note:
Hiroki Sato [Tue, 16 Mar 2004 22:14:37 +0000 (22:14 +0000)]
New release note:
libdisk's u_long->d_addr_t change.

20 years agoAvoid doing bawrite to initialize inode block while holding cylinder
Alexander Kabaev [Tue, 16 Mar 2004 22:06:32 +0000 (22:06 +0000)]
Avoid doing bawrite to initialize inode block while holding cylinder
group block locked. If filesystem has any active snapshots, bawrite
can come back trying to allocate new snapshot data block from the same
cylinder group and cause panic due to recursive lock attempt.

PR: 64206
Reviewed by: mckusick
Tested by: pjd

20 years agoRun through indent(1) so I can read the code without getting a headache.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 21:30:41 +0000 (21:30 +0000)]
Run through indent(1) so I can read the code without getting a headache.
The result isn't quite knf, but it's knfer than the original, and far
more consistent.

20 years agoFix copyrights and mandoc markup.
Max Khon [Tue, 16 Mar 2004 21:03:25 +0000 (21:03 +0000)]
Fix copyrights and mandoc markup.

Pointed out by: ru

20 years agoUse void * instead of char * to avoid violating C99 strict aliasing rules.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 20:45:37 +0000 (20:45 +0000)]
Use void * instead of char * to avoid violating C99 strict aliasing rules.

20 years agoUse unions to avoid violating C99 strict aliasing rules.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 20:42:02 +0000 (20:42 +0000)]
Use unions to avoid violating C99 strict aliasing rules.

20 years agoApproved by: mat (mentor).
Thierry Thomas [Tue, 16 Mar 2004 19:39:11 +0000 (19:39 +0000)]
Approved by: mat (mentor).

20 years agoAdd explicit dependency on "ether", since we use ether_ifattach().
Maxime Henrion [Tue, 16 Mar 2004 19:25:55 +0000 (19:25 +0000)]
Add explicit dependency on "ether", since we use ether_ifattach().

20 years agoRefactor the existing machine-dependent sf_buf_free() into a machine-
Alan Cox [Tue, 16 Mar 2004 19:04:28 +0000 (19:04 +0000)]
Refactor the existing machine-dependent sf_buf_free() into a machine-
dependent function by the same name and a machine-independent function,
sf_buf_mext().  Aside from the virtue of making more of the code machine-
independent, this change also makes the interface more logical.  Before,
sf_buf_free() did more than simply undo an sf_buf_alloc(); it also
unwired and if necessary freed the page.  That is now the purpose of
sf_buf_mext().  Thus, sf_buf_alloc() and sf_buf_free() can now be used
as a general-purpose emphemeral map cache.

20 years agoRemove a bogus assertion and readd it in a more correct location. A thread
John Baldwin [Tue, 16 Mar 2004 18:56:22 +0000 (18:56 +0000)]
Remove a bogus assertion and readd it in a more correct location.  A thread
might be enqueued on a sleep queue but not be asleep when the timeout fires
if it is blocked on a lock trying to check for pending signals before going
to sleep.  In the case of fixing up the TDF_TIMEOUT race, however, the
thread must be marked asleep.

Reported by: kan (the bogus one)

20 years agoAdded entries for 90 columns russian VGA modes.
Jens Schweikhardt [Tue, 16 Mar 2004 18:04:14 +0000 (18:04 +0000)]
Added entries for 90 columns russian VGA modes.

PR: conf/51830
Submitted by: Sergiy Vyshnevetskiy <serg@vostok.net>
MFC after: 1 week

20 years agoFix $FreeBSD$ ids.
David E. O'Brien [Tue, 16 Mar 2004 17:24:06 +0000 (17:24 +0000)]
Fix $FreeBSD$ ids.

20 years agoChange libdisk and sysinstall to use d_addr_t rather than u_long for disk
John Baldwin [Tue, 16 Mar 2004 17:07:06 +0000 (17:07 +0000)]
Change libdisk and sysinstall to use d_addr_t rather than u_long for disk
addresses.  For arch's with 64-bit longs, this is a nop, but for i386 this
allows sysinstall to properly handle disks and filesystems > 1 TB.

Changes from the original patch include:
- Use d_addr_t rather than inventing a blkcnt type based on int64_t.
- Use strtoimax() rather than strtoull() to parse d_addr_t's from config
  files.
- Use intmax_t casts and %jd rather than %llu to printf d_addr_t values.

Tested on: i386
Tested by: kuriyama
Submitted by: julian
MFC after: 1 month

20 years agoUpdate the SiS support to distinguish older southbridges better.
Søren Schmidt [Tue, 16 Mar 2004 16:23:28 +0000 (16:23 +0000)]
Update the SiS support to distinguish older southbridges better.

20 years agoNew release note:
Hiroki Sato [Tue, 16 Mar 2004 15:30:46 +0000 (15:30 +0000)]
New release note:
raid(4) removal.

20 years agoo Add an -S option to not attempt to ascertain the validity of a shell.
Mike Makonnen [Tue, 16 Mar 2004 13:46:29 +0000 (13:46 +0000)]
o Add an -S option to not attempt to ascertain the validity of a shell.
o Add a -D option to not attempt to create the home directory.
o Treat the /nonexistent home directory specially. It means the user has
  no home directory and it should not be created.
o Update Copyright year and my email.

20 years agoRemove dangling raidctl reference
Poul-Henning Kamp [Tue, 16 Mar 2004 13:42:23 +0000 (13:42 +0000)]
Remove dangling raidctl reference

20 years agoAdd powerpc to temporary fix. The new cpu device claims all
Peter Grehan [Tue, 16 Mar 2004 13:34:50 +0000 (13:34 +0000)]
Add powerpc to temporary fix. The new cpu device claims all
'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe.
Maybe the cpu device probe should be MD.

20 years agoRefer to "wide characters" instead of "wide-characters".
Tim J. Robbins [Tue, 16 Mar 2004 13:30:11 +0000 (13:30 +0000)]
Refer to "wide characters" instead of "wide-characters".

20 years agoThe arlconfig is needed on i386 only.
Yoshihiro Takahashi [Tue, 16 Mar 2004 12:46:14 +0000 (12:46 +0000)]
The arlconfig is needed on i386 only.

20 years agoMove the arl to i386 only.
Yoshihiro Takahashi [Tue, 16 Mar 2004 12:43:08 +0000 (12:43 +0000)]
Move the arl to i386 only.

20 years agoDon't use the pcic polling.
Yoshihiro Takahashi [Tue, 16 Mar 2004 12:40:11 +0000 (12:40 +0000)]
Don't use the pcic polling.

20 years agoRemove the RAIDframe manual page
Scott Long [Tue, 16 Mar 2004 12:35:55 +0000 (12:35 +0000)]
Remove the RAIDframe manual page

20 years agoRemove the RAIDframe userland tool.
Scott Long [Tue, 16 Mar 2004 12:28:40 +0000 (12:28 +0000)]
Remove the RAIDframe userland tool.

20 years agoRemove the module reference for RAIDframe
Scott Long [Tue, 16 Mar 2004 12:27:34 +0000 (12:27 +0000)]
Remove the module reference for RAIDframe

20 years agoRemove RAIDFrame. It hasn't worked since GEOM replaced the old disk
Scott Long [Tue, 16 Mar 2004 12:23:43 +0000 (12:23 +0000)]
Remove RAIDFrame.  It hasn't worked since GEOM replaced the old disk
mini-layer.  I don't have time to bing it forward into the GEOM world, and
no one else has stepped forward to claim it.  It'll be in the Attic for safe
keeping for now.

20 years agoGiven the impact of CFLAGS and COPTFLAGS on the build, report them in
Dag-Erling Smørgrav [Tue, 16 Mar 2004 12:12:10 +0000 (12:12 +0000)]
Given the impact of CFLAGS and COPTFLAGS on the build, report them in
the log, even when not verbose.

20 years agoWhitespace nit.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 12:08:59 +0000 (12:08 +0000)]
Whitespace nit.

20 years agoSort MLINKS.
Tim J. Robbins [Tue, 16 Mar 2004 11:06:31 +0000 (11:06 +0000)]
Sort MLINKS.

Noticed by: ru

20 years agoNudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.
David Malone [Tue, 16 Mar 2004 10:46:42 +0000 (10:46 +0000)]
Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.
Use kern_open() to implement creat() rather than taking the long route
through open(). Mark creat as MPSAFE.

While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the
difference it will make.

20 years agoGet ready to mark open, creat and nosys as MPSAFE.
David Malone [Tue, 16 Mar 2004 10:41:23 +0000 (10:41 +0000)]
Get ready to mark open, creat and nosys as MPSAFE.

20 years agoAdd fairly minimal documentation for the nmount() syscall.
Tim J. Robbins [Tue, 16 Mar 2004 09:45:38 +0000 (09:45 +0000)]
Add fairly minimal documentation for the nmount() syscall.

20 years agoUse vfs_nmount() to mount linprocfs filesystems in linux_mount();
Tim J. Robbins [Tue, 16 Mar 2004 09:05:56 +0000 (09:05 +0000)]
Use vfs_nmount() to mount linprocfs filesystems in linux_mount();
linprocfs doesn't support the old mount interface.

20 years agoMake vfs_nmount() public. The Linux emulator needs this in order to mount
Tim J. Robbins [Tue, 16 Mar 2004 08:59:37 +0000 (08:59 +0000)]
Make vfs_nmount() public. The Linux emulator needs this in order to mount
linprocfs filesystems.

20 years agoCorrect size argument passed to copyinstr() in linux_mount(): mntfromname
Tim J. Robbins [Tue, 16 Mar 2004 08:37:19 +0000 (08:37 +0000)]
Correct size argument passed to copyinstr() in linux_mount(): mntfromname
and mntonname are both MNAMELEN characters long, not MFSNAMELEN.

20 years agoFix memory leak
Colin Percival [Tue, 16 Mar 2004 08:33:33 +0000 (08:33 +0000)]
Fix memory leak

PR: bin/64321
Submitted by: Rodney Ruddock <rodney@interopsystems.com>
MFOpenBSD: rev 1.17
MFC after: 3 days

20 years agoRename the wiredlen member of struct sysctl_req to validlen and always
Don Lewis [Tue, 16 Mar 2004 06:53:03 +0000 (06:53 +0000)]
Rename the wiredlen member of struct sysctl_req to validlen and always
set it to avoid the need for a bunch of code that tests whether or
not the lock member is set to REQ_WIRED in order to determine which
length member should be used.

Fix another bug in the oldlen return value code.

Fix a potential wired memory leak if a sysctl handler uses
sysctl_wire_old_buffer() and returns an EAGAIN error to trigger
a retry.

20 years agoNew release note:
Hiroki Sato [Tue, 16 Mar 2004 04:40:10 +0000 (04:40 +0000)]
New release note:
arl(4) for Aironet Arlan 655 wireless adapters.

20 years agoDon't bother calling vslock() and vsunlock() if oldlen is zero.
Don Lewis [Tue, 16 Mar 2004 01:28:45 +0000 (01:28 +0000)]
Don't bother calling vslock() and vsunlock() if oldlen is zero.

If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set
wiredlen to zero and return zero (success) so that the handler will
operate according to sysctl(3):
     The size of the buffer is given by the location specified by
     oldlenp before the call, and that location gives the amount
     of data copied after a successful call and after a call that
     returns with the error code ENOMEM.
The handler will return an ENOMEM error because the zero length
buffer will overflow.

20 years agoSet TZ to UTC so dates in the history file will match dates in the logs.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 00:31:27 +0000 (00:31 +0000)]
Set TZ to UTC so dates in the history file will match dates in the logs.

20 years agoBuild the tinderbox with -O2.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 00:24:54 +0000 (00:24 +0000)]
Build the tinderbox with -O2.

20 years agoThe documentation lists configuration variables in uppercase, so dump
Dag-Erling Smørgrav [Tue, 16 Mar 2004 00:15:05 +0000 (00:15 +0000)]
The documentation lists configuration variables in uppercase, so dump
them in uppercase.

20 years agoAdd configuration shortcuts for CFLAGS and COPTFLAGS.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 00:12:59 +0000 (00:12 +0000)]
Add configuration shortcuts for CFLAGS and COPTFLAGS.

20 years agoAllow the user to override CFLAGS and COPTFLAGS on the command line.
Dag-Erling Smørgrav [Tue, 16 Mar 2004 00:12:33 +0000 (00:12 +0000)]
Allow the user to override CFLAGS and COPTFLAGS on the command line.

20 years agoWhen installing boot blocks into an Alpha BSD label, setup the location,
John Baldwin [Mon, 15 Mar 2004 23:10:34 +0000 (23:10 +0000)]
When installing boot blocks into an Alpha BSD label, setup the location,
length, and flags fields at the end of the SRM boot sector so that SRM can
find the bootstrap code.  This fixes bsdlabel -m alpha to generate bootable
disklabels.

Reviewed by: phk

20 years agoAdd a mixer script that saves the current settings of all mixers present
John Baldwin [Mon, 15 Mar 2004 23:09:17 +0000 (23:09 +0000)]
Add a mixer script that saves the current settings of all mixers present
in the system on shutdown and restores the settings on boot.  The settings
can also be reset to the saved values via 'mixer reload'.

Reviewed by: current@

20 years agoRegenerate.
John Baldwin [Mon, 15 Mar 2004 22:44:35 +0000 (22:44 +0000)]
Regenerate.

20 years ago- Mark ABI syscalls that call wait4() MP safe as recent changes to
John Baldwin [Mon, 15 Mar 2004 22:43:49 +0000 (22:43 +0000)]
- Mark ABI syscalls that call wait4() MP safe as recent changes to
  the kernel wait4() made these all panic() implementations otherwise.
- The i386 linux_ptrace() syscall is MP safe.  Alpha was already marked
  MP safe.

20 years agoAdd arl(4): driver for Aironet Arlan 655 wireless adapters.
Max Khon [Mon, 15 Mar 2004 22:24:28 +0000 (22:24 +0000)]
Add arl(4): driver for Aironet Arlan 655 wireless adapters.

MFC after: 2 weeks

20 years agoThe PPS code needs to be much more brutal to avoid synchronism on
Poul-Henning Kamp [Mon, 15 Mar 2004 21:47:34 +0000 (21:47 +0000)]
The PPS code needs to be much more brutal to avoid synchronism on
hardware with non-sucky clocks.

20 years agoNew release note:
Hiroki Sato [Mon, 15 Mar 2004 21:20:39 +0000 (21:20 +0000)]
New release note:
ata(4) cardbus ATA/SATA support.
ifconfig(8) prints polling(4) status.

20 years agoAdd ru.koi8-r.win.kbd based on ru.koi8-r.shift.kbd which closely mimics
Max Khon [Mon, 15 Mar 2004 20:34:18 +0000 (20:34 +0000)]
Add ru.koi8-r.win.kbd based on ru.koi8-r.shift.kbd which closely mimics
ru(winkeys) XFree86 layout.

Differences with ru.koi8-r.shift.kbd are:
- ctrl+shift = alock
- left/right win = meta, menu = saver
- alock'ed shift+[0-9] = )!@#$%^&*(

20 years agoRegen for ptrace being safe again.
John Baldwin [Mon, 15 Mar 2004 18:50:06 +0000 (18:50 +0000)]
Regen for ptrace being safe again.

20 years agoDrop the proc lock around calls to the MD functions ptrace_single_step(),
John Baldwin [Mon, 15 Mar 2004 18:48:28 +0000 (18:48 +0000)]
Drop the proc lock around calls to the MD functions ptrace_single_step(),
ptrace_set_pc(), and cpu_ptrace() so that those functions are free to
acquire Giant, sleep, etc.  We already do a PHOLD/PRELE around them so
that it is safe to sleep inside of these routines if necessary.  This
allows ptrace() to be marked MP safe again as it no longer triggers lock
order reversals on Alpha.

Tested by: wilko

20 years agoCorrectly document the default value of UsePAM.
Dag-Erling Smørgrav [Mon, 15 Mar 2004 18:38:29 +0000 (18:38 +0000)]
Correctly document the default value of UsePAM.

20 years agoAdd script for creating ramdisks at boot time, in time to be processed
Wes Peters [Mon, 15 Mar 2004 18:36:21 +0000 (18:36 +0000)]
Add script for creating ramdisks at boot time, in time to be processed
by fstab.

20 years agoRemove bogus (void **) casts. This unbreaks the -O2 build.
Dag-Erling Smørgrav [Mon, 15 Mar 2004 17:43:36 +0000 (17:43 +0000)]
Remove bogus (void **) casts.  This unbreaks the -O2 build.

20 years agoDon't try to pass off a struct sockaddr as a struct sockaddr_in when it
Dag-Erling Smørgrav [Mon, 15 Mar 2004 17:08:28 +0000 (17:08 +0000)]
Don't try to pass off a struct sockaddr as a struct sockaddr_in when it
may in fact very well be a struct sockaddr_in6.  Just use plain struct
sockaddr.

This brings us yet another step closer to a clean -O2 build.

20 years agoRemove whitespace at EOL.
Tom Rhodes [Mon, 15 Mar 2004 17:01:31 +0000 (17:01 +0000)]
Remove whitespace at EOL.

20 years agoAdd vectors for _snprintf() and _vsnprintf() (redirected straight to
Bill Paul [Mon, 15 Mar 2004 16:39:03 +0000 (16:39 +0000)]
Add vectors for _snprintf() and _vsnprintf() (redirected straight to
snprintf() and vsnprintf() in FreeBSD kernel land).

This is needed by the Intel Centrino 2200BG driver. Unfortunately, this
driver still doesn't work right with Project Evil even with this tweak,
but I'm unable to diagnose the problem since I don't have access to a
sample card.

20 years agoMove GID/UID_MAX under __BSD_VISIBLE protection.
Max Laier [Mon, 15 Mar 2004 13:43:44 +0000 (13:43 +0000)]
Move GID/UID_MAX under __BSD_VISIBLE protection.

Requested by: bde
Approved by: bms(mentor)

20 years agoFix some style(9) related issues after discussion with/education from bde:
Max Laier [Mon, 15 Mar 2004 13:41:17 +0000 (13:41 +0000)]
Fix some style(9) related issues after discussion with/education from bde:
 - Add <sys/param.h> and <limits.h> where required (do not depend on other
   headers pulling it in).
 - __dead -> __dead2
 - #if defined() -> #ifdef
 - Remove ugly PRIu64 macros and use %llu w/ (unsigned long long) cast.

All changes looped back to OpenBSD (where applicable) for easier sync in the
future.

Requested by: bde
Approved by: bms(mentor)

20 years agoAdd -DDEBUG to DEBUG_FLAGS if PAM_DEBUG is defined.
Dag-Erling Smørgrav [Mon, 15 Mar 2004 13:23:20 +0000 (13:23 +0000)]
Add -DDEBUG to DEBUG_FLAGS if PAM_DEBUG is defined.

20 years agoAdd printing of relevant SATA info where approbiate.
Søren Schmidt [Mon, 15 Mar 2004 13:21:41 +0000 (13:21 +0000)]
Add printing of relevant SATA info where approbiate.

20 years agoAdd SATA support fields
Søren Schmidt [Mon, 15 Mar 2004 13:17:24 +0000 (13:17 +0000)]
Add SATA support fields

20 years agoRemove sysctl security.jail.list_allowed.
Pawel Jakub Dawidek [Mon, 15 Mar 2004 12:10:34 +0000 (12:10 +0000)]
Remove sysctl security.jail.list_allowed.
This functionality was a misfeature, sysctl was added and turned off by
default just to check if nobody complains.

Reviewed by: rwatson

20 years agoAdd support for detaching PCI controllers.
Søren Schmidt [Mon, 15 Mar 2004 12:03:48 +0000 (12:03 +0000)]
Add support for detaching PCI controllers.

This adds support for cardbus ATA/SATA controllers. I get roughly the
same transfer speeds as on true PCI controllers. Nice to be able to add
a couble of "real" disks to a laptop :)

20 years agoKill bogus isa compat opt file.
Warner Losh [Mon, 15 Mar 2004 11:27:39 +0000 (11:27 +0000)]
Kill bogus isa compat opt file.

20 years agoTemporarily comment out cy.
Warner Losh [Mon, 15 Mar 2004 10:39:37 +0000 (10:39 +0000)]
Temporarily comment out cy.
Remove COMPAT_OLDISA

20 years agoincluding isa_device.h was historical in this file, remove it
Warner Losh [Mon, 15 Mar 2004 10:39:01 +0000 (10:39 +0000)]
including isa_device.h was historical in this file, remove it

20 years agoDocument additional reasons that sysctl(3) can return ENOMEM (due to
Don Lewis [Mon, 15 Mar 2004 10:32:37 +0000 (10:32 +0000)]
Document additional reasons that sysctl(3) can return ENOMEM (due to
vslock() failure).

20 years agoChange len pararmeter from u_int to size_t.
Don Lewis [Mon, 15 Mar 2004 10:05:27 +0000 (10:05 +0000)]
Change len pararmeter from u_int to size_t.

Document vslock() return values.

20 years agoMake overflow/wraparound checking more robust and unbreak len=0 in
Don Lewis [Mon, 15 Mar 2004 09:11:23 +0000 (09:11 +0000)]
Make overflow/wraparound checking more robust and unbreak len=0 in
vslock(), mlock(), and munlock().

Reviewed by: bde

20 years agoMake this compile with -O2. A proper fix would use a struct to represent
Dag-Erling Smørgrav [Mon, 15 Mar 2004 08:14:35 +0000 (08:14 +0000)]
Make this compile with -O2.  A proper fix would use a struct to represent
vectors, instead of requiring the caller to keep track of element size
and count and pass them in by reference.

20 years agoWhitespace nits.
Dag-Erling Smørgrav [Mon, 15 Mar 2004 08:03:10 +0000 (08:03 +0000)]
Whitespace nits.

20 years agogasp(1) isn't linked with -lgnuregex, and it doesn't need <gnu/regex.h>
Ruslan Ermilov [Mon, 15 Mar 2004 07:19:41 +0000 (07:19 +0000)]
gasp(1) isn't linked with -lgnuregex, and it doesn't need <gnu/regex.h>
either.

Reviewed by: obrien

20 years agoStyle(9) changes.
Don Lewis [Mon, 15 Mar 2004 06:43:51 +0000 (06:43 +0000)]
Style(9) changes.

Pointed out by: bde

20 years agoRevert to the original vslock() and vsunlock() API with the following
Don Lewis [Mon, 15 Mar 2004 06:42:40 +0000 (06:42 +0000)]
Revert to the original vslock() and vsunlock() API with the following
exceptions:
Retain the recently added vslock() error return.

The type of the len argument should be size_t, not u_int.

Suggested by: bde

20 years agoRemove redundant suser() check.
Don Lewis [Mon, 15 Mar 2004 06:36:55 +0000 (06:36 +0000)]
Remove redundant suser() check.

20 years agostatic and const.
Juli Mallett [Mon, 15 Mar 2004 04:10:29 +0000 (04:10 +0000)]
static and const.

20 years agoValidate argument to -i.
Juli Mallett [Mon, 15 Mar 2004 03:41:07 +0000 (03:41 +0000)]
Validate argument to -i.

20 years agoLock down global variables in if_tap (primarily, the tap softc list);
Robert Watson [Mon, 15 Mar 2004 01:52:00 +0000 (01:52 +0000)]
Lock down global variables in if_tap (primarily, the tap softc list);
add tapmtx, which protects globale variables.

Notes:

- The EBUSY check in MOD_UNLOAD may be subject to a race.  Moving the
  event handler unregister inside the mutex grab may prevent that race.

- Locking of global variables safely is now possible because tapclones
  is only modified when the module is loading or unloading, thanks to
  phk's recent chang to clone_setup().

- softc locking to follow.

20 years agoShorten a long comment.
David E. O'Brien [Mon, 15 Mar 2004 00:49:40 +0000 (00:49 +0000)]
Shorten a long comment.