rwatson
9abedb6965
Update NAI copyright to 2003, missed in earlier commits and merges.
2003-04-18 19:57:37 +00:00
phk
8f433e738c
First scrub of s/disklabel/bsdlabel/
...
bsdlabel.5 deliberately exempted, its contents looks less than useful.
2003-04-18 19:44:12 +00:00
bde
691d3715d6
Backed out rev.1.57. This restores format checking functions like
...
err() again. All known err() format errors in src that developed
while format checking was broken have been fixed. Tested on i386,
alpha, ia64.
2003-04-18 18:59:34 +00:00
julian
44fb01cd78
Revert parts of 1.309 to allow processes to have a signal mask
...
independently from the threads again.
Will be adding code to use this soon..
2003-04-18 18:51:52 +00:00
jhb
9d51c8cfb5
Fix a bug in alpha_get_uac() that I introduced in revision 1.18. It is
...
supposed to return the uac of the parent process of the current process,
not the current process.
Pointy hat to: jhb
2003-04-18 18:06:32 +00:00
mtm
65d4bf1aff
o Hook the new files up to the build.
...
o Make sure all the scripts reference rc.d/netif and not rc.d/network1
Approved by: markm (mentor)
2003-04-18 17:55:05 +00:00
mtm
0c05e74326
Make use of the dhclient script. This will bring up/down dhcp
...
interfaces.
Approved by: markm (mentor)
2003-04-18 17:53:02 +00:00
mtm
70cccaca83
Break out and rewrite the network setup scripts.
...
o /etc/network.subr contains common subroutines used for seting
up network interfaces
o rc.d/hostname sets the hostname if not already set
o rc.d/nisdomain sets the nis domain *after* rpcbind but
before the yp* daemons. This fixes issues with temporary
hangs when looking up informaion in nis before it's ready.
o rc.d/netif brings network interfaces (minus dhcp) up.
o rc.d/network1 has been disabled and will be retired before
RELENG_5. It will be replaced by rc.d/netif
Approved by: markm (mentor)
2003-04-18 17:51:54 +00:00
pdeuskar
05b93dc7b7
Tell the upper layer(s) that we support long frames.
...
Not doing this caused the vlan mtu to be reduced by 4 bytes.
Submitted by: Doug Ambrisko (ambrisko)
MFC after: 1 day
2003-04-18 17:36:13 +00:00
nectar
d53b36cf85
Don't use `memset' to initialize a struct passwd. A module
...
may not fill in all fields, and in the case of string fields, this could
cause trouble for applications. (The only likely example is `pw_class',
because this field is not used by all modules in all cases.)
Move initialization of struct passwd from module-specific code to the
dispatch code.
The problem of a NULL pw_class was
Noticed by: Philip Paeps <philip@paeps.cx>
and the c^Htrusty ssh(1) command.
Déjà vu by: getpwent.c revision 1.56
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 17:27:05 +00:00
alc
83fe46be18
Update locking around vm_object_page_remove() to use the new macros.
2003-04-18 16:39:03 +00:00
nectar
b41f585c1a
Correctly set _PWF_FILES in pw_fields when appropriate.
...
(_PWF_NIS and _PWF_HESIOD were already being set.)
Reported by: Shizuka Kudo <shizukakudo_99@yahoo.com>
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 16:24:25 +00:00
sanpei
93158f5219
Add support for Planex FNW-3602-T(CardBus 100M/10M).
...
Submitted by: kazz <kazz@v001.vaio.ne.jp>
Obtained from: [bsd-nomads:16637]
2003-04-18 15:42:25 +00:00
sanpei
7fd7ee13c5
Sync to 1.48
2003-04-18 15:35:52 +00:00
sanpei
2e291e7846
fix corega vendor id(use vendor string and product string)
...
Submitted by: imp
2003-04-18 14:52:14 +00:00
nectar
8e1cb92b6b
Revert the definitions of _PW_KEY* to their previous values. There is
...
at least one consumer outside of libc and pwd_mkdb.
Adjust the versioning in libc and pwd_mkdb accordingly.
named was the application affected, and that fact was first
Reported by: Zherdev Anatoly <tolyar@mx.ru>
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 14:11:17 +00:00
gallatin
e2c2f3b862
Don't grab Giant in slab_zalloc() if M_NOWAIT is specified. This
...
should allow the use of INTR_MPSAFE network drivers.
Tested by: njl
Glanced at by: jeff
2003-04-18 13:02:29 +00:00
ru
194f63b268
Make this compile under cs_CZ.ISO8859-2 locale.
...
Reported by: Pav Lucistnik <pav@oook.cz>
We hit this problem earlier, in PR misc/45460.
2003-04-18 13:01:07 +00:00
phk
d9c56fdf9e
KASSERT that NG_MKMESSAGE() is not called with mbuf flags.
2003-04-18 12:37:33 +00:00
deischen
4819c92a75
Remove duplicate $FreeBSD$ id.
2003-04-18 07:45:03 +00:00
deischen
d729efd111
Sorry folks; I accidentally committed a patch from what I was working
...
on a couple of days ago. This should be the most recent changes.
Noticed by: davidxu
2003-04-18 07:09:43 +00:00
jeff
556bb64555
- Set the ke_cpu field in sched_add() for interrupt and realtime threads
...
since they are going on the current cpu and not their previously assigned
cpu.
- sched_runnable() should only return true in the SMP case if the other
processor has more than one thread that is runnable. We can not steal
curthread.
- Change kseq_print() to accept the cpuid instead of a kseq pointer. This
makes use of this function in ddb much easier.
2003-04-18 05:24:10 +00:00
deischen
f3007d8862
Comment out the addition of -g to CFLAGS. This snuck in from
...
my local version.
2003-04-18 05:06:56 +00:00
deischen
5d56aa9cb2
Revamp libpthread so that it has a chance of working in an SMP
...
environment. This includes support for multiple KSEs and KSEGs.
The ability to create more than 1 KSE via pthread_setconcurrency()
is in the works as well as support for PTHREAD_SCOPE_SYSTEM threads.
Those should come shortly.
There are still some known issues which davidxu and I are working
on, but it'll make it easier for us by committing what we have.
This library now passes all of the ACE tests that libc_r passes
with the exception of one. It also seems to work OK with KDE
including konqueror, kwrite, etc. I haven't been able to get
mozilla to run due to lack of java plugin, so I'd be interested
to see how it works with that.
Reviewed by: davidxu
2003-04-18 05:04:16 +00:00
deischen
e68f624d87
Add FIFO queueing locking operations based on atomic swap.
...
Modify thread errno for the new libpthread changes.
Reviewed by: davidxu
2003-04-18 05:02:39 +00:00
deischen
9fe0b6bde6
Add architecture dependent atomic ops (atomic_swap only), KSE specific
...
data, and userland versions of [gs]etcontext().
Modify the UTS entry and exit functions to account of FPU validity
and format.
2003-04-18 05:00:52 +00:00
obrien
1db7e0c6d8
Vendor import revision 1.51 of 8010.h (we renamed the file) from
...
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/emu10k1/emu10k1/8010.h .
This includes some Audigy support.
2003-04-18 04:17:08 +00:00
obrien
23d5786094
Sync with Creative's 8010.h rev 1.39.
2003-04-18 04:13:38 +00:00
obrien
6c86bcc82d
Vendor import revision 1.39 of 8010.h (we renamed the file) from
...
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/emu10k1/emu10k1/8010.h .
Rev 1.39 best matches our rev 1.3.
2003-04-18 03:57:22 +00:00
grehan
f1e6671946
Remove reference to ata resource in print_child.
2003-04-18 02:47:12 +00:00
grehan
2a6899a008
Remove sparse address hack.
2003-04-18 02:46:12 +00:00
grehan
a907ab9da4
Vastly simplify the macio ATA attachment, now that the register file
...
indirection is handled in the ATA common code.
2003-04-18 02:43:23 +00:00
grehan
bb63ad371c
Remove sparse addressing hack. The macio ATA driver no longer requires
...
this.
2003-04-18 02:42:27 +00:00
grehan
185952a327
- Convert NetBSD-derived macros to inline functions for better
...
type-checking and future debug code.
- Remove sparse addressing hack, since the only consumer, the macio ATA
driver, doesn't require it anymore.
2003-04-18 02:38:10 +00:00
jwd
2efab590ba
continuation not needed
2003-04-18 02:30:40 +00:00
gshapiro
2c5f033673
The sendmail binary now has a reasonable default for MaxMimeHeaderLength
...
built in. No need to set it here.
MFC after: 1 week
2003-04-18 01:25:41 +00:00
nectar
381ebbf8d2
The default if nsswitch.conf(5) is not present is supposed to be the
...
hated `compat' source, not `files'.
Reported by: Philip Paeps <philip@paeps.cx>
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 01:00:37 +00:00
julian
0e096a3dd1
Add a thread_unlink() and use it.
...
It could also be used twice in kern_thr.c but that's owned by jeff
so I'l let him change it when he's next there.
2003-04-18 00:16:13 +00:00
bde
5c54a6ed57
Fixed an err() format error in rev.1.1. This should have been fatal
...
since WARNS was high in rev.1.1, but __printf0like() has been temporarily
disabled for 9 months.
2003-04-17 22:39:32 +00:00
jhb
5adc19ca85
suser() does not need the proc lock, just the setting of P_PROTECTED in
...
p_flag needs the lock.
2003-04-17 22:38:27 +00:00
jhb
e1dd224437
- kthread's don't have p_textvp set to anything, so replace code that
...
dealt with that possibility with a KASSERT().
- No need to set P_SYSTEM, kthread_create() does that for us.
2003-04-17 22:37:48 +00:00
jhb
05864a7334
- Use a local struct proc variable to improve readability.
...
- Use a local variable to close a minor race when determining if the wmesg
printed out needs a prefix such as when a thread is blocked on a lock.
2003-04-17 22:36:40 +00:00
jhb
bffa90cc0a
Tweak locking in the PS_XCPU handler to hold the sched_lock while reading
...
p_runtime.
2003-04-17 22:33:04 +00:00
jhb
5023bfe74a
The sched_lock is not needed while clearing two of the P_STOPPED bits in
...
p_flag. Also, the proc lock can't be recursed, so simplify an older proc
lock assertion.
2003-04-17 22:31:54 +00:00
jhb
872336ea36
Don't assume that p_session hasn't changed out from under us after unlocking
...
the process and session. Instead, cache a true reference to the session
when we do the hold and release our reference on that session. This avoids
the need for the proc lock when dropping the reference.
2003-04-17 22:30:43 +00:00
jhb
a5725b28f3
Lock the sched_lock while setting TDF_INPANIC.
2003-04-17 22:29:23 +00:00
jhb
2cdea9a30c
Use TD_IS_RUNNING() instead of thread_running() in the adaptive mutex
...
code.
2003-04-17 22:28:58 +00:00
jhb
c94962975b
fork1() already sets PS_INMEM, so don't set it again. This lets us push
...
sched_lock down slightly so that it isn't needed in the RFSTOPPED case.
2003-04-17 22:28:28 +00:00
jhb
08b81c369f
- The prison mutex cannot possibly protect pointers to the prison it
...
protects, so don't bother locking it while we assign it to a ucred's
cr_prison.
- Fully construct the new credential for a process before assigning it to
p_ucred.
2003-04-17 22:26:53 +00:00
jhb
313b87d41a
Add some locking in for a few proc and thread fields.
2003-04-17 22:25:35 +00:00