summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2007-07-31Use correct function name in log message. Noticed by Igor ZinovkHans-Joerg Hoexer
zinovik@cs.karelia.ru. Thanks!
2007-07-31+ hidden subdirKurt Miller
2007-07-31add regress to test __asm(".hidden symbol") works as expected. for gcc3Kurt Miller
arch only. okay kettenis@
2007-07-31typo fixes from joel@ionix.com.auTheo de Raadt
2007-07-31Our audio layer doesn't know anything about mixer names likeDeanna Phillips
"selector" and "front", so instead create the items that it actually needs. This unbreaks the mute button in wscons, and allows setting the volume in programs like xmms and xine. This is for STAC9200 only - similiar fixes for other codecs coming soon. Tested and ok krw@
2007-07-31In the mixer to device level conversions, round down to the nearestDeanna Phillips
valid step, and keep them in sync. This lets audio(4) set exact gain levels based on the mixer delta, and unbreaks volume up/down buttons in wscons. This also avoids a divide by zero that could occur if the generic mixer init found an amplifier with zero steps. Problem noticed and tested by jmc@, similar diff tested by krw@
2007-07-31Start to improve TX/RX path; don't accept further packets from TX queueMarcus Glocker
unless the last packet has been processed by the device. Protect RX routine with splnet(). This changes let me scp with ~575KB/s in 11b for now.
2007-07-31Simplify TX path.Marcus Glocker
2007-07-31something went wrong w/ previous;Jason McIntyre
2007-07-31document the -d option of sensorsd; input and ok from jmc@, deraadt@Robert Nagy
2007-07-31oops, forgot to include the man page tweaks from jmc@Pierre-Yves Ritschard
2007-07-31When setting the vlandevice without specifying a tag, infer the tagPierre-Yves Ritschard
from the interface name, this allows constructs like: ifconfig vlan15 vlandev smth0 ok reyk@, ``makes sense'' henning@
2007-07-31Remove some unused headers, from Igor Zinovik.Ray Lai
2007-07-31From Gilles Chehade:Ray Lai
- Use strtonum instead of atoi. - Improve strtol error checking. - Change strchr calls to strcspn and eliminating some unused variables as a result. OK moritz
2007-07-31set the blocksize to the size of the read/write buffers.Jacob Meuser
the blocksize matters for the poll() cases because we pass the poll when reading from the device when there is any data in the record buffer. since data is transfered into the buffer in blocksize chunks, if there was no and now is some data in the buffer, there is probably about blocksize bytes of data in the buffer. if in non-blocking mode, which is common when using poll(), and we try to read() more bytes than are in the record buffer, we will receive an EAGAIN. if we read() in blocksize chunks, we will never try to read more than is available. a more eloquent version of the above description should be in audio(4).
2007-07-31pass command line options to audiotest_rw through OPTS, e.g.Jacob Meuser
$ OPTS="-e 1 -r 22050 -c 1 -b 1024" DO_AUTEST=1 make
2007-07-31always ignore attempts to set the record or play port to 0.Jacob Meuser
this interface to mixer functionality is very limited, and is only used for recording. it only recognizes 'mic', 'cd', and 'line' as valid recording inputs. many devices have other inputs. because of the way AUDIO_INITINFO works, it is impossible to expand this API to include all devices. this fixes another common cause of audioctl(1) problems. AUDIO_GETINFO returns 0 for record.port when the recording port is something other than 'mic', 'cd', or 'line', and the subsequent AUDIO_SETINFO would fail on this.
2007-07-31Adapted from DragonflyBSD revisions 1.10 and 1.11: warn when sourceRay Lai
and target are identical. When -f is specified, don't delete source. OK sobrado, feedback from paesco, kettenis, and tedu.
2007-07-31syncTheo de Raadt
2007-07-30After two weeks of fumbling arround in the association FW command, i foundMarcus Glocker
a trick to correct the wrong generated rates-element-id in the FW association mgmt packet. Makes it possible to associate to more AP's.
2007-07-30add commented out example to preserve the environment for users in group wheelTodd C. Miller
2007-07-30Shuffle the order in which we look for header files, when doingThordur I. Bjornsson
kernel builds locally this doesnt change much but over NFS this cuts about 12% of the build time on my setup (i386). OK miod@, deraadt@.
2007-07-30syncTodd T. Fries
2007-07-30strlen returns size_t.Pierre-Yves Ritschard
ok henning, mbalmer.
2007-07-30AXIM pda and V360 phone, ok mk@Todd T. Fries
2007-07-30avoid segfault when empty string is passed as interface name.Pierre-Yves Ritschard
ok henning@
2007-07-30With adding ipsec tags and exporting flow filters via sysctl SADB_GETHans-Joerg Hoexer
needs to be allowed to export that information too. Thus, adjust sadb_exts_allowed_out[] accordingly. This fixes isakmpd not being able to get the in-kernel last-used-counters of SAs, which are needed for DPD. ok ho@
2007-07-30introduce a Var_Substi to substitute on intervals.Marc Espie
Since we don't really know how to change Var_Subst and dependent functions, we cheat, and copy the string to a buffer instead. Clean-up the parser a bit: reorganize the include files lookup function: introduce a resolve_include_filename function that figures out the full name of the file, introduce a handle_include_file that does all the include file handling, and rename the functions into handle_xxx_include, so that we can remove most comments. Rename ParseIsCond into handle_bsd_command, cut most of its code into constituent functions. Semantic changes: - follow the rules that, if an optional construct does not parse correctly, then it's not a real extension, and give the normal parser a chance to figure it out. If the syntax checks out, semantic errors ARE real errors. - allow variables to not be defined in include file names, no reason not to. okay miod@
2007-07-30everywhere except in Var_Parse, we always add/append variables to theMarc Espie
VAR_GLOBAL context, so make it the common case: rename the basic functions to Var_Set_with_ctxt/Var_Append_with_ctxt, define Var_Set and Var_Append as macros that specify VAR_GLOBAL, and use these. okay miod@
2007-07-30local is always true, so zap it.Marc Espie
okay miod@
2007-07-30now that it's clean enough, one can extract some common code fromMarc Espie
Var_Parse and Var_ParseSkip (the code that figures out the variable name up to eventual modifiers). okay miod@
2007-07-30clean-up. Basically:Marc Espie
- remove globals curdir and objdir, stuff them into a structure, and pass it around to the relevant functions. - cut up most of main code into functions: figure_out_MACHINE/ARCH, figure_out_CURDIR, setup_CURDIR_OBJDIR, setup_VPATH, no_fd_limits, read_makefile_list, read_all_make_rules... - simplify the code used to figure out curdir/objdir. No semantic changes. okay miod@
2007-07-30separate and name functions to add target nodes to the graph.Marc Espie
okay miod@
2007-07-30simplify the handling of assignment operators, by introducing a VAR_INVALIDMarc Espie
state and using it, leading to a simpler loop and less code. okay miod@
2007-07-29add missing over/backTodd C. Miller
2007-07-29Change FILES section to use =itemTodd C. Miller
2007-07-29Update to sudo 1.6.9p2Todd C. Miller
2007-07-29use correct length when making a copy of environTodd C. Miller
2007-07-29slot range check in add_nubus_intr() is wrong by one.Miod Vallat
2007-07-29It turns out that VIA2 always interrupts at level 2, and IPL_BIO is always 2Miod Vallat
too, so we can make these constants.
2007-07-29KNF synopsis: put stars in appropriate places (consistent with other synopses)Constantine A. Murenin
2007-07-29Add support for bootpaths like /pci@1f,4000/ide@3,0/ata@0,0/cmdk@0,0Mark Kettenis
in addition to paths like /pci@1f,0/ide@d,0/disk@0,0 for machines rooting off wd(4). This makes the Ultrabook 170/200 find its root disk. tested by krw@
2007-07-29Seperate members of "struct pcb" that are accessed using physical addressesMark Kettenis
from thos that are exclusively accessed using virtual addresses and add padding between them to make sure they don't share a cache line. Fixes random crashes on at least PA-8700 and PA-7200 based machines. Without this, the PA-7200 based C110 wouldn't stay up long enough to do an install. ok miod@
2007-07-29sync the command usage with its synopsisIgor Sobrado
ok jmc@
2007-07-29regenChris Kuethe
2007-07-29add a bunch of new nvidia devicesChris Kuethe
ok matthieu
2007-07-29reindent, no code changeMarc Espie
2007-07-29Add commented out machdep.led_blink=1Mark Kettenis
ok miod@
2007-07-29zap redundant code; ok deanna@Constantine A. Murenin
2007-07-28pci_intr_line() doesn't take a pointer as its argument.Mark Kettenis