summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-01-04argc will be 1 not 2 with no option value.Nicholas Marriott
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-04Multiple man(7) .IP and .TP fixes started during p2k10:Ingo Schwarze
Affecting both -Tascii and -Thtml: * The .IP HEAD uses the second argument as the width, not the last one. * Only print the first .IP HEAD argument, not all but the last. Affecting only -Tascii: * The .IP and .TP HEADs must be printed without literal mode, but literal mode must be restored afterwards. * After the .IP and .TP bodies, we only want term_newln(), not term_flushln(), or we would get two blank lines in literal mode. * The .TP HEAD does not use TWOSPACE, just like .IP doesn't either. * In literal mode, clear NOLPAD after each line, or subsequent lines would get no indentation whatsoever. Affecting only -Thtml: * Only print next-line .TP children, instead of all but the first. OK kristaps@ on the -Tascii part; and: "Can you work this into man_html.c, too?"
2011-01-04Clean up and simplify tmux command argument parsing.Nicholas Marriott
Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
2011-01-03Partial cleanup of argument count validation in mdoc(7):Ingo Schwarze
* Do not segfault on empty .Db, .Rs, .Sm, and .St. * Let check_count() really throw the requested level, not always ERROR. * Downgrade most bad argument counts from ERROR to WARNING. * And some related internal cleanup. Looks fine to kristaps@. Note that the macros using eerr_ge1() still need to be checked at a later time; but as all the others are done, let's use what we already have.
2011-01-03Support for UTF-8 mouse input (\033[1005h). This was added in xterm 262Nicholas Marriott
and supports larger terminals than the older way. If the new mouse-utf8 option is on, UTF-8 mouse input is enabled for all UTF-8 terminals. The option defaults to on if LANG etc are set in the same manner as the utf8 option. With help and based on code from hsim at gmx.li.
2011-01-03Calling a macro with fewer arguments than it is defined with is OK;Ingo Schwarze
the remaining ones default to the empty string, not to NULL. Regression reported and fix tested by kristaps@.
2011-01-03Remove the old COMPAT_23 SysV IPC structures and the never implementedPhilip Guenthe
semconfig() declaration. Move the COMPAT_35 SysV IPC structures into the only source files that uses them ok millert@, kettenis@, deraadt@
2011-01-03Unify roff macro argument parsing (in roff.c, roff_userdef()) and man macroIngo Schwarze
argument parsing (in man_argv.c, man_args()), both having different bugs, to use one common macro argument parser (in mandoc.c, mandoc_getarg()), because from the point of view of roff, man macros are just roff macros, hence their arguments are parsed in exactly the same way. While doing so, fix these bugs: * Escaped blanks (i.e. those preceded by an odd number of backslashes) were mishandled as argument separators in unquoted arguments to user-defined roff macros. * Unescaped blanks preceded by an even number of backslashes were not recognized as argument separators in unquoted arguments to man macros. * Escaped backslashes (i.e. pairs of backslashes) were not reduced to single backslashes both in unquoted and quoted arguments both to user-defined roff macros and to man macros. * Escaped quotes (i.e. pairs of quotes inside quoted arguments) were not reduced to single quotes in man macros. OK kristaps@ Note that mdoc macro argument parsing is yet another beast for no good reason and is probably afflicted by similar bugs. But i don't attempt to fix that right now because it is intricately entangled with lots of unrelated high-level mdoc(7) functionality, like delimiter handling and column list phrase handling. Disentagling that would waste too much time now.
2011-01-03Handle a # at the end of a replacement string (such as status-left)Nicholas Marriott
correctly. Found by Thomas Adam.
2011-01-03remove sc->sc_kbcslot, as is always PCKBC_AUX_SLOTAlexandr Shadchin
ok krw, miod
2011-01-03remove unused fileAlexandr Shadchin
ok krw, miod
2011-01-03make it possible to check for a pkgspec by name, without looking at installedMarc Espie
stuff.
2011-01-03redo the object creation in a more straightforward way.Marc Espie
2011-01-03those all need newlinesMarc Espie
2011-01-03- plug mem leak.Jasper Lievisse Adriaanse
ok chl@
2011-01-03use host_flags directly as they're initialized during attach time.Federico G. Schwindt
jakemsr@ ok.
2011-01-03Update to better describe reality, i.e. disklabel(8) UID usage.Kenneth R Westerback
ok jmc@ jsing@
2011-01-03unbreak hardlinks, like MLINKS, too.Jasper Lievisse Adriaanse
ok espie@
2011-01-03Allow to change vlan options of existing vlan(4)/svlan(4) devices atReyk Floeter
runtime instead of forcing the user to-recreate the interface with the changed options. The code now re-configures the interface instead of returning EBUSY. For example, it is now possible to run "ifconfig vlan1 vlandev em0; ifconfig vlan1 vlandev em1" in a sequence. ok claudio@ deraadt@
2011-01-03tweak previous; ok jasperJason McIntyre
2011-01-03the flags method of the ac97 host interface is optional. check thatJacob Meuser
it not NULL before using it. fixes crash reported by jmc@
2011-01-03- adjust krb5 directoriesJasper Lievisse Adriaanse
- zap a trailing tab
2011-01-03- clarify bit about internal firmware, as pointed out by jmc@, and clarifiedJasper Lievisse Adriaanse
by Dmitry Komissaroff (uticom author) ok jsg@
2011-01-03syncAlexander Yurchenko
2011-01-03Add Radeon HD 3450 AGP; from yason@linklevel.netAlexander Yurchenko
2011-01-03Rework backtrace code, and try to cope with variadic functions betterMiod Vallat
(those play nasty games with the stack pointer).
2011-01-03reduce the amount of cd'ing in the install script, since it sucksTheo de Raadt
to change the environment that functions assume they run in. use sub-shells or absolute paths when possible. ok krw
2011-01-03broke symlinks, noticed by jasper@Marc Espie
2011-01-02add missing newline between @url and @wantlib.Federico G. Schwindt
espie@ ok.
2011-01-02More changes to pacify the Solaris virtual disk client. ImplementMark Kettenis
VD_OP_GET_VTOC and VD_OP_GET_DISKGEOM. Factor out the code to ACK descriptors and fix a bug copying in/out a descriptor that crosses a page boundary.
2011-01-02Make need_resched() call cpu_unidle() such that we wake up a process running onMark Kettenis
another CPU. ok miod@
2011-01-02Figure out how much L2 cache is available on 88410-blessed designs, andMiod Vallat
report it in dmesg.
2011-01-02create formatted manpages as temporary files we remove after the fact.Marc Espie
2011-01-02more tests of white space handlingIngo Schwarze
2011-01-02use new convention for methods with empty parameters.Marc Espie
document PrelinkStuffOnly
2011-01-02document optional prepare parameterMarc Espie
2011-01-02tidy things: use ->new more often.Marc Espie
use mkdir directly to be able to report errors in a sane way (as the File::Path interface is prone to change). allow prepare to specify its own destdir (for temp files). use state->system to report more errors. be consistent in destdir error printing.
2011-01-02kill very old idiom, I don't actually want to go thru items directly.Marc Espie
2011-01-02Enable udl(4) on hppa, together with rasops and rawkbd for Xorg.Matthieu Herrb
Xorg is not yet built in xenocara, this will come later. ok miod@
2011-01-02Kill pmap_table_t typedef.Miod Vallat
2011-01-02Fix dump to work with PMAP_DIRECT, as done on mvme88k.Miod Vallat
2011-01-02Prevent a few more NULL pointer dereferences in troublesome situations; fromMiod Vallat
NetBSD
2011-01-02Only store bus/dev/func numbers when the corresponding pointer argumentJasper Lievisse Adriaanse
isn't NULL. Original to hppa's elroy(4) by, and ok kettenis@
2011-01-02- move resettodr and inittodr to clock.c, like the other clock related functionsJasper Lievisse Adriaanse
2011-01-02We need db_machdep.h even when TRAPDEBUG is enabled.Joel Sing
2011-01-02Include files.bluetooth so that hppa64 compiles.Joel Sing
2011-01-02permit 2011; from Thomas KlausnerJason McIntyre
2011-01-02Move away from using fixed-sized descriptors and fill in some missing bitsMark Kettenis
in the messages that ACK descriptors. Makes OpenSolaris virtual disk clients much happier and able to boot from a bootable automatic installer cdrom.
2011-01-02Re-add code for ACPI taskqueue, eliminates need for state vars in acpi softcJordan Hargrave
Serialize processing ACPI tasks for sleep/powerdown/GPE event ok deraadt@