summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-07-08A set of big related changes. okay millert@, tested further by kettenis@Marc Espie
and matthieu@ This all revolves around putting ALL global variables into one single big hash, and using flags. This removes some impossible to understand stuff, like old varfind, and allows for some nice stuff. - each time we reference a global variable, we create it, possibly as a dummy variable. - each time we go to the environment, we remember it, thus we no longer go back to it. Lists of dependant changes: - isolate changes to oldVars and checkEnvFirst. - remove VAR_CMD and VAR_GLOBAL contexts. The only distinction is in parsevar. Split Parse_DoVar into Parse_DoVar and Parse_CmdlineVar - rework var modules around obtain_global_var, observe flags in various functions like Var_Value and Var_Seti. - Var_Seti/Var_Appendi are almost the same code, use that internally. - add magic to handle the very special SHELL variable. - introduce Var_Definedi for the cases where we don't want the actual value, to simplify tests. - add keyword .poison, parse it and set global flags accordingly. - do poison_checks where needed. - document poison. - in for loops, set variable temporarily, so that Var_SubstVar will also substitute it in varmodifiers expressions.
2007-07-08Process scan command results. Enable 'ifconfig -M'.Marcus Glocker
2007-07-08Report the correct stack size and top for the primordial thread inKurt Miller
pthread_stackseg_np(). With input and okay marc@
2007-07-08As pointed out by Mickey, "-I/usr/includes" is not required forKenneth R Westerback
successful compilation of assembler or generating microcode.
2007-07-07Restore missing '(' to allow successful compilation. Bad pyr@.Kenneth R Westerback
2007-07-07Make the scan command work, finally.Marcus Glocker
2007-07-07/altroot backup now documented in daily(8), not afterboot(8);Jason McIntyre
from Maximilian Gass
2007-07-07Add support for Realtek ALC883. This is the "value" edition of theDeanna Phillips
ALC882, and differs only by lacking an ADC and a mixer, so have it use ALC882's get_port(), set_port() and a slightly modified version of its mixer init. This also works around a problem where the generic mixer init creates truncated mixer item names which can't be manipulated (noticed by steven@). Tested by steven@, ckuethe@ and jmc@.
2007-07-07On hppa, function pointers may be be pointers to PLT entries. Handle thoseMark Kettenis
by replicating part of $$dyncall in the code that sets up a thread's initial stack frame. Also make sure we actually reserve some space for that initial stack frame. ok miod@
2007-07-07Match VIA VT8237A; from "Christoph Egger" <Christoph_Egger@gmx.de>.Alexander Yurchenko
2007-07-07Pull in ffs2 support and other updates from FreeBSD. OK deraadt@Todd C. Miller
2007-07-07Initialize the first 2 block's worth of inodes for ffs1 as well as ffs2.Todd C. Miller
This was not happening since acg.cg_initediblk gets cleared for the ffs1 case. OK otto@
2007-07-07document maximum values for -S and -s;Jason McIntyre
from Saint Aardvark the Carpeted, documentation/5535;
2007-07-06have ieee80211_parse_rsn() return a reason code so that we canDamien Bergamini
deauth associating stations with bad RSN IEs. cleanup parsing of vendor-specific IEs.
2007-07-06cleanup the computation of mgmt frames sizes.Damien Bergamini
still very ugly but hopefully correct.
2007-07-06remove remaining bits for pre-RSNA shared authmode support.Damien Bergamini
it has been #if 0'd since 3.9 and we have never supported this mode (no ifconfig option etc...).
2007-07-06typo in an error message.Damien Bergamini
reported a while back by Laurence Tratt, reminded more recently by brad@
2007-07-06don't check the IEEE80211_CAPINFO_PRIVACY bit in (re)association requests.Damien Bergamini
the spec says that "APs ignore the Privacy subfield within received Association and Reassociation Request managements frames". if the IEEE80211_CAPINFO_ESS bit is not set, reply with the correct status code (IEEE80211_STATUS_CAPINFO instead of IEEE80211_STATUS_BASIC_RATE). indent things a bit while i'm here.
2007-07-06initialize an unitialized variable.Damien Bergamini
2007-07-06- document -vJason McIntyre
- tweak usage()
2007-07-06Reference limits.h, not sys/param.h since we document using PATH_MAXTodd C. Miller
OK otto@
2007-07-06btintrq has been removed from bt_input.c, don't reference it here.Christian Weisgerber
Makes bluetooth build again. ok uwe@
2007-07-06dont inlucde <sys/syslimits.h> directly.Thordur I. Bjornsson
no binary change ok millert@
2007-07-06Fix a misleading comment.Artur Grabowski
noted by Constantine Kousoulos <wuwei@freemail.gr>
2007-07-06some discussion of devices, logs, and permissions;Jason McIntyre
help/feedback from nick, krw, miod, todd, and deraadt millert ok'd an earlier version of this diff
2007-07-06- enable full-duplex mode by default if a device is openedJacob Meuser
read-write and it supports full-duplex operation. - update documentation to match this behaviour. see http://marc.info/?l=openbsd-tech&m=118310788926431&w=2 for more background on this change "patches look correct to me" marc@
2007-07-06the AUDIO_WSEEK ioctl should return the number of bytes in the playJacob Meuser
buffer, not the record buffer. inspired by recent similar change in NetBSD. "patches look correct to me" marc@
2007-07-06be sure to respect the pause attributeJacob Meuser
originally from Alexandre Ratchov "patches look correct to me" marco@
2007-07-06- there is no need for audio_init_ringbuffer() to always set the "pause"Jacob Meuser
attribute to '0'. this function may be called when executing an AUDIO_SETINFO ioctl where the pause attribute was set to '1', and setting it to '0' in this function will cause unexpected bahaviour. - according to audio(4), the AUDIO_FLUSH ioctl "restarts recording and playback". therefor, it should set the pause attributes to '0'. this was previously accomplished indirectly, because it calls audio_init_ringbuffer(), which was setting pause to '0'. - the pause attribute must be set to '0' in audio_open() so that recording and playback buffers can be "activated" when the device is opened. this was apparently forgotten when audiosetinfo() was split off of audio_open() and the logic in audiosetinfo() was changed to accomodate being run at times other than open(). also, this only really affects read() with poll(), which may explain why the problem was not noticed for some time. originally part of a patch Alexandre Ratchov sent to tech@ a while back fixes PR 3813 "patches look correct to me" marco@
2007-07-06net80211 growth eats another ethernet driver (which is super rare on laptops)Theo de Raadt
2007-07-06The poll(2) syscall doesn't work correctly on audio(4) devices.Jacob Meuser
For instance, it may not set POLLIN when samples become available, or may set POLLOUT when write(2) will block. Fix this by making conditions used by poll (FILTREAD and FILTWRITE macros) match the blocking conditions in audio_read() and audio_write(). originally from Alexandre Ratchov, with a small tweak by me. "patches look correct to me" marco@
2007-07-06sha1 is needed by wlan now, tooTheo de Raadt
2007-07-06remove another $Id$, forgotten in last commitJacob Meuser
2007-07-06proper RCS tagsJacob Meuser
2007-07-06manpage improvements from jmc@Jacob Meuser
2007-07-06regression tests for various audio read(2) and write(2) scenariosJacob Meuser
2007-07-06regression test for AUDIO_GETINFO/AUDIO_SETINFO ioctlsJacob Meuser
2007-07-05fix a "Device busy" error in server mode. found by ckuethe@Joris Vink
2007-07-05Report actual faulting address (if we can) instead of the mmu tag word forMark Kettenis
SIGSEGV. tested by jasper@
2007-07-05fixes my previous commit.Damien Bergamini
the ESS bit must be set in (re)assocation requests.
2007-07-05always set the IEEE80211_CAPINFO_ESS bit in association requests.Damien Bergamini
fixes my 1.36 commit (the bit should not be set for non-AP STA only in Probe Responses and Beacons).
2007-07-05some HT frames may have an additional HT Control field.Damien Bergamini
remove two comments that were misplaced while I'm here (addr4 is always located after the i_seq field, not at the end of the header).
2007-07-05don't set IEEE80211_CAPINFO_ESS bit since we're not operating as an AP.Damien Bergamini
2007-07-05move the logic of determining whether an extended supported rates IE isDamien Bergamini
needed or not to the callers (instead of doing nothing in add_xrates).
2007-07-05split ieee80211_add_rsn() so that the code can be reused forDamien Bergamini
vendor-specific IE.
2007-07-05add myself to the copyright list.Damien Bergamini
2007-07-05add the pseudo-random function (PRF) and various key derivationDamien Bergamini
functions defined in 802.11i.
2007-07-05On OpenBSD/hppa, not all space registers are equivalent, so don't setMark Kettenis
MASK_NO_SPACE_REGS. ok miod
2007-07-05Print offset and irq for devices that attach to ssio(4).Mark Kettenis
2007-07-05use a more traditional while() instead of for() for getopt().Thordur I. Bjornsson
sync usage() to the man page. format string fixes. complain about failed calloc()'s instead of exiting silently. ok pry@,reyk@