dragonfly.git
17 years agoAdd the "wordexp" shell built-in command.
Peter Avalos [Sun, 7 Jan 2007 08:26:55 +0000 (08:26 +0000)]
Add the "wordexp" shell built-in command.

Obtained-from:  FreeBSD

17 years agoMake the vmspace_*() system call prototypes available to (virtual) kernel
Matthew Dillon [Sun, 7 Jan 2007 05:54:01 +0000 (05:54 +0000)]
Make the vmspace_*() system call prototypes available to (virtual) kernel
builds.

17 years agoSet rootdevnames[0] to automatically boot from ufs:vd0a when a root disk
Matthew Dillon [Sun, 7 Jan 2007 05:52:53 +0000 (05:52 +0000)]
Set rootdevnames[0] to automatically boot from ufs:vd0a when a root disk
image is specified.

17 years agoHandle page faults within the virtual kernel process itself (what would be
Matthew Dillon [Sun, 7 Jan 2007 05:45:06 +0000 (05:45 +0000)]
Handle page faults within the virtual kernel process itself (what would be
called kernel mode page faults in a real kernel).  Fortunately the system
trapframe is a subset of the ucontext supplied to userland signal function.

Since user vs kernel addresses and trap types cannot be discerned by looking
at the frame (because they are in entirely different VM spaces), separate
trap() into user_trap() and kern_trap().

Implement a poor-man's (really kludgy) version of copyin, copyout, and related
functions.

Implement and process T_PAGEFLT virtual kernel traps.  They work about 85% of
the time.

UFS is now able to mount the root filesystem.

17 years agoThe stack frame available from a signal to user mode stores the fault address
Matthew Dillon [Sun, 7 Jan 2007 05:41:02 +0000 (05:41 +0000)]
The stack frame available from a signal to user mode stores the fault address
in tf_err.  The PGEX bits that used to be stored in tf_err are lost.

When a process a virtual kernel (p->p_vkernel != NULL), store the PGEX bits
in the high 16 bits of the tf_trapno field so the virtual kernel can
figure out whether the page fault was a read fault or a write fault.

17 years agoremove extra crit_exit()
YONETANI Tomokazu [Sun, 7 Jan 2007 04:06:51 +0000 (04:06 +0000)]
remove extra crit_exit()

17 years agoSort by bltincmd and remove lines that have been commented out for years.
Peter Avalos [Sun, 7 Jan 2007 02:52:07 +0000 (02:52 +0000)]
Sort by bltincmd and remove lines that have been commented out for years.

17 years agoAdd support for a root disk device file.
Matthew Dillon [Sun, 7 Jan 2007 02:42:24 +0000 (02:42 +0000)]
Add support for a root disk device file.

Initialize the time of day.

17 years agoAdd a virtual disk device for virtual kernels to boot from.
Matthew Dillon [Sun, 7 Jan 2007 02:41:20 +0000 (02:41 +0000)]
Add a virtual disk device for virtual kernels to boot from.

17 years ago* Add documentation for KERNCONF and KERNCONFDIR.
Sascha Wildner [Sun, 7 Jan 2007 01:28:51 +0000 (01:28 +0000)]
* Add documentation for KERNCONF and KERNCONFDIR.

* Use .Ev for environment variables.

* Fix wording a bit.

17 years agoUse -s to flag POSIX's "special built-in" utilities in builtins.def. Add a
Peter Avalos [Sun, 7 Jan 2007 01:14:53 +0000 (01:14 +0000)]
Use -s to flag POSIX's "special built-in" utilities in builtins.def.  Add a
new member to struct builtincmd and set it to 1 if -s was specified.  This
is done because there are cases where special builtins must be treated
differently from other builtins.

Implement some of the differences between special built-ins and other builtins
demanded by POSIX.
- A redirection error is only fatal (meaning the execution of a shell script is
  terminated) for special built-ins.  Previously it was fatal for all shell
  builtins, causing problems like the one reported in FreeBSD PR 88845.
- Variable assignments remain in effect for special built-ins.
- Option or operand errors are only fatal for special built-ins.

Add the times builtin.  It reports the user and system time for the shell
itself and its children.  Instead of calling times() (as implied by POSIX) this
implementation directly calls getrusage() to get the times because this is more
convenient.

Print pointers with %p rather than casting them to long.

Replace home-grown dup2() implementation with actual dup2() calls.  This
should slightly reduce the number of system calls in critical portions of
the shell, and select a more efficient path through the fdalloc code.

Implement the PS4 variable which is defined by the POSIX User Portability
Utilities option.  Its value is printed at the beginning of the line if tracing
(-x) is active.  PS4 defaults to the string "+ " which is compatible with the
old behaviour to always print "+ ".

Don't crash on "<cmd> | { }".

Remove some white space at EOL.

Add the POSIX options -v and -V to the 'command' builtin.  Both describe the
type of their argument, if it is a shell function, an alias, a builtin, etc.
-V is more verbose than -v.

Do not assume there is only a space between #define and the macro name
when grepping for JOBS in mkbuiltins

Obtained-from:  FreeBSD

17 years agoUse itimers to implement the virtual kernel's SYSTIMER backend.
Matthew Dillon [Sun, 7 Jan 2007 00:44:33 +0000 (00:44 +0000)]
Use itimers to implement the virtual kernel's SYSTIMER backend.

17 years agoAllow certain cpufunc.h inlines to be overridden by virtual kernel builds.
Matthew Dillon [Sun, 7 Jan 2007 00:43:22 +0000 (00:43 +0000)]
Allow certain cpufunc.h inlines to be overridden by virtual kernel builds.

17 years agoMake libc prototypes available for kernel builds.
Matthew Dillon [Sun, 7 Jan 2007 00:42:55 +0000 (00:42 +0000)]
Make libc prototypes available for kernel builds.

17 years agodefine _KERNEL_VIRTUAL if not defined to hack-fix conflicts with normal
Matthew Dillon [Sun, 7 Jan 2007 00:42:26 +0000 (00:42 +0000)]
define _KERNEL_VIRTUAL if not defined to hack-fix conflicts with normal
include files.

17 years agoFix symbol conflict with falloc()
Matthew Dillon [Sun, 7 Jan 2007 00:41:29 +0000 (00:41 +0000)]
Fix symbol conflict with falloc()

17 years agoSignal handlers usually inherit %gs. Make them inherit %fs as well. This
Matthew Dillon [Sun, 7 Jan 2007 00:39:15 +0000 (00:39 +0000)]
Signal handlers usually inherit %gs.  Make them inherit %fs as well.  This
may or may not be a good idea but I am hard pressed to find a reason why
it would hurt anything.

The virtual kernel uses %gs for the libc TLS support, and %fs for its
globaldata base.

17 years agoFix compiler warnings
Matthew Dillon [Sun, 7 Jan 2007 00:02:17 +0000 (00:02 +0000)]
Fix compiler warnings

17 years agoFix a conflict with libc's killpg().
Matthew Dillon [Sun, 7 Jan 2007 00:02:03 +0000 (00:02 +0000)]
Fix a conflict with libc's killpg().

17 years agoAssign proc0 a dummy frame to bootstrap vm_fork().
Matthew Dillon [Sat, 6 Jan 2007 22:43:20 +0000 (22:43 +0000)]
Assign proc0 a dummy frame to bootstrap vm_fork().

17 years agoAdd a new procedure, vm_fault_page(), which does all actions related to
Matthew Dillon [Sat, 6 Jan 2007 22:35:47 +0000 (22:35 +0000)]
Add a new procedure, vm_fault_page(), which does all actions related to
faulting in a VM page given a vm_map and virtual address, include any
necessary I/O, but returns the held page instead of entering it into a pmap.

Use the new function in procfs_rwmem, allowing gdb to 'see' memory that
is governed by a virtual page table.

17 years agoIf no memory image file is specified, locate or create one by running
Matthew Dillon [Sat, 6 Jan 2007 19:57:01 +0000 (19:57 +0000)]
If no memory image file is specified, locate or create one by running
through available indices instead of using the PID.

Make sure the kernel page table is properly cleared since the image file may
be reused.

17 years agoOffset KernelPTD and KernelPTA so we can directly translate a kernel virtual
Matthew Dillon [Sat, 6 Jan 2007 19:40:55 +0000 (19:40 +0000)]
Offset KernelPTD and KernelPTA so we can directly translate a kernel virtual
address without subtracting KvaStart, simplifying the pmap code.  Also
clean up the page table initialization (make it actually work properly).

Make sure the set_sysinit_set and set_sysuninit_set sections are R/W,
because the kernel SYSINIT modifies them.

Successfully boot the virtual kernel through to the first vm_fork.

17 years agoInitialize thread0.td_gd prior to calling various gdinit functions, because
Matthew Dillon [Sat, 6 Jan 2007 19:38:20 +0000 (19:38 +0000)]
Initialize thread0.td_gd prior to calling various gdinit functions, because
crit_exit() uses thread->td_gd to get back to the globaldata structure.

17 years agoUse Maxmem instead of physmem. physmem is used only within pc32
Matthew Dillon [Sat, 6 Jan 2007 19:37:20 +0000 (19:37 +0000)]
Use Maxmem instead of physmem.  physmem is used only within pc32

17 years agoRemove old debugging printf.
Matthew Dillon [Sat, 6 Jan 2007 19:35:30 +0000 (19:35 +0000)]
Remove old debugging printf.

17 years agoRemove the hack.So hack for virtual kernels.
Matthew Dillon [Sat, 6 Jan 2007 08:57:30 +0000 (08:57 +0000)]
Remove the hack.So hack for virtual kernels.

17 years agoVKERNEL work, deal with remaining undefined symbols.
Matthew Dillon [Sat, 6 Jan 2007 08:34:53 +0000 (08:34 +0000)]
VKERNEL work, deal with remaining undefined symbols.

17 years agoRemove all physio_proc_*() calls. They were all NOPs anyhow and used
Matthew Dillon [Sat, 6 Jan 2007 08:33:36 +0000 (08:33 +0000)]
Remove all physio_proc_*() calls.  They were all NOPs anyhow and used
inconsistently.  busdma handles the related issue anyway.

17 years agoRename errno to error to avoid conflict with errno.h
Matthew Dillon [Sat, 6 Jan 2007 08:27:54 +0000 (08:27 +0000)]
Rename errno to error to avoid conflict with errno.h

17 years agoConditionalize the existance of a gdt[] array for the in-kernel disassembler.
Matthew Dillon [Sat, 6 Jan 2007 08:25:01 +0000 (08:25 +0000)]
Conditionalize the existance of a gdt[] array for the in-kernel disassembler.

17 years agoConditionalize the existance of a gdt[] array for the in-kernel disassembler.
Matthew Dillon [Sat, 6 Jan 2007 08:24:41 +0000 (08:24 +0000)]
Conditionalize the existance of a gdt[] array for the in-kernel disassembler.

17 years agoConditionalize all of the subdirectories in dev so we skip them for
Matthew Dillon [Sat, 6 Jan 2007 08:08:24 +0000 (08:08 +0000)]
Conditionalize all of the subdirectories in dev so we skip them for
VKERNEL builds.

17 years agoConvert the remaining callers of errmsg() to use strerror(), and remove
Peter Avalos [Sat, 6 Jan 2007 03:44:04 +0000 (03:44 +0000)]
Convert the remaining callers of errmsg() to use strerror(), and remove
errmsg() and its table of error messages.

Remove some white space at EOL.

Restore "not found" error message when searching for (or executing)
a program fails because the file or a path component does not exist.

Remove dead code which supported systems without O_APPEND, O_CREAT or SIGTSTP.

Obtained-from:  FreeBSD

17 years agoThe last commit was incomplete, correct.
Matthew Dillon [Sat, 6 Jan 2007 03:34:39 +0000 (03:34 +0000)]
The last commit was incomplete, correct.

17 years agoGDB stubs were only being compiled on systems with serial I/O installed,
Matthew Dillon [Sat, 6 Jan 2007 03:33:48 +0000 (03:33 +0000)]
GDB stubs were only being compiled on systems with serial I/O installed,
but DCONS can use it too.  Remove the SIO requirement.

17 years agoRepo-move machine/pc32/i386/i386-gdbstub.c to cpu/i386/misc/i386-gdbstub.c.
Matthew Dillon [Sat, 6 Jan 2007 03:29:12 +0000 (03:29 +0000)]
Repo-move machine/pc32/i386/i386-gdbstub.c to cpu/i386/misc/i386-gdbstub.c.

17 years agoRemove fuswintr() and suswintr(), they were never implemented and it was a
Matthew Dillon [Sat, 6 Jan 2007 03:23:20 +0000 (03:23 +0000)]
Remove fuswintr() and suswintr(), they were never implemented and it was a
bad idea to try to write to a userspace context from an interrupt anyway.

17 years agoMove uiomove_fromphyhs() source from MD to MI.
Matthew Dillon [Sat, 6 Jan 2007 03:16:24 +0000 (03:16 +0000)]
Move uiomove_fromphyhs() source from MD to MI.

17 years agoRename system calls, removing a "sys_" prefix that turned out not to be
Matthew Dillon [Sat, 6 Jan 2007 01:46:45 +0000 (01:46 +0000)]
Rename system calls, removing a "sys_" prefix that turned out not to be
such a good idea.

sys_set_tls_area() to set_tls_area()
sys_get_tls_area() to get_tls_area()

17 years agoAdd handler for timespec values.
Simon Schubert [Fri, 5 Jan 2007 23:00:10 +0000 (23:00 +0000)]
Add handler for timespec values.

Noticed-by: Jeremy C. Reed
17 years agoDon't strip a leading ./ from the path for the cd builtin to avoid interpreting
Peter Avalos [Fri, 5 Jan 2007 22:18:52 +0000 (22:18 +0000)]
Don't strip a leading ./ from the path for the cd builtin to avoid interpreting
.//dir as /dir.  Rather strip it only for the purpose of checking if the
directory path should be printed.

Obtained-from:  FreeBSD

17 years agoContinue fleshing out the VKERNEL.
Matthew Dillon [Fri, 5 Jan 2007 22:18:20 +0000 (22:18 +0000)]
Continue fleshing out the VKERNEL.

17 years agoMove dumplo from MD to kern/kern_shutdown.c
Matthew Dillon [Fri, 5 Jan 2007 22:16:32 +0000 (22:16 +0000)]
Move dumplo from MD to kern/kern_shutdown.c

Move db_disasm.c from the platform architecture to the cpu architecture

Move add missing __volatile to cpu_halt()'s HLT function to prevent it from
being optimized out.

Remove the vm_page_zero_idle() function (that has not been used for a while).

Move some more function prototypes for MD functions used by MI code into MI
header files.

17 years agoRemove page in cat4 as well.
Sascha Wildner [Fri, 5 Jan 2007 20:27:53 +0000 (20:27 +0000)]
Remove page in cat4 as well.

17 years agoMove makewhatis to the end so that pages which will be removed in this
Simon Schubert [Fri, 5 Jan 2007 17:14:31 +0000 (17:14 +0000)]
Move makewhatis to the end so that pages which will be removed in this
run will not be indexed before.

17 years agoremove old man pages and modules
Simon Schubert [Fri, 5 Jan 2007 17:09:10 +0000 (17:09 +0000)]
remove old man pages and modules

17 years agoUse \."- to begin license clause.
Peter Avalos [Fri, 5 Jan 2007 03:59:34 +0000 (03:59 +0000)]
Use \."- to begin license clause.

Deal with double whitespace.

Mechanically kill hard sentence breaks.

Obtained-from:  FreeBSD

17 years agoSay hello to a sound system update from FreeBSD. This includes the long
Simon Schubert [Thu, 4 Jan 2007 21:47:03 +0000 (21:47 +0000)]
Say hello to a sound system update from FreeBSD.  This includes the long
awaited Intel High Definition Audio (HDA) a.k.a. Azalia support.

The generic sound support module has been renamed to sound.ko and the
"everything included" module is called snd_driver.ko now.  Apart from
that, everything should continue working as normal, just better.

17 years agoAs bridge_rtupdate() can be called from interrupt context and must not
Thomas E. Spanjaard [Thu, 4 Jan 2007 21:14:40 +0000 (21:14 +0000)]
As bridge_rtupdate() can be called from interrupt context and must not
block, change it to use M_INTNOWAIT instead of M_WAITOK.

Reported-by: Joerg Sonnenberger <joerg@britannica.bec.de>

17 years agoAdjust a couple of kmalloc calls to use M_WAITOK instead of M_RNOWAIT. It
Thomas E. Spanjaard [Thu, 4 Jan 2007 18:55:18 +0000 (18:55 +0000)]
Adjust a couple of kmalloc calls to use M_WAITOK instead of M_RNOWAIT. It
appears there is no problem in waiting here, and use of M_RNOWAIT without
M_USE_RESERVE is dangerous. If this doesn't work 'right' either, the
proper solution is to use M_INTNOWAIT instead.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue410>

17 years agouname(1) is still used in a few places during buildworld,
YONETANI Tomokazu [Thu, 4 Jan 2007 14:19:03 +0000 (14:19 +0000)]
uname(1) is still used in a few places during buildworld,
put it back as a boot strap tool.

Submitted-by: sephe@
17 years agoSync with FreeBSD:
Peter Avalos [Thu, 4 Jan 2007 14:06:21 +0000 (14:06 +0000)]
Sync with FreeBSD:

Implement missing shell arithmetic operators in $(()) expansion
and variable recognition.

Provide missing prototypes and variable declarations in arith.h.

Spelling/style fixes.

17 years agoReturn 1 from the unalias builtin if _any_ removal fails, not just the last
Peter Avalos [Thu, 4 Jan 2007 06:35:12 +0000 (06:35 +0000)]
Return 1 from the unalias builtin if _any_ removal fails, not just the last
one.

Obtained-from:  FreeBSD

17 years agoCorrect assorted grammos and typos.
Peter Avalos [Thu, 4 Jan 2007 06:24:11 +0000 (06:24 +0000)]
Correct assorted grammos and typos.

Obtained-from:  FreeBSD

17 years agoUnbreak ndis(4) building.
Sascha Wildner [Wed, 3 Jan 2007 14:12:52 +0000 (14:12 +0000)]
Unbreak ndis(4) building.

17 years agoRemove redundant #ifdefs.
Sascha Wildner [Wed, 3 Jan 2007 13:33:02 +0000 (13:33 +0000)]
Remove redundant #ifdefs.

17 years agoAs discussed with sephe: uncomment awi(4), seems to build ok.
Sascha Wildner [Wed, 3 Jan 2007 13:24:13 +0000 (13:24 +0000)]
As discussed with sephe: uncomment awi(4), seems to build ok.

17 years ago- little mdoc cleanup
Sascha Wildner [Tue, 2 Jan 2007 23:42:20 +0000 (23:42 +0000)]
- little mdoc cleanup

- fix typo in committer.7

Typo-noticed-by: Steve Mynott <steve.mynott@gmail.com>
17 years ago[committed on behalf of sephe]
Sascha Wildner [Tue, 2 Jan 2007 23:28:49 +0000 (23:28 +0000)]
[committed on behalf of sephe]

- Fix ieee80211_node leakage.  The leakage is caused by calling IF_DRAIN()
  on management ifqueue whose mbuf's m_pkthdr.rcvif has special meaning:
  it holds ieee80211_node to which the management frame should be sent and
  the node has its reference count bumped.
  Add a new function ieee80211_drain_mgtq(), which frees ieee80211_node
  pointed by mbuf's m_pkthdr.rcvif before freeing the mbuf.  Use this function
  to drain management ifqueue instead of IF_DRAIN().
- In acx(4), ipw(4), ral(4) and rum(4) 'stop' routines, move
  ieee80211_new_state(IEEE80211_S_INIT) before clearing IFF_RUNNING in
  ifnet.if_flags, so these drivers may send out management frames injected
  by ieee80211_newstate(IEEE80211_S_INIT). (*)

# (*) Without proper hardware TX queue drain functionality, the management
#     frames injected by ieee80211_newstate(IEEE80211_S_INIT) almost no
#     chance to float in the air.

17 years agoRepo-copy malloc.9 to kmalloc.9 and clean up.
Sascha Wildner [Tue, 2 Jan 2007 23:08:59 +0000 (23:08 +0000)]
Repo-copy malloc.9 to kmalloc.9 and clean up.

17 years agoFix typo in sctp_output.c. The lwp structure has lwp_ru embedded directly,
Thomas E. Spanjaard [Tue, 2 Jan 2007 19:30:57 +0000 (19:30 +0000)]
Fix typo in sctp_output.c. The lwp structure has lwp_ru embedded directly,
not via a substructure lwp_stats.

Reported-by: Sascha Wildner <saw@online.de>

17 years agoRemove pmap_kernel() (which just returned a pointer to kernel_pmap), and
Matthew Dillon [Tue, 2 Jan 2007 04:52:31 +0000 (04:52 +0000)]
Remove pmap_kernel() (which just returned a pointer to kernel_pmap), and
change the kernel_pmap global from a pointer to a directly accessed
structure.  Adjust code accordingly.

17 years agoGet most of the VKERNEL pmap handling code in.
Matthew Dillon [Tue, 2 Jan 2007 04:24:26 +0000 (04:24 +0000)]
Get most of the VKERNEL pmap handling code in.

17 years agoTry to locate any instances where pmap_enter*() is called with a kernel
Matthew Dillon [Tue, 2 Jan 2007 04:21:16 +0000 (04:21 +0000)]
Try to locate any instances where pmap_enter*() is called with a kernel
virtual address on a pmap other then kernel_pmap by adding some debugging
printfs.

Remove pmap_kernel() (which just returned a pointer to kernel_pmap), and
change the kernel_pmap global from a pointer to a directly accessed
structure.  Adjust code accordingly.

17 years agoprintf -> kprintf
Sascha Wildner [Tue, 2 Jan 2007 00:25:43 +0000 (00:25 +0000)]
printf -> kprintf

17 years agoAdd a kprintf(9) manual page.
Sascha Wildner [Tue, 2 Jan 2007 00:16:56 +0000 (00:16 +0000)]
Add a kprintf(9) manual page.

Adapted from: FreeBSD

17 years ago1:1 Userland threading stage 2.10/4:
Simon Schubert [Mon, 1 Jan 2007 22:51:18 +0000 (22:51 +0000)]
1:1 Userland threading stage 2.10/4:

Separate p_stats into p_ru and lwp_ru.

proc.p_ru keeps track of all statistics directly related to a proc.  This
consists of RSS usage and nswap information and aggregate numbers for all
former lwps of this proc.

proc.p_cru is the sum of all stats of reaped children.

lwp.lwp_ru contains the stats directly related to one specific lwp, meaning
packet, scheduler switch or page fault counts, etc.  This information gets
added to lwp.lwp_proc.p_ru when the lwp exits.

17 years agoRemove unused _games.
Sascha Wildner [Mon, 1 Jan 2007 19:59:25 +0000 (19:59 +0000)]
Remove unused _games.

17 years agojail(2) now returns the jail id if successful or -1 on error.
Victor Balada Diaz [Mon, 1 Jan 2007 19:45:54 +0000 (19:45 +0000)]
jail(2) now returns the jail id if successful or -1 on error.

Add -i to jail(8). This option makes jail(8) print the jail ID
of the newly created jail.

Imported-from: FreeBSD

17 years agoUpdate the copyright year
Victor Balada Diaz [Mon, 1 Jan 2007 12:58:02 +0000 (12:58 +0000)]
Update the copyright year

We'll be here one year more!

17 years ago- In ieee80211_setmode(), don't mark basic rates on ieee80211com.ic_sup_rates.
Sepherosa Ziehau [Mon, 1 Jan 2007 08:51:45 +0000 (08:51 +0000)]
- In ieee80211_setmode(), don't mark basic rates on ieee80211com.ic_sup_rates.
  The basic rates will be marked on ieee80211com.ic_sup_rates once we get the
  BSS' basic rate set, in ieee80211_sta_join().
- Rename ieee80211_set11gbasicrates() to ieee80211_set_basicrates().  Add
  additional parameter to indicate whether we are using Pure G or not.
- In ieee80211_set_basicrates():
  o  Extend basic rate set array by adding items for Turbo G mode (mixed 11B/G
     basic rates) and Turbo A mode (11A mandatory rates).
  o  Add an assertion to make sure we will not go beyond the end of the basic
     rate set array.
  o  Use a seperate constant for Pure G basic rate set.
  o  If 'mode' is 11G or Turbo G, and Pure G is required, use Pure G's basic
     rate set, instead of mixed 11B/G basic rate set.  This makes a standard
     conforming 11B STA not try joining a Pure G BSS created by us.
- In ieee80211_recv_mgmt():
  o  Send probe response even if rate negotiation fails.  According to
     IEEE Std 802.11, 1999 Edition, subclause 11.1.3.2.1:
     ....
     STAs, subject to criteria below, receiving Probe Request frames shall
     respond with a probe response only if the SSID in the probe request is
     the broadcast SSID or matches the specific SSID of the STA.  ... ...
     An AP shall respond to all probe requests meeting the above criteria.
     In an IBSS, the STA that generated the last beacon shall be the STA that
     responds to a probe request.
     ....

     If we reach the rate negotiation step, then the "criteria" outlined by
     the standard is already met.
  o  Don't do rate negotiation for temporary nodes, which are created just for
     sending probe responses.  This may save us some cpu time.
- Reset NIC for Pure G change, only if opmode is HOSTAP or IBSS(*), and phy
  mode is either Turbo G or 11G.
- Don't allocate TX rate control data for temporary nodes, since they will be
  reclaimed immediately after management frames are sent.

# (*) Actually, for IBSS opmode, we need to reset the NIC iff we are the only
#     member of the current IBSS.

17 years agoAdd markup and some references. Fix the wording in a few places.
Sascha Wildner [Mon, 1 Jan 2007 03:36:34 +0000 (03:36 +0000)]
Add markup and some references. Fix the wording in a few places.

17 years ago- Obey the beacon interval of the IBSS if we are going to join it.
Sepherosa Ziehau [Mon, 1 Jan 2007 03:31:52 +0000 (03:31 +0000)]
- Obey the beacon interval of the IBSS if we are going to join it.
- Obey the beacon interval set by ifconfig(8), if we are going to create
  an infrastructured BSS or an IBSS.

17 years agoNuke local implementation of pcap_{get_selectable_fd,inject}(), which are
Sepherosa Ziehau [Mon, 1 Jan 2007 01:45:40 +0000 (01:45 +0000)]
Nuke local implementation of pcap_{get_selectable_fd,inject}(), which are
in the updated pcap(3) now.

Noticed-by: swildner@
17 years agoFix an off-by-one which could mean writing beyond the end of the array when
Sepherosa Ziehau [Mon, 1 Jan 2007 01:42:23 +0000 (01:42 +0000)]
Fix an off-by-one which could mean writing beyond the end of the array when
putting '\0' to the end of the iface name.

Obtained-From: FreeBSD(bz@freebsd.org) with modification

17 years agoAdd -P option which causes builtin macros to be prefixed with "m4_". This
Peter Avalos [Mon, 1 Jan 2007 00:41:58 +0000 (00:41 +0000)]
Add -P option which causes builtin macros to be prefixed with "m4_".  This
was mostly taken from NetBSD.

Reviewed-by: dillon, joerg
17 years agoRemove an old debugging kprintf.
Matthew Dillon [Sun, 31 Dec 2006 20:34:04 +0000 (20:34 +0000)]
Remove an old debugging kprintf.

17 years agoNone of the patches in dhclient/client were being applied. Add the patches
Matthew Dillon [Sun, 31 Dec 2006 20:18:35 +0000 (20:18 +0000)]
None of the patches in dhclient/client were being applied.  Add the patches
to SRCS and synchronize them with our new auto-patching system.  Make minor
adjustments where necessasry to patch against dhcp-3.0.

17 years agoFix manual page references to omshell.
Matthew Dillon [Sun, 31 Dec 2006 20:06:38 +0000 (20:06 +0000)]
Fix manual page references to omshell.

Submitted-by: Francis GUDIN
17 years agoFix compilation error when building without INET6. Fix a number of minor
Matthew Dillon [Sun, 31 Dec 2006 19:36:54 +0000 (19:36 +0000)]
Fix compilation error when building without INET6.  Fix a number of minor
bugs related to string and address family handling.

Reported-by: "Matt Emmerton" <matt@gsicomp.on.ca> - reported compile errors
17 years agozbootinit() was being called with too few pv_entry's on machines with small
Matthew Dillon [Sun, 31 Dec 2006 03:52:47 +0000 (03:52 +0000)]
zbootinit() was being called with too few pv_entry's on machines with small
amounts of memory.

Move the vm.kvm_* sysctls from MD to MI source files.

17 years agoCorrect a conditional used to detect a panic situation. The index was off by
Matthew Dillon [Sun, 31 Dec 2006 03:50:07 +0000 (03:50 +0000)]
Correct a conditional used to detect a panic situation.  The index was off by
one.

17 years agoUse %j to print an ino_t.
Sascha Wildner [Sat, 30 Dec 2006 18:36:45 +0000 (18:36 +0000)]
Use %j to print an ino_t.

17 years agostruct tty's t_dev is a pointer now. Fix warning.
Sascha Wildner [Sat, 30 Dec 2006 17:58:10 +0000 (17:58 +0000)]
struct tty's t_dev is a pointer now. Fix warning.

Spotted-by: Trevor Kendall <trevorjkendall@gmail.com>
17 years agoFix typo.
Sascha Wildner [Sat, 30 Dec 2006 15:27:08 +0000 (15:27 +0000)]
Fix typo.

17 years agoRemove vgrind and nvi as build tools.
Simon Schubert [Fri, 29 Dec 2006 22:43:32 +0000 (22:43 +0000)]
Remove vgrind and nvi as build tools.

ex was used to reorder termcap, which seems unnecessary
vgrind was only used for share/doc

Wondering-together-with: swildner

17 years agoRemove ancient comment from 1997.
Sascha Wildner [Fri, 29 Dec 2006 20:50:55 +0000 (20:50 +0000)]
Remove ancient comment from 1997.

17 years agoMake descriptions more descriptive.
Sascha Wildner [Fri, 29 Dec 2006 18:20:11 +0000 (18:20 +0000)]
Make descriptions more descriptive.

17 years agoMade jails IPv6 aware and support more than one IP address.
Victor Balada Diaz [Fri, 29 Dec 2006 18:02:57 +0000 (18:02 +0000)]
Made jails IPv6 aware and support more than one IP address.

Based-on: Pawel Jakub Dawidek mijail patches.
Reviewed-by: Simon 'corecode' Schubert, Thomas E. Spanjaard, et al.
17 years agoUse %j to print an ino_t.
Sascha Wildner [Fri, 29 Dec 2006 17:10:20 +0000 (17:10 +0000)]
Use %j to print an ino_t.

17 years agoAdd initialization to silence compiler warning.
Simon Schubert [Fri, 29 Dec 2006 15:26:14 +0000 (15:26 +0000)]
Add initialization to silence compiler warning.

17 years agosyscons doesn't support EGA, CGA etc. anymore, so remove the mapping
Sascha Wildner [Fri, 29 Dec 2006 00:10:35 +0000 (00:10 +0000)]
syscons doesn't support EGA, CGA etc. anymore, so remove the mapping
of generic mode names like "80x25" to different adapter types. Hardwire
them to VGA/VESA mode numbers.

Also, remove the bogus "132x30" VESA text mode which is not defined in
the specification.

17 years agoMake kernel_map, buffer_map, clean_map, exec_map, and pager_map direct
Matthew Dillon [Thu, 28 Dec 2006 21:24:02 +0000 (21:24 +0000)]
Make kernel_map, buffer_map, clean_map, exec_map, and pager_map direct
structural declarations instead of pointers.  Clean up all related code,
in particular kmem_suballoc().

Remove the offset calculation for kernel_object.  kernel_object's page
indices used to be relative to the start of kernel virtual memory in order
to improve the performance of VM page scanning algorithms.  The optimization
is no longer needed now that VM objects use Red-Black trees.  Removal of
the offset simplifies a number of calculations and makes the code more
readable.

17 years agoIntroduce globals: KvaStart, KvaEnd, and KvaSize. Used by the kernel
Matthew Dillon [Thu, 28 Dec 2006 18:29:08 +0000 (18:29 +0000)]
Introduce globals: KvaStart, KvaEnd, and KvaSize.  Used by the kernel
instead of the nutty VADDR and VM_*_KERNEL_ADDRESS macros.  Move extern
declarations for these variables as well as for virtual_start, virtual_end,
and phys_avail[] from MD headers to MI headers.

Make kernel_object a global structure instead of a pointer.

Remove kmem_object and all related code (none of it is used any more).

17 years agoclean to WARNS=6.
Simon Schubert [Wed, 27 Dec 2006 23:06:29 +0000 (23:06 +0000)]
clean to WARNS=6.

17 years agoJanitor out stale defines and ifdefs.
Simon Schubert [Wed, 27 Dec 2006 23:01:19 +0000 (23:01 +0000)]
Janitor out stale defines and ifdefs.

17 years agoSync with FreeBSD. Notable changes:
Peter Avalos [Wed, 27 Dec 2006 21:29:02 +0000 (21:29 +0000)]
Sync with FreeBSD.  Notable changes:

Kill extraneous whitespace.

Flush streams before calling system() so that the output appears in the
right place in the output stream when redirected to a file (when full
buffering is enabled).

Store a pointer to "null" in struct ndblock's defn member instead of a
duplicate allocated on the heap; the address defn points to is significant,
and is checked against the address of "null" in certain conditionals.

Fix m4 to properly handle bitwise operators &, ^, and |. Fix operator
precedence. Add short-circuit evaluation.

Respect locale settings from the environment.

Add a new m4 script to test the functionality of math operators in eval().

17 years agoDon't interpret 'Dx' as a macro name.
Sascha Wildner [Wed, 27 Dec 2006 21:15:38 +0000 (21:15 +0000)]
Don't interpret 'Dx' as a macro name.

Spotted-by: corecode
17 years agoMake certain libc prototypes / system calls visible to kernel builds
Matthew Dillon [Wed, 27 Dec 2006 20:43:09 +0000 (20:43 +0000)]
Make certain libc prototypes / system calls visible to kernel builds
(for virtual kernel builds).  Add a TLS support function for virtual
kernels.