16 years agoMerge with FreeBSD netdate.c:1.17 (charnier): udp/timed -> timed/udp
Chris Pressey [Wed, 20 Jul 2005 06:25:20 +0000 (06:25 +0000)]
Merge ... FreeBSD netdate.c:1.17 (charnier): udp/timed -> timed/udp
(Sync to FreeBSD netdate.c:1.18 (markm) modulo FreeBSD formatting.)

Submitted-by: Sarunas Vancevicius <svan_at_redbrick_dot_dcu_dot_ie>
16 years agoMerge with FreeBSD vary.c:1.16 and date.1:1.68 (yar):
Chris Pressey [Wed, 20 Jul 2005 06:10:51 +0000 (06:10 +0000)]
Merge ... FreeBSD vary.c:1.16 and date.1:1.68 (yar):
Change behaviour of -v to be more intuitive, by accounting for the
fact that not all months have the same number of days.

(Note that, because this commit is the first of a series, the FreeBSD
revision number and date of the man page have not been bumped yet.)

Submitted-by: Sarunas Vancevicius <svan_at_redbrick_dot_dcu_dot_ie>
16 years agoLimit switch-from-interrupt warnings to once per thread to avoid an endless
Matthew Dillon [Wed, 20 Jul 2005 04:33:44 +0000 (04:33 +0000)]
Limit switch-from-interrupt warnings to once per thread to avoid an endless
loop.  Generate a DDB backtrace when it occurs.

Note from Peter's report that it is possible for the idle thread to panic
if e.g. an IPI or FAST interrupt running in the idle thread's context panics.
This can result in highly unexpected operation and needs to be addressed.

Reported-by: Peter Avalos <pavalos@theshell.com>
16 years agoInterlock panics that occur on multiple cpus before the first cpu is able to
Matthew Dillon [Tue, 19 Jul 2005 19:53:53 +0000 (19:53 +0000)]
Interlock panics that occur on multiple cpus before the first cpu is able to
halt the other cpus.  Print out a nice verbose message describing the
situation, then permanently deschedule the threads that lose the race.

16 years agoIf a fatal kernel trap occurs from an IPI or FAST interrupt on a cpu not
Matthew Dillon [Tue, 19 Jul 2005 19:25:45 +0000 (19:25 +0000)]
If a fatal kernel trap occurs from an IPI or FAST interrupt on a cpu not
holding the MP lock, the trap code will panic a second time when get_mplock()
attempts to block due to an assertion in lwkt_switch().  Add a new globaldata
field, gd_trap_nesting_level, that allows us to bypass this panic.

If lwkt_switch() is called with a non-zero gd_intr_nesting_level or non-zero
gd_trap_nesting_level, the two variables must be saved and then zero'd
across the switch, and restored on resume.  Otherwise a normal switch in
another thread will result in another panic.  This case only occurs during
fatal traps, panics, or when operating from DDB.

From-kernel-dumps-provided-by: David Rhodus <sdrhodus@gmail.com>
16 years agoFix a MP lock race. The MP locking state can change when lwkt_chktokens()
Matthew Dillon [Tue, 19 Jul 2005 19:08:05 +0000 (19:08 +0000)]
Fix a MP lock race.  The MP locking state can change when lwkt_chktokens()
returns a failure.  The state is not retained by an interrupt because we
are trying to set it for the new thread rather then the current thread, and
the current thread's mpcount could be 0.

Change ASSERT_MP_LOCK_HELD() to supply a thread for reporting purposes in

Reported-by: David Rhodus <sdrhodus@gmail.com>
16 years agoFix Saved commands bug. The following Makefile would cause make to core.
Max Okumoto [Tue, 19 Jul 2005 18:19:15 +0000 (18:19 +0000)]
Fix Saved commands bug.  The following Makefile would cause make to core.
This bug has been in make since 4.X

all:    first next
@echo Run now.
@echo Run after me

@echo Apppp
@echo Run after all 1

@echo Bpppp
@echo Run after all 2

16 years agoReorder paramters to Compat_RunCommand().
Max Okumoto [Tue, 19 Jul 2005 18:16:02 +0000 (18:16 +0000)]
Reorder paramters to Compat_RunCommand().

16 years agoMove handling of the following signals {SIGTSTP, SIGTTOU,
Max Okumoto [Tue, 19 Jul 2005 18:15:29 +0000 (18:15 +0000)]
Move handling of the following signals {SIGTSTP, SIGTTOU,
SIGTTIN, and SIGWINCH} closer to the top of the function.

16 years agoConstify cmd paramter to Compat_RunCommand()
Max Okumoto [Tue, 19 Jul 2005 18:14:33 +0000 (18:14 +0000)]
Constify cmd paramter to Compat_RunCommand()

16 years agoCleanup the signal handling. A lot of unnecessary code was
Max Okumoto [Tue, 19 Jul 2005 18:14:15 +0000 (18:14 +0000)]
Cleanup the signal handling.  A lot of unnecessary code was
added in the past due to miss-understanding of the signal code.

Now when a signal is delivered, a per signal variable is incremented.
[idea from OpenBSD]  Since the signal handler just set variables
the rest of the code does not need to block signals.  This makes
the mainline code much cleaner.

16 years agoConstify Lst_Member()
Max Okumoto [Tue, 19 Jul 2005 18:12:46 +0000 (18:12 +0000)]
Constify Lst_Member()

16 years agoFix numerous extremely serious bugs in OHCI's iso-synchronous code. I'm
Matthew Dillon [Mon, 18 Jul 2005 19:20:46 +0000 (19:20 +0000)]
Fix numerous extremely serious bugs in OHCI's iso-synchronous code.  I'm
not even sure if the fixes are entirely correct because the code is badly
written and totally undocumented.  But they seem to help.

* Fix up list linkages prior to calling ohci_free_sitd(), since
  ohci_free_sitd() destroys the nextitd field.  This was causing a huge
  amount of corruption of the SITD free list *AND* the xfer SITD list,
  particularly prevaliant when multi-record transfers are executed
  (e.g. uaudio).

* Properly (I hope) adjust the pipe tail pointer in numerous situations.
  There are a number of unconditional references and assumptions as to the
  validity of pipe->tail.itd and it must be maintained at all times.
  In particular, an aborted or timed-out transfer would corrupt it.

Reported-by: Michal Belczyk <belczyk@bsd.krakow.pl>
16 years agode-nop part introduced in the last commit.
Joerg Sonnenberger [Mon, 18 Jul 2005 16:43:26 +0000 (16:43 +0000)]
de-nop part introduced in the last commit.

Noticed-by: Michal Belczyk <belczyk@bsd.krakow.pl>
16 years agoAdd KTR support for usb_mem to trace usb-related allocations.
Matthew Dillon [Mon, 18 Jul 2005 14:52:57 +0000 (14:52 +0000)]
Add KTR support for usb_mem to trace usb-related allocations.

16 years agoDELAY() is a spin loop, we can't use it any more because shutdown
Matthew Dillon [Mon, 18 Jul 2005 02:47:36 +0000 (02:47 +0000)]
DELAY() is a spin loop, we can't use it any more because shutdown
depends on other threads working.  Not only does the syncer and buffer
flusher need to work (else they might get stuck holding a lock on a buffer),
but the scheduler helper threads and device helper threads must also continue
to operate to be able to successfully flush the buffer cache.   In addition,
busy looping while holding the BGL can seriously deadlock SMP machines, so
even if it was (sometimes) possible to get away with using DELAY on UP boxes,
it's simply impossible on an SMP box.

So change the DELAY's to tsleep's in the shutdown code.  The current thread
is also given a very high priority (higher then an interrupt thread,
in fact), to try to ensure it gets through the shutdown procedure even if
the system is fried.  For the moment we do not move the thread to cpu #0.

This puts us in a somewhat awkwar situation when handling panics, but I don't
see that we have much of a choice.

Reported-by: Peter Avalos, David Rhodus, and numerous other people over time.
16 years agoFix missing initialisation of big numbers. BN_hex2bn behaves
Joerg Sonnenberger [Sun, 17 Jul 2005 19:16:35 +0000 (19:16 +0000)]
Fix missing initialisation of big numbers. BN_hex2bn behaves
differently if the passed pointer points to NULL or not.

Noticed-by: Michal Belczyk <belczyk@bsd.krakow.pl>
(slightly different patch commited)

16 years agoAllow only non-banked direct modes.
Sascha Wildner [Sun, 17 Jul 2005 16:50:40 +0000 (16:50 +0000)]
Allow only non-banked direct modes.

Obtained from: FreeBSD

16 years agoWhen a usb mass storage device is removed the related CAM SIM structure is
Matthew Dillon [Sun, 17 Jul 2005 03:49:50 +0000 (03:49 +0000)]
When a usb mass storage device is removed the related CAM SIM structure is
terminated.  A ref count prevents the actual sim structure from being
destroyed if the device still has refs, but the sim->devq structure is not so
protected and will be NULLed out.  An unmount attempt after device removal
will then result in a panic.

Fix this by testing for a NULL sim->devq.

Reported-by: Eduardo Tongson <propolice@gmail.com>
16 years agoRemove DEC Alpha support.
Sascha Wildner [Sun, 17 Jul 2005 02:41:10 +0000 (02:41 +0000)]
Remove DEC Alpha support.

16 years agoKTR_MALLOC should be KTR_MEMORY
Matthew Dillon [Sat, 16 Jul 2005 18:27:01 +0000 (18:27 +0000)]

16 years ago* Fix a bug that could cause dc_stop() to try to m_freem() something that's
Matthew Dillon [Sat, 16 Jul 2005 17:11:39 +0000 (17:11 +0000)]
* Fix a bug that could cause dc_stop() to try to m_freem() something that's
  not a valid mbuf pointer.
* Avoid an unnecessary copy of a packet if it is already in a single mbuf.
* Introduce an additional device flag (DC_TX_ALIGN) for those NICs which
  require the transmit buffers to be aligned to 32-bit boundaries.
* Ignore CSR13, CSR14, CSR15 'Media Specific Data' registers for 21143
  based cards which use SIA mode.
* Don't read the MAC address from a copy of the EEPROM in the softc
  that has been recorded earlier and overwrite it again later by
  reading it directly from the EEPROM again.
* Read the MAC address from the PAR0/PAR1 registers instead, which
  are autoloaded on reboot.
* Added ADMtek ADM9511 and ADM9513 device ID's

Submitted-by: Eduardo Tongson
Taken-from: FreeBSD
    if_dc.c       1.9.46,48,49,50,51,52,53,55

16 years agoReorder the INVARIANTS test in crit_enter() to occur prior to modifying
Matthew Dillon [Sat, 16 Jul 2005 17:09:15 +0000 (17:09 +0000)]
Reorder the INVARIANTS test in crit_enter() to occur prior to modifying
the critical section count rather then after, to try to catch critical
section mismatches earlier.

16 years agoMove a mistaken crit_exit() into a crit_enter(), which was panicing the
Matthew Dillon [Sat, 16 Jul 2005 17:08:13 +0000 (17:08 +0000)]
Move a mistaken crit_exit() into a crit_enter(), which was panicing the
system when switching out of the SLIP line discpline.

16 years agoAdd some missing crit_exit()'s. The original code just assumed that the
Matthew Dillon [Sat, 16 Jul 2005 17:07:21 +0000 (17:07 +0000)]
Add some missing crit_exit()'s.  The original code just assumed that the
SPL would be cleaned up by the caller, but the SPL->crit conversion really
requires that the routines be more self-contained.

16 years agoMake some functions that do not get access outside of job.c static
Max Okumoto [Sat, 16 Jul 2005 08:07:54 +0000 (08:07 +0000)]
Make some functions that do not get access outside of job.c static

16 years agoTemporarily remove KQUEUE code for now, since it complicates the
Max Okumoto [Fri, 15 Jul 2005 21:27:29 +0000 (21:27 +0000)]
Temporarily remove KQUEUE code for now, since it complicates the
job.c code.  I will reimpliment it later.

Checked by comparing object files genereage before #ifdef USE_KQUEUE
section where removed, and after they were removed.

16 years agoRemoved unused RANLIBMAG symbol since harti cleaned up the code
Max Okumoto [Fri, 15 Jul 2005 21:06:29 +0000 (21:06 +0000)]
Removed unused RANLIBMAG symbol since harti cleaned up the code
that used it. LIBSUFF into suff.c since it is only used there.

16 years agoHook libsctp into the build.
Eirik Nygaard [Fri, 15 Jul 2005 18:14:53 +0000 (18:14 +0000)]
Hook libsctp into the build.

16 years agoTie SCTP into the kernel, this includes adding a new syscall (sctp_peeloff).
Eirik Nygaard [Fri, 15 Jul 2005 17:54:48 +0000 (17:54 +0000)]
Tie SCTP into the kernel, this includes adding a new syscall (sctp_peeloff).

Obtained from: KAME

16 years agoDon't return right after a goto.
Eirik Nygaard [Fri, 15 Jul 2005 17:30:16 +0000 (17:30 +0000)]
Don't return right after a goto.

16 years agoCall suser() with the correct number of arguments.
Eirik Nygaard [Fri, 15 Jul 2005 17:23:47 +0000 (17:23 +0000)]
Call suser() with the correct number of arguments.

16 years agoRemove forgotten debug printf.
Eirik Nygaard [Fri, 15 Jul 2005 17:21:28 +0000 (17:21 +0000)]
Remove forgotten debug printf.

16 years agoConvert spl* to critical sections.
Eirik Nygaard [Fri, 15 Jul 2005 17:19:28 +0000 (17:19 +0000)]
Convert spl* to critical sections.

16 years agoAdd libsctp.
Eirik Nygaard [Fri, 15 Jul 2005 16:06:33 +0000 (16:06 +0000)]
Add libsctp.

Obtained from: KAME

16 years agoAdd a forth argument to soreserve(). Pass just a NULL for now.
Eirik Nygaard [Fri, 15 Jul 2005 15:52:00 +0000 (15:52 +0000)]
Add a forth argument to soreserve(). Pass just a NULL for now.

16 years agoInitialize a few more timers.
Eirik Nygaard [Fri, 15 Jul 2005 15:46:55 +0000 (15:46 +0000)]
Initialize a few more timers.

16 years agoProperly handle mbuf copying on DragonFly when we try to reduce the size of a
Eirik Nygaard [Fri, 15 Jul 2005 15:43:55 +0000 (15:43 +0000)]
Properly handle mbuf copying on DragonFly when we try to reduce the size of a

16 years agoRemove the second argument to ip_stripoptions(), it was never used.
Eirik Nygaard [Fri, 15 Jul 2005 15:39:48 +0000 (15:39 +0000)]
Remove the second argument to ip_stripoptions(), it was never used.

16 years agoAdd va_arg handling for DragonFly.
Eirik Nygaard [Fri, 15 Jul 2005 15:37:37 +0000 (15:37 +0000)]
Add va_arg handling for DragonFly.

16 years agoWe have to declare the parent node for a sysctl.
Eirik Nygaard [Fri, 15 Jul 2005 15:34:03 +0000 (15:34 +0000)]
We have to declare the parent node for a sysctl.

16 years agoOur mbuf allocation flags are prefixed with MB_ not M_.
Eirik Nygaard [Fri, 15 Jul 2005 15:15:27 +0000 (15:15 +0000)]
Our mbuf allocation flags are prefixed with MB_ not M_.

16 years agoAdd DragonFly to the #ifdef mess.
Eirik Nygaard [Fri, 15 Jul 2005 15:02:02 +0000 (15:02 +0000)]
Add DragonFly to the #ifdef mess.

I will probably remove support for the other platforms at a later date.

16 years agoCommit untouched SCTP files from KAME originally written by Randall Stewart.
Eirik Nygaard [Fri, 15 Jul 2005 14:46:17 +0000 (14:46 +0000)]
Commit untouched SCTP files from KAME originally written by Randall Stewart.

SCTP or Stream Control Transmission Protocol is designed so you can have
multiple streams within the same connection.

Obtained from: KAME

16 years agoRemove note about MDA and CGA adapters which we don't support anymore.
Sascha Wildner [Thu, 14 Jul 2005 20:44:32 +0000 (20:44 +0000)]
Remove note about MDA and CGA adapters which we don't support anymore.

The references to EGA modes are left in for the moment because VGA also
knows them.

Noticed by: cpressey

16 years agoSwitch to auth-pam.c from OpenSSH to unbreak Kerberos 5 build.
Joerg Sonnenberger [Thu, 14 Jul 2005 18:29:48 +0000 (18:29 +0000)]
Switch to auth-pam.c from OpenSSH to unbreak Kerberos 5 build.
Fix the bug which prevented one process from seeing the death
of the other. This allows us to remove the pthread hack.

16 years agoInstead of duplicating the Kerberos tools, use a single version.
Joerg Sonnenberger [Thu, 14 Jul 2005 18:02:33 +0000 (18:02 +0000)]
Instead of duplicating the Kerberos tools, use a single version.
Switch to host tools, since they are running on the build system,
not the target platform. Add an explicit dependency of buildincludes
to depend in kerberos5/tools to ensure that the tools are available
in phase 4a.

16 years agopam_skey is not supported anymore, remove it from the default config.
Joerg Sonnenberger [Thu, 14 Jul 2005 16:40:43 +0000 (16:40 +0000)]
pam_skey is not supported anymore, remove it from the default config.

16 years agoMODULE_DIR must include the final '/'.
Joerg Sonnenberger [Thu, 14 Jul 2005 14:21:16 +0000 (14:21 +0000)]
MODULE_DIR must include the final '/'.

16 years agoMerge from vendor branch OPENSSH:
Joerg Sonnenberger [Thu, 14 Jul 2005 13:10:21 +0000 (13:10 +0000)]
Merge from vendor branch OPENSSH:
Prepare for using the "official" PAM support.

16 years agoPrepare for using the "official" PAM support.
Joerg Sonnenberger [Thu, 14 Jul 2005 13:10:21 +0000 (13:10 +0000)]
Prepare for using the "official" PAM support.

16 years agoPrepare for using the "official" PAM support.
Joerg Sonnenberger [Thu, 14 Jul 2005 13:10:21 +0000 (13:10 +0000)]
Prepare for using the "official" PAM support.

16 years agoCorrect a typo, v_rbdirty_tree is for dirty buffers.
Hiten Pandya [Thu, 14 Jul 2005 12:38:46 +0000 (12:38 +0000)]
Correct a typo, v_rbdirty_tree is for dirty buffers.

16 years agofix typo, SRCS should contain the .c file.
Joerg Sonnenberger [Thu, 14 Jul 2005 12:30:14 +0000 (12:30 +0000)]
fix typo, SRCS should contain the .c file.

16 years agoFrom FreeBSD:
Simon Schubert [Thu, 14 Jul 2005 09:13:27 +0000 (09:13 +0000)]
From FreeBSD:
  Better memory handling:

   - It is acceptable to call free(3) when the given pointer itself
     is NULL, so we do not need to determine NULL before passing
     a pointer to free(3)
   - Handle failure of malloc(3)

  MT6/5 Candidate

  Submitted by:   Dan Lukes <dan at obluda cz>

Submitted-by: Xin LI <delphij delphij net>
16 years agoUnbreak release build from older machines which don't define ${LN} yet.
Simon Schubert [Thu, 14 Jul 2005 07:35:52 +0000 (07:35 +0000)]
Unbreak release build from older machines which don't define ${LN} yet.
This is much easier than adding LN?= to -Release and getting people to
upgrade first...

16 years agoPAM is dead, long live PAM!
Joerg Sonnenberger [Wed, 13 Jul 2005 22:04:06 +0000 (22:04 +0000)]
PAM is dead, long live PAM!

16 years agoRemove extra whitespace at the end of some lines.
Sascha Wildner [Wed, 13 Jul 2005 21:08:07 +0000 (21:08 +0000)]
Remove extra whitespace at the end of some lines.

16 years agoUpdate zoneinfo database.
Sascha Wildner [Wed, 13 Jul 2005 21:03:03 +0000 (21:03 +0000)]
Update zoneinfo database.

africa: 7.36 -> 7.37
antarctica: 7.23 -> 7.24
asia: 7.75 -> 7.82
australasia: 7.69 -> 7.71
backward: 7.26 -> 7.27
etcetera: 7.11 -> 7.12
europe: 7.88 -> 7.92
northamerica: 7.69 -> 7.74
southamerica: 7.52 -> 7.59

16 years agoReturn child exit status through ProcStuff.
Max Okumoto [Wed, 13 Jul 2005 20:41:43 +0000 (20:41 +0000)]
Return child exit status through ProcStuff.

16 years agoAdd better comments and renamed functions to match rest of the code
Max Okumoto [Wed, 13 Jul 2005 20:41:27 +0000 (20:41 +0000)]
Add better comments and renamed functions to match rest of the code
in make.

16 years agocleanup some spelling errors
Max Okumoto [Wed, 13 Jul 2005 20:41:11 +0000 (20:41 +0000)]
cleanup some spelling errors

16 years agoMove mkfifio(), and FILENO() into util.c
Max Okumoto [Wed, 13 Jul 2005 20:40:52 +0000 (20:40 +0000)]
Move mkfifio(), and FILENO() into util.c

16 years agoMove common code that executes the comands associated with a rule
Max Okumoto [Wed, 13 Jul 2005 20:40:30 +0000 (20:40 +0000)]
Move common code that executes the comands associated with a rule
in into Compat_RunCmds().

16 years agoGroup curdir and objdir code.
Max Okumoto [Wed, 13 Jul 2005 20:39:59 +0000 (20:39 +0000)]
Group curdir and objdir code.

16 years agoAdd PF_MASKOS and PF_MASKPROC and realign the comment section.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 19:40:58 +0000 (19:40 +0000)]
Add PF_MASKOS and PF_MASKPROC and realign the comment section.

Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 19:37:09 +0000 (19:37 +0000)]

STV_* concerns symbol visibility.

16 years agoAdd section group flags (GRP_*).
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 19:11:52 +0000 (19:11 +0000)]
Add section group flags (GRP_*).

Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 19:07:05 +0000 (19:07 +0000)]

Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:46:31 +0000 (18:46 +0000)]

16 years agoAdd SHN_LOOS, SHN_HIOS and SHN_XINDEX.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:40:34 +0000 (18:40 +0000)]

16 years agoAdd ELFOSABI for OpenVMS, HP Non-Stop Kernel, and Amiga Research OS.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:36:24 +0000 (18:36 +0000)]
Add ELFOSABI for OpenVMS, HP Non-Stop Kernel, and Amiga Research OS.

16 years agoRetire EM_486.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:33:50 +0000 (18:33 +0000)]
Retire EM_486.
It was never used anyway, EM_386 is the value used for 80386 and higher.

16 years agoDemarcate e_machine reserved ranges.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:27:08 +0000 (18:27 +0000)]
Demarcate e_machine reserved ranges.

16 years agoEM_ALPHA has been assigned number 41 nowadays, reflect this fact.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:16:14 +0000 (18:16 +0000)]
EM_ALPHA has been assigned number 41 nowadays, reflect this fact.

16 years agoExpand e_machine per ELF ABI of Dec 2003.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:13:19 +0000 (18:13 +0000)]
Expand e_machine per ELF ABI of Dec 2003.

16 years agoSeriously expand e_machine.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 18:06:21 +0000 (18:06 +0000)]
Seriously expand e_machine.

16 years agoCall bus_setup_intr in xe_attach, not xe_activate. This prevents
Joerg Sonnenberger [Wed, 13 Jul 2005 17:46:05 +0000 (17:46 +0000)]
Call bus_setup_intr in xe_attach, not xe_activate. This prevents
race conditions and avoids calling ether_detach without first calling
Call bus_teardown_intr in xe_detach, not xe_deactivate. This is
symmetrical to the attach path. Use a critical section in xe_detach
to protect against concurrent interrupts.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoExpand e_type with OS and processor-specific ranges.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 17:45:15 +0000 (17:45 +0000)]
Expand e_type with OS and processor-specific ranges.

16 years agoAdd SHF_TLS and STT_TLS to complete the ELF ABI for TLS.
Jeroen Ruigrok/asmodai [Wed, 13 Jul 2005 17:40:35 +0000 (17:40 +0000)]
Add SHF_TLS and STT_TLS to complete the ELF ABI for TLS.

OK'd by: joerg

16 years agoMove PCCARD attachment into separate file. Use the NEWCARD helper
Joerg Sonnenberger [Wed, 13 Jul 2005 17:31:05 +0000 (17:31 +0000)]
Move PCCARD attachment into separate file. Use the NEWCARD helper
functions for accessing the CIS instead of doing it manually.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Obtained-from: FreeBSD

16 years agoUse if_printf most of the time and remove the device_t stored in softc.
Joerg Sonnenberger [Wed, 13 Jul 2005 17:10:25 +0000 (17:10 +0000)]
Use if_printf most of the time and remove the device_t stored in softc.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoUse ether_crc32_be.
Joerg Sonnenberger [Wed, 13 Jul 2005 17:03:00 +0000 (17:03 +0000)]
Use ether_crc32_be.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Obtained-from: FreeBSD

16 years agoChange to common PCI probe style.
Joerg Sonnenberger [Wed, 13 Jul 2005 17:01:31 +0000 (17:01 +0000)]
Change to common PCI probe style.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoRemove unused junk.
Joerg Sonnenberger [Wed, 13 Jul 2005 17:00:34 +0000 (17:00 +0000)]
Remove unused junk.

Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
16 years agoPrepare for moving from /etc/pam.conf to /etc/pam.d.
Joerg Sonnenberger [Wed, 13 Jul 2005 16:30:23 +0000 (16:30 +0000)]
Prepare for moving from /etc/pam.conf to /etc/pam.d.

16 years agoFor now just use lwkt_gettoken() rather then a trytoken/gettoken combination.
Matthew Dillon [Wed, 13 Jul 2005 16:06:04 +0000 (16:06 +0000)]
For now just use lwkt_gettoken() rather then a trytoken/gettoken combination.
This is as part of an attempt to debug a potential issue with the objcache.

16 years agoCheck for a free-after-send case and panic if detected.
Matthew Dillon [Wed, 13 Jul 2005 16:04:00 +0000 (16:04 +0000)]
Check for a free-after-send case and panic if detected.

16 years agoDon't expand CCVER when testing for its definition.
Simon Schubert [Wed, 13 Jul 2005 15:26:21 +0000 (15:26 +0000)]
Don't expand CCVER when testing for its definition.

16 years agoUse src/share/mk to get a current sys.mk which defines LN.
Simon Schubert [Wed, 13 Jul 2005 15:25:32 +0000 (15:25 +0000)]
Use src/share/mk to get a current sys.mk which defines LN.

Reported-by: YONETANI Tomokazu <qhwt+dfly@les.ath.cx>
Reminded-again-by: drhodus
16 years agoA lot of software depends on netinet/in.h being self-contained,
Joerg Sonnenberger [Wed, 13 Jul 2005 14:11:42 +0000 (14:11 +0000)]
A lot of software depends on netinet/in.h being self-contained,
so include sys/types.h for now. The namespace pollution is effectively
needed anyway.

MFC after 3 days.

16 years agoDefine struct in_addr in both, arpa/inet.h and netinet/in.h,
Joerg Sonnenberger [Wed, 13 Jul 2005 12:49:56 +0000 (12:49 +0000)]
Define struct in_addr in both, arpa/inet.h and netinet/in.h,
as required by SUS.

MFC after 3 days.

16 years agoSwitch to OpenPAM. The PAM modules are now installed in /usr/lib/security
Joerg Sonnenberger [Wed, 13 Jul 2005 12:34:22 +0000 (12:34 +0000)]
Switch to OpenPAM. The PAM modules are now installed in /usr/lib/security
and versioned, programs using LinuxPAM continue to work for that reason.

16 years agoAdd journaling restart support, required to produce a robust journaling
Matthew Dillon [Wed, 13 Jul 2005 02:00:19 +0000 (02:00 +0000)]
Add journaling restart support, required to produce a robust journaling
environment.  If a journal is writing to one stream and the stream breaks
or dies or otherwise fails, this feature gives us the ability to restart the
journaling stream on a new descriptor without losing any data.  The
journaling restart code does a shutdown() of the old descriptor, waits for
both directions to cease operation, installs a new stream descriptor,
and resets the FIFO index to the last acknowledged offset.

This can be demonstrated by opening two windows.  In the first window do:

    mountctl -a2 /usr:test | jscan -d2 stdin

Mess around a bit on /usr.  Then in the second window do:

    mountctl -r2 /usr:test | jscan -d2 stdin

The first jscan will terminate and the new jscan will pick up the stream.

16 years agoMake shutdown() a fileops operation rather then a socket operation.
Matthew Dillon [Wed, 13 Jul 2005 01:38:54 +0000 (01:38 +0000)]
Make shutdown() a fileops operation rather then a socket operation.
Pipes are full-duplex entities, so implement shutdown support for them.

16 years agoHook up remaining PAM modules. Don't use DPADD for now, it's conflicting
Joerg Sonnenberger [Tue, 12 Jul 2005 23:30:24 +0000 (23:30 +0000)]
Hook up remaining PAM modules. Don't use DPADD for now, it's conflicting
with the LIBDIR setting for the target location.

16 years agoImport current pam_ssh from FreeBSD HEAD.
Joerg Sonnenberger [Tue, 12 Jul 2005 23:26:49 +0000 (23:26 +0000)]
Import current pam_ssh from FreeBSD HEAD.

16 years agoImport current pam_radius from FreeBSD HEAD.
Joerg Sonnenberger [Tue, 12 Jul 2005 23:13:26 +0000 (23:13 +0000)]
Import current pam_radius from FreeBSD HEAD.

16 years agoImport current pam_opieaccess from FreeBSD HEAD.
Joerg Sonnenberger [Tue, 12 Jul 2005 23:08:53 +0000 (23:08 +0000)]
Import current pam_opieaccess from FreeBSD HEAD.

16 years agoImport current pam_krb5 from FreeBSD HEAD.
Joerg Sonnenberger [Tue, 12 Jul 2005 23:04:02 +0000 (23:04 +0000)]
Import current pam_krb5 from FreeBSD HEAD.